Comment 15 for bug 977912

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The Ghostscript command line used by pdftops when the printer is Kyocera is the following:

gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=ps2write -sOUTPUTFILE=%stdout -dLanguageLevel=3 -r600 -dCompressPages=false -dCompressFonts=false -dNoT3CCITT -c save pop -f /tmp/02bbe4f8e7e74

The resolution (" -r...") is always the actual printing resolution derived from the PPD file. The file name after the -f is the name of the PDF input file.

In addition, pdftops adds the following workaround PostScript code right after %%BeginProlog, being the first non-comment code in the output PS file:

----------
% ===== Workaround insertion by pdftops CUPS filter =====
% Kyocera's PostScript interpreter crashes on early name binding,
% so eliminate all "bind"s by redifining "bind" to no-op
/bind {} bind def
% =====
----------