Natty SRU: pstopdf not working correctly with non-default paper sizes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Natty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: cups
I had to change pstopdf (upstream and in the Debian BZR of CUPS, and so for the next Oneiric package of CUPS) to let it determine the page size via the "PageSize" or "PageRegion" setting in the 5th command line argument and not via "media". The "media" setting is usually inserted by CUPS and uses a PWG name of the paper size and not the name used in the PPD file. This makes Ghostscript being called without paper size setting and so a PDF file in the default paper size (A4/Letter) is passed on, breaking any printout from applications which send jobs in PostScript and which have a non-default paper size.
To reproduce, install "flphoto" (from Universe) and try to print a photo with the paper size "Photo 4x6 Borderless" on appropriate photo paper on an HP inkjet printer (HPLIP/hpcups as driver). Only a small strip of the photo hits the paper as the pstopdf filter passes on an A4 page with the photo in its lower left corner. What gets on the paper is the upper left corner of this A4 page.
The problem only occurs for applications which still send jobs in PostScript format and not in PDF (like most other photo apps), and if the printer is not a PostScript printer.
Changed in cups (Ubuntu): | |
status: | New → Fix Committed |
Changed in cups (Ubuntu Natty): | |
status: | New → In Progress |
I have uploaded the new cups package for the SRU to natty-proposed now. The debdiff to show the change is attached.