[Okular-devel] [Bug 181290] Landscape pdf prints with wrong orientation when choosing landscape in print dialog
Tobias Koenig
tokoe at kde.org
Wed Oct 21 14:05:50 CEST 2009
https://bugs.kde.org/show_bug.cgi?id=181290
Tobias Koenig <tokoe at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tokoe at kde.org
--- Comment #20 from Tobias Koenig <tokoe kde org> 2009-10-21 14:05:45 ---
Hej,
I investigated the bug a bit, here are the results:
The PDF we talk about here have '%%Orientation Landscape' or '%%PageOrientation
Landscape' inside, that means CUPS knows that this file is landscape and
therefor rotates it automatically when passing the plain file to lpr.
In part.cpp:setupPrinter() however, the QPrinter orientation property is set to
landscape, because the width of the page is larger than the height. When the
PDF is printed then, the code in core/fileprinter.cpp:optionOrientation checks
whether the QPrinter orientation property is set to 'landscape' and if so
passes '-o landscape' as argument to lpr.
So CUPS will find the %%Orientation tag inside the PDF and rotates the page
correctly, however it will also see the '-o landscape' option on the command
line and rotates the page again -> page is printed incorrectly.
I'm a bit helpless here since I don't know how to fix it in the right way.
Omitting the code in setupPrinter() for the poppler backend and trust that the
orientation is always given inside the PDF?
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Okular-devel
mailing list