Comment 2 for bug 902599

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Re: Cups does only print 1/3 of all objects in document.

I can reproduce this bug and it is a problem of Ghostscript's PDF interpreter. I have printed the attached file Ausgabe.pdf into a PDF file with evince (Printer "Print to File", resulting PDF file attached). Then I have run the following Ghostscript command line on it

cat Ausgabe-evince.pdf | /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=png16m -sstdout=%stderr -sOutputFile=%stdout -r200x200 -_ > out.png

and out.png showed only the horizontal "Presse" at the bottom. The problem only occurs with high, printing-typical resolutions. If I use "-r100x100" I get correct output. All higher resolutions only give me the horizontal "Presse" at the bottom.

The output device does not matter. The original command line with the "cups" output device

cat Ausgabe-evince.pdf | /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sMediaType=Plain -sOutputType=0 -dDuplex -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=832 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=17 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c -f -_ > out.raster

shows the same problem and also changing the color space parameters or removing all parameters except " -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -r600x600" shows the problem.

Whenever the problem occurs, Ghostscript takes unusually long time to finish.

Using the "cups" output device in a monochrome mode, like with this commandf line

cat Ausgabe-evince.pdf | /usr/bin/gs -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -r600x600 -_ > out.raster

lets the upper right rectangle with vertical "Presse" appear in a very light gray.

To visualize CUPS Raster files I use

http://www.easysw.com/~mike/rasterview/index.html