[cups.general] Printing to a file...

Helge Blischke h.blischke at srz.de
Tue Jan 18 04:34:00 PST 2005


Daniel Hawker wrote:
> 
> Hi All,
> 
> Have an application running on our RedHat Enterprise Linux ASv3 box that
> creates a PCL file. The app basically cats a couple of files together
> and then uses lpr to send it directly to a printer we designate as a RAW
> file, which the printer then prints.
> 
> I'd like to be able to *capture* the PCL file, so that I can then use
> GhostPCL to convert it to a pdf document. I have this working already
> with Postscript files, by using a CUPS backend and creating an
> appropriate printer, however haven't been able to conjour up any way of
> doing it with PCL ones as the file just gets scrambled.
> 
> Have tried trawling through the web to find out what I can do with lpr
> to send it to a file, rather than the printer, however haven't managed
> to come up with anything yet. Presume you use the -d switch, but the man
> page is rather vague anout the options it allows here and I've not been
> able to find any clues.
> 
> Any help much appreciated.
> 
> TIA
> 
> Dan

Best is to write a script (shell, Perl, Python, or whatever you like)
conforming
to the CUPS conventions for backends that captures the standard input
and runs
it through GhostPCL.

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
tel: +49 30 75301-360




More information about the cups mailing list