Natty SRU: pstopdf not working correctly with non-default paper sizes

Bug #787635 reported by Till Kamppeter
10
This bug affects 1 person
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
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have uploaded the new cups package for the SRU to natty-proposed now. The debdiff to show the change is attached.

Changed in cups (Ubuntu Natty):
status: In Progress → Fix Committed
Changed in cups (Ubuntu):
importance: Undecided → Medium
Changed in cups (Ubuntu Natty):
importance: Undecided → Medium
Revision history for this message
Martin Pitt (pitti) wrote :

I uploaded Till's fix (which was already in bzr) to sid now, from where it will be autosynced into oneiric.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.4.6-6

---------------
cups (1.4.6-6) unstable; urgency=low

  [ Till Kamppeter ]
  * debian/filters/pstopdf: Let pstopdf 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 (LP: #787635).

  [ Martin Pitt ]
  * Revert calling "convert" on the banner PNGs (r961); the file is already
    correct in the source. The format conversion happens in Ubuntu's
    pkgbinarymangler, so it does not affect Debian builds at all and also this
    cannot be circumvented that way. Instead, blacklist this package from
    pkgstripfiles. (LP: #710881)
  * Bump Standards-Version to 3.9.2 (no changes necessary).
 -- Martin Pitt <email address hidden> Wed, 25 May 2011 07:03:55 +0200

Changed in cups (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted cups into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The new package solves the problem.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.4.6-5ubuntu1.1

---------------
cups (1.4.6-5ubuntu1.1) natty-proposed; urgency=low

    * debian/filters/pstopdf: Let pstopdf 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 (LP: #787635).
 -- Till Kamppeter <email address hidden> Tue, 24 May 2011 17:58:02 +0200

Changed in cups (Ubuntu Natty):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.