Comment 15 for bug 960989

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

It is really strange, there are several ways to get the broken file.

Yesterday I discovered that it happened with "Print to a file (PDF)" in Okular. This is a bug of Okular or the underlying Poppler, but not this bug.

When I print into an actual print queue (with ljet4 as driver) Okular sends PostScript (most apps send PDF nowadays) and this PostScript is still correct (therefore this bug is not an Okular bug). CUPS calls the pstopdf filter to turn this PostScript to PDF and this filter uses Ghostscript. On this step the file breaks.

You can reproduce it by running the following command with the attached PostScript file:

gs -sDEVICE=pdfwrite -sOutputFile=out.pdf printout.ps

This means that the bug is actually in Ghostscript, with Ghostscript's "pdfwrite" output device.

Moving to Ghostscript ...