This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE:lpr works? FAQ in error?
- From: "Rodrigo Medina" <rodmedina at cantv dot net>
- To: cygwin at cygwin dot com
- Date: Fri, 9 May 2008 03:19:50 -0430
- Subject: RE:lpr works? FAQ in error?
- Reply-to: rodmedina at cantv dot net
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/