Comment 8 for bug 1585380

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

No, foomatic-rip launches Ghostscript to convert PDF or PostScript into the printer's native language using the built-in drivers of Ghostscript. Formerly when the print data was always sent in PostScript format one made use of the fact that PostScript is a full programming language and so one could hook the code for counting the pages into the call for termination of a page.

As there are some PPDs using foomatic-rip but in a way that it does not call Ghostscript and now the print data is also supplied in PDF and not in PostScript any more, the mentioned mechanism for counting pages does not work any more. Therefore we pass the job of counting pages over to pdftopdf as pdftopdf treats each page individually with QPDF and so it is able to count the pages easily.

There was never a call of Ghostscript solely for counting the pages.