Comment 24 for bug 917148

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

I investigated the problem more and found its cause. On the transition from Natty to Oneiric Ghostscript got used instead of Poppler to convert PDF to CUPS Raster. Poppler did everything right and rotated the landscape-oriented pages by 90 degrees so that they fit into the A4 paper which the printer can only use in portrait orientation. Due to some incorrectly defined paper dimensions in the input PDF file and/or the PPD file Ghostscript failed to rotate the pages and so they got printed in the wrong orientation, cut off at the right. In addition, the bitmap not fitting into the printer's dimensions made the printer crash after some time, not accepting more data any more, blocking the completion of the job.

Probably this is a bug in the printer's firmware as all other HP printers keep printing with the "too much" on the right being cut off.

I have fixed Ghostscript's failure to rotate the pages when using the hpcups driver in Ghostscript upstream. This fix will appear in the next Ghostscript package on Ubuntu.

To the HPLIP developer's at HP, can you do something with hpcups so that printers do not crash any more if the CUPS Raster bitmap input is of wrong dimensions?

To reproduce: Print the attached file via the command line ("lpr -P <printer> launch_leaflet.pdf") to an HP inkjet. On most printer models the job will finished but with the page content not correctly rotated. Some printers will crash (no accepting data any more, need to get power-cycled).

The Ghostscript fix should avoid for most cases that unsuitably dimensioned bitmaps get sent to HP inkjets.