Landscape PDF documents get printed portrait, truncated

Bug #244840 reported by Peter Becker
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Till Kamppeter
Nominated for Intrepid by Till Kamppeter

Bug Description

This bug has been reported against a number of different tools and is at least in one variant (#47649) already 2 years old, but none of the reports goes to the extent I have been observing since upgrading to Kubuntu 8.04: printing certain landscape PDFs does not work correctly anymore at all -- they get printed in portrait and truncated. It used to be only a KPDF problem with the workaround of using Acrobat Reader (back in Feisty/Gutsy), but currently neither of those manages to print certain PDFs correctly despite displaying them correctly on screen.

One example is attached to #172664 -- it fails to print correctly in KPDF and Acrobat on a Kubuntu 8.04 (updates until today) and a HP OfficeJet Professional L7580 (via TCP/IP). The same applies to all PDFs found here: http://www.thewiggles.com.au/au/playground/colourin as well as other PDFs I can not distribute or link to. I can probably find more examples if necessary, I actually can not provide an example of a landscape PDF that works at the moment. Files exported from OOo show the problem, files printed into PDF using the generic printer work in print, but are actually rotated portrait and not landscape (wrong orientation on screen). Direct printing from OOo works correctly.

Since I have no workaround for this problem it is actually very inconvenient for me since it forces me to switch to other operating systems for printing. Affected are at least KPDF (both embedded and standalone) as well as Acrobat Reader, judging from the search results there are other applications affected, too (e.g. evince).

Revision history for this message
Greg A (etulfetulf) wrote :

Have you tried printing these using evince on your system? "Wiggly Beach Friends" printed fine for me under evince and Adobe (from Medibuntu). However I then installed KPDF and it printed as you described.

Also, have you tried various options in Adobe? For example the 'Orientation' and 'Auto Rotate and Center'.

Revision history for this message
JM Williams (jmdwilliams) wrote :

A workaround would be to install pdftk and use this to rotate PDFs before printing them.

For example, the following should work for the first Wiggles illustration on the page you linked to:

    pdftk band.pdf cat 1-endR output band-rotated.pdf

This may not an elegant workaround, but it is a workaround!

Revision history for this message
Peter Becker (peter-peterbecker) wrote :

Greg: I installed evince and it nearly works. The pages are printed in landscape, although slightly cropped left and right.

I also tried the options in Adobe Reader again, the only relevant seem to be "Auto Rotate and Center" (checkbox) and "Orientation" (Portrait/Landscape radiobuttons). Of the four resulting choices one actually works: the combination of auto rotate/center with "portrait". All others fail and somehow "portrait" feels counterintuitive, but at least I have a workaround. I assume what Adobe Reader does in that case is the equivalent of JM's proposed approach: it rotates the landscape PDF into portrait orientation and prints the result, which IMO means that landscape printing as such is still broken.

Revision history for this message
LindseyD. (ai279) wrote :

I can certainly confirm the bug in kpdf. Over on the bug 47649 page they suggest using xpdf. Have you tried that? I haven't tried Adobe, because if I wanted to use it, I have an old Windows install I could use.

Changed in cupsys:
assignee: nobody → till-kamppeter
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
cups (1.3.9-10) experimental; 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: Fixed problem
    of Landscape-oriented PDF files being printed in the wrong orientation
    (LP: #47649, LP: #244840).

  * 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)

 -- Martin Pitt <email address hidden> Wed, 17 Dec 2008 07:46:04 +0100

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