https://bugs.kde.org/show_bug.cgi?id=181290
Tobias Koenig <to...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |to...@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. _______________________________________________ Okular-devel mailing list Okular-devel@kde.org https://mail.kde.org/mailman/listinfo/okular-devel