tagged PDF with rotation is not printed correctly

Bug #300312 reported by Joachim Schwender
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Till Kamppeter
Intrepid
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: cups

When i print a PDF which is landscape paper format with rotation tag, it prints rotated and cropped. This worked with 8.04 correctly. I observed the same effect when i compiled a 1.3.8 and a 1.3.9 version of cups on a debian etch, therefore i guess the bug origin is vanilla cups, or maybe one of the debian patches from lenny that i applied and maybe apply also to the ubuntu package?

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

I got a fix from the upstream developer of the /usr/lib/cup/filter/pdftopdf filter and I have applied it to the BZR repository for the CUPS package. So the next CUPS package in Jaunty will fix your problem.

Changed in cups:
status: New → In Progress
Changed in cups:
assignee: nobody → pitti
Revision history for this message
Martin Pitt (pitti) wrote :

Will do an upload soon, thanks Till!

Changed in cups:
assignee: pitti → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.3.9-9

---------------
cups (1.3.9-9) experimental; urgency=low

  [ Till Kamppeter ]
  * debian/local/filters/pdf-filters/pdftopdf/P2PPage.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2PResources.cxx: Added
    processing of the rotate tag (LP: #300312).

  [ Martin Pitt ]
  * Add png-image-int-overflow.dpatch: Fix integer overflow in the PNG image
    reader (Closes: #507183, STR #2974, CVE-2008-5286)

 -- Martin Pitt <email address hidden> Mon, 01 Dec 2008 15:47:10 -0800

Changed in cups:
status: Fix Committed → Fix Released
Changed in cups:
assignee: nobody → till-kamppeter
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted cups into intrepid-proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in cups:
status: New → Fix Committed
Revision history for this message
Tommi Mikkola (tommi-mikkola) wrote :

For me landscape printing with version 1.3.9-2ubuntu5 (from intrepid-proposed) does not work at all, i.e. the printer (HP Color LaserJet 4600) does not print anything.

I generated a landscape document with OO Calc and tried to print it directly from OO. The document is sent to the print queue, is processed, disappears from the queue, but nothing comes out of the printer. Tried another approach: create pdf, open with acroread, print from acroread. Exactly the same result. Printing the test page from the printer configuration (portrait document) works as expected. Reverting back to version 1.3.9-2ubuntu4 works as expected as well, i.e. I am able to print landscape documents.

Revision history for this message
Joachim Schwender (jschwender) wrote :

I can confirm that printing a pdf file with lpr does not output anything to the printer (Xerox Workcenter 7232). Cups log files do not show any error. It says always "exiting with no errors" and "Completed successfully".

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

Can you please replace your /usr/lib/cups/filter/cpdftocps file by the attached one? Please make sure that you make the new file world-executable.

Does it work again now?

Revision history for this message
Martin Pitt (pitti) wrote :

Updated version accepted into intrepid-proposed, please test:

cups (1.3.9-2ubuntu6) intrepid-proposed; urgency=low

  * debian/local/filters/cpdftocps: Fixed the fix for the number of copies.
    In some cases it failed and pstops was called with 0 copies
    requested. (LP: #309314)

 -- Till Kamppeter <email address hidden> Fri, 19 Dec 2008 15:58:55 +0100

Revision history for this message
Joachim Schwender (jschwender) wrote :

This time both A4 test files print correctly.
The rotation of A3 files seems ok, although they print cropped, i think i will open a different bug report on this A3 printing?

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

ferro, with this you have confirmed that this bug is fixed. For the issue with A3 see my comments on your separate bug report.

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

This bug was fixed in the package cups - 1.3.9-2ubuntu6

---------------
cups (1.3.9-2ubuntu6) intrepid-proposed; urgency=low

  * debian/local/filters/cpdftocps: Fixed the fix for the number of copies.
    In some cases it failed and pstops was called with 0 copies
    requested. (LP: #309314)

cups (1.3.9-2ubuntu5) intrepid-proposed; urgency=low

  [ Till Kamppeter ]
  * debian/local/filters/pdf-filters/pdftopdf/P2PCatalog.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2PCatalog.h,
    debian/local/filters/pdf-filters/pdftopdf/P2PDoc.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2PDoc.h,
    debian/local/filters/pdf-filters/pdftopdf/P2PPage.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2PPage.h,
    debian/local/filters/pdf-filters/pdftopdf/P2PPageTree.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2PPageTree.h,
    debian/local/filters/pdf-filters/pdftopdf/pdftopdf.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2PResources.cxx: Fixed problem
    of Landscape-oriented PDF files being printed in the wrong orientation
    (LP: #47649), added processing of the rotate tag (intrepid
    regression) (LP: #300312).
  * debian/local/filters/cpdftocps: Made correct number of copies
    being printed on PostScript printers with hardware copy handling
    (LP: #286048).

  [ Martin Pitt ]
  * debian/local/apparmor-profile: Allow cupsd to run Brother drivers.
    (LP: #237256)

 -- Till Kamppeter <email address hidden> Fri, 19 Dec 2008 15:58:55 +0100

Changed in cups:
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.