Smart Printer Pfd selection

Helge Blischke h.blischke at srz.de
Fri Jun 13 05:01:06 PDT 2008


Dave smith wrote:
> I have a printer that will accept a pdf document directly. Our application sometimes sends text files and sometimes generates pdf. The application has no idea of the printer type (ie. does the printer support the direct print pdf option). Is it possible to setup cups so that if a print queue is passed a pdf it prints it directly without converting to postscript first? But in the case of a plain text file it does the conversion to ps.
> 
> 
> 

You could tell CUPS that PDF is a native format for the printer
by putting a line

*cupsFilter: "application/pdf 0 -"

into the printer's PPD. That will feed PDF files directly into
the printer, bypassing any CUPS filters. But note that this solution
lacks any evaluation of job attributes (like page-ranges, orientation,
etd. etc., unless the printer is hooked to the IPP backend and
handles the job attributes passed through by IPP.

Helge


-- 
Helge Blischke
Softwareentwicklung

H.Blischke at acm.org




More information about the cups mailing list