This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE:lpr works? FAQ in error?


Lee D. Rothstein on Fri, 09 May 2008 01:26:09 -0400 wrote:
>I've gotten /usr/bin/lpr to work under Vista. So is the FAQ in error?

It is in error. There is a working lpr which is part or cygutils. See man
pages.

> My problem is finding a filter for Epson printers.

For modern Epson printers you may use the IJS drive of ghostscript
You have to;
1- Install ghostscript 
2- Install gutenprint and foomatic
there few problems. See:
http://sourceware.org/ml/cygwin/2006-05/msg00566.html
and
http://sourceware.org/ml/cygwin/2006-05/msg00575.html

An easier way is to used the Windows drivers. You need a Windows program
that could print.
You may use  "NOTEPAD /P" for text files and "Foxit Reader /p" for PDF files
You can use ghostscript for transforming ps files into PDF files
Foxit Reader is a faster than Acrobat Reader and has the convenient switch
"/p" for printing.

For example I use the following script (lprps) for printing postscript
files:

#!/bin/bash
## Para mandar un archivo PostScript a la impresora
## convirtiendolo en PDF y escribiendolo con Foxit
FRDIR="/cygdrive/c/Program Files/Foxit Software/Foxit Reader/Foxit
Reader.exe"
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dCompatibilityLevel=1.4
 -sOutputFile=/tmp/~lprps.pdf $1 ;
FDIR=`cygpath -wa /tmp/~lprps.pdf`
cygstart "$FRDIR" /p $FDIR
exit 0

The command
$ lprps FILE.ps
prints FILE.ps

I hope that this can be useful 
R.M.





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]