[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
the problem deals with the PRINTER DRIVER. SO I report the same bug affecting Kubuntu 17.04 and Brother MFC-L2700DW series with driverless cups filter 1.13. The problem is that the driver is not good. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
not resolved !!! *** hi with opensuse13.1 LO Version: 4.3.2.2 Build ID: edfb5295ba211bd31ad47d0bad0118690f76407d print via cups 2 pages per sheet to brother MFC-J6510DW Name: mfcj6510dwcupswrapper Version : 3.0.0 Release : 1 Architecture: i386 Install Date: Mit 25 Jun 2014 17:47:16 CEST Group : Applications Size: 64256 License : 2004-2012 Brother Industries, Ltd. All Rights Reserved Signature : (none) Source RPM : mfcj6510dwcupswrapper-3.0.0-1.src.rpm Build Date : Don 22 Mär 2012 09:07:35 CET Build Host : localhost.domain Relocations : (not relocatable) Packager: root@localhost Vendor : Brother Industries, Ltd. Summary : Brother CUPS Inkjet Printer Definitions Description : Brother Inkjet printer CUPS Driver Distribution: (none) LO prints the pages still as shown in the attachment current and expected behavior. thanks -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
No but brother printers consistently show problems - if you do a bugzilla search you'll see quite a few hits and as far as I know we have no triagers that have a brother printer (I avoid them like the plague because it's obvious they have issues in Linux) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
sorry to hear that... Brother printers are affected by multiple issues on LibO. see this bugzilla query: http://snipurl.com/29cxibw -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
hi tommy27 as i already told, Brother_MFC-J6510DW is a strange printer! paper feed an ADF is rotated by 90° against each other. but only the printer should be interested in that. KDE printing works. what is the difference from LO and KDE printing? they use the same printer driver, cups, ... i guess the problem could be somewhere in LO between prepare the print and sending it to cups? can i do something more? thanks -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
and as a remember: printing the odt as an pdf with okular (kde pdf-reader) 2 pages per sheet does the job as it should be. thanks -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
I have no experience with Linux so I can't help. @Joel Madero any ideas about this? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
-- stof...@cmdt.ch please give an update of the bug status using latest LibO 4.3.2.2 release. thanks for your feedback -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
Can you backport it to saucy? (currently on 0.24.1-0ubuntu1) If somebody wants to work on that I can look at doing the sponsoring. I don't think the desktop team is going to work on it though, saucy is neither the current stable nor the LTS and the issue is not a security one, we would recommend updating to trusty. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
This bug was fixed in the package poppler - 0.24.3-0ubuntu2 Can you backport it to saucy? (currently on 0.24.1-0ubuntu1) ** Bug watch added: freedesktop.org Bugzilla #49946 https://bugs.freedesktop.org/show_bug.cgi?id=49946 ** Bug watch added: freedesktop.org Bugzilla #44664 https://bugs.freedesktop.org/show_bug.cgi?id=44664 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
Other upstream bugs: https://bugs.freedesktop.org/show_bug.cgi?id=49946 https://bugs.freedesktop.org/show_bug.cgi?id=44664 ** Also affects: cups via https://bugs.freedesktop.org/show_bug.cgi?id=49946 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/cups/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
Launchpad has imported 26 comments from the remote bug at https://bugs.freedesktop.org/show_bug.cgi?id=49946. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2012-05-15T02:29:54+00:00 christoph mueller wrote: Problem description: with LibreOffice 3.5.3.2 Build-ID: 235ab8a-3802056-4a8fed3-2d66ea8-e241b80 print 2 pages per sheet on a brother MFC-J6510DW: - OOO uses by default orientation landscape. print output: sheet=portrait with 1 1/2 pages (1/2 is truncated) centered in portrait orientation. - change orientation manually to portrait: print output: sheet=portrait with 2 pages centered in portrait orientation. Brother_MFC-J6510DW is a strange printer! paper feed an ADF is rotated by 90° against each other. but only the printer should be interested in that. print 2 pages per sheet from a pdf-file printed with okular (kde pdf- reader) works fine. Steps to reproduce: 1. 2. 3. Current behavior: sheet=portrait with 1 1/2 pages (1/2 is truncated) centered in portrait orientation. Expected behavior: sheet=landscape with 2 pages in portrait orientation Platform (if different from the browser): Browser: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0 Reply at: https://bugs.launchpad.net/ubuntu/+source/cups- filters/+bug/1243484/comments/0 On 2012-05-15T02:41:02+00:00 christoph mueller wrote: Created attachment 61672 current and expected behavior Reply at: https://bugs.launchpad.net/ubuntu/+source/cups- filters/+bug/1243484/comments/1 On 2012-06-13T21:54:06+00:00 Dparsons-b wrote: I'm experiencing this bug too. When printing two pages per sheet, the output is misoriented, such that the two pages are [partially] printed in landscape where the sheet has portrait orientation. That is, the text is restricted (and truncated) to a band across the middle of the sheet. The printing engine is not rotating the text appropriately in order to fit two pages on one sheet. The printing error happens exactly the same regardless of the setting of Paper Orientation in the printer Properties, whether portrait or landscape is used there. Reply at: https://bugs.launchpad.net/ubuntu/+source/cups- filters/+bug/1243484/comments/2 On 2012-06-13T21:59:36+00:00 Dparsons-b wrote: Incidentally Bug #46341 sounds like the same bug. Reply at: https://bugs.launchpad.net/ubuntu/+source/cups- filters/+bug/1243484/comments/3 On 2012-06-22T10:00:51+00:00 Libreoffice-z wrote: Works perfect with parallel installation of Master LOdev 3.7.0.0.alpha0+ - WIN7 Home Premium (64bit) ENGLISH UI [Build ID: 8d39b7] (tinderbox: W2008R2@16-minimal_build, pull time 2012-06-20 04:38:46) and Oki 14ex (others not tested). @Drew Parsons With info concerning OS, LibO version, Printer and so on your Comment 2 would have been much more valuable. @Reporter: that 2 pages per sheet function also is available for Calc, Draw, ... . Is your problem really limited to Writer? Reply at: https://bugs.launchpad.net/ubuntu/+source/cups- filters/+bug/1243484/comments/4 On 2012-06-22T10:31:59+00:00 Libreoffice-z wrote: *** Bug 46341 has been marked as a duplicate of this bug. *** Reply at: https://bugs.launchpad.net/ubuntu/+source/cups- filters/+bug/1243484/comments/5 On 2012-06-24T22:31:54+00:00 christoph mueller wrote: the problem occurs also in impress! so involved component of reported bug should be changed to Printing ??? Reply at: https://bugs.launchpad.net/ubuntu/+source/cups- filters/+bug/1243484/comments/6 On 2013-02-21T08:10:05+00:00 Rgloor wrote: problem still exists with: with LibreOffice 4.0.0.3 under Linux (openSUSE 12.2 with all patches) works fine when creating a normal (non-multipage) PDF and printing PDF with Okular or AdobeReader. Reply at: https://bugs.launchpad.net/ubuntu/+source/cups- filters/+bug/1243484/comments/7 On 2013-02-21T08:24:54+00:00 Rgloor wrote: PDF multipage test: Since the build-in PDF creator does not support printing multipage, I printed a PDF using CUPS and Ghostscript. So one could utilize the regular LibreOffice Print dialog. There, printing 2 pages per sheet worked fine. So the multipage printing problem persist
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
I have this problem in Libreoffice Writer, Impress etc. Changing the printer output format from PDF to Postscript (level 3 or 2) seems to fix it -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Pushed. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Ok, regtest finished, all looks good, please commit! -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
** Changed in: poppler Status: Confirmed = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Not a biggie since it's a broken file, but when running pdftops on page 30 of https://bugs.freedesktop.org/attachment.cgi?id=9910 the unpatched version creates something that gs can read (even if ends up beign empty) while the patched version creates something that makes gs unhappy. Can you have a quick look to see how hard would it be to get doesn't make gs hate the output ps file? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Created attachment 92877 0008 ensure there is always a valid page size in the output -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Albert, Any update on the review/testing of these patches? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
(In reply to comment #54) Are the patches fixing pdftocairo the same way as pdftops so that the PS output of pdftocairo has everything fixed which was fixed in pdftops? See the following bug report https://bugs.linuxfoundation.org/show_bug.cgi?id=1176 The rporter tells that all is OK when using pdftops and he gets a wrong result with pdftocairo. He also filed bug 73452 a few minutes ago. I assumed CUPS should be setting the page size when IncludeFeature is used as described in: http://lists.cairographics.org/archives/cairo/2006-February/006278.html but this does not seem to work. Looks like I will need to use setpagedevice in the cairo PS output. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Are the patches fixing pdftocairo the same way as pdftops so that the PS output of pdftocairo has everything fixed which was fixed in pdftops? See the following bug report https://bugs.linuxfoundation.org/show_bug.cgi?id=1176 The rporter tells that all is OK when using pdftops and he gets a wrong result with pdftocairo. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Yes, I tried to apply all the patches listed on this bug to poppler 0.24.5, with cairo being 1.12.16, and the issue was not resolved for me. Thanks for looking into this. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
** Bug watch added: bugs.linuxfoundation.org/ #1176 https://bugs.linuxfoundation.org/show_bug.cgi?id=1176 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Thank you very much, I have now reverted to my original patch plus a patch to fix duplex so that in the current Ubuntu package this bug is fixed. Your patches will go in as part of a later Poppler update (to a Poppler version which includes the patches). -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Generally, the patches work well, but they have a problem. They break the ABI. I have backported them into the current Ubuntu package and now several other packages which use Poppler, like evince, do not work any more. Is it not possible to solve our problem without ABI change? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
(In reply to comment #51) Is it not possible to solve our problem without ABI change? Unfortunately not. But you don't need all the patches to fix the bug you reported. You can omit 0002 since DSC comments don't affect printing. 0004 can be omitted since that is a cleanup that doesn't affect functionality. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Created attachment 91314 0006 - pdftocairo fixes Apply origpagesize and crop box changes to pdftocairo to ensure it works the same way as pdftops. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Created attachment 91315 0007 cairo clip to crop box Another crop box fix for cairo. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
Created attachment 91266 0002 - fix media DSC comments -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
While running pdftops -f 30 -l 30 over https://bugs.freedesktop.org/attachment.cgi?id=9910 the patched version segfaults while the old one does not. Can you have a look? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
ok, if adobe does the same maybe it makes sense. Are you making the qt- ps-converters do the same too? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484]
(In reply to comment #45) Are you making the qt-ps-converters do the same too? It should work. All the changes are internal to the PSOutputDev class. I tried qt4-demo but it doesn't seem to have a print function. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
The Poppler fix is still under test to make sure that there are no regressions. See https://bugs.freedesktop.org/show_bug.cgi?id=72312 As soon as it finalizes I will look into backporting it to 13.10. ** Bug watch added: freedesktop.org Bugzilla #72312 https://bugs.freedesktop.org/show_bug.cgi?id=72312 ** Also affects: poppler via https://bugs.freedesktop.org/show_bug.cgi?id=72312 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/poppler/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
Launchpad has imported 45 comments from the remote bug at https://bugs.freedesktop.org/show_bug.cgi?id=72312. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2013-12-04T12:50:32+00:00 Till Kamppeter wrote: Created attachment 90227 pdftops-origpagesizes-fixes.diff In reality the fix is in the PostScript output device, but there is no appropriate item to select as component. There are some distro bug reports about Landscape-oriented page printing with CUPS (1.6.x or newer), cups-filters, and PDF-PostScript conversion with Poppler's pdftops: https://bugzilla.redhat.com/show_bug.cgi?id=768811 https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/1243484 https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/1247740 As a quick workaround distro package maintainers have removed the -origpagesizes from the call of Poppler's /usr/bin/pdftops by the /usr/lib/cups/filter/pdftops filter of cups-filters. I have not taken this workaround patch upstream into cups-filters as the real problem is in Poppler's PostScript output device. When printing with CUPS 1.6.x or newer print jobs in PDF format are first treated by the pdftopdf filter (of cups-filters). One thing this filter does is rotating Landscape-oriented pages by 90 degrees for printers which take their paper only short-edge first (portrait orientation). For this rotation not the actual file content is rotated, but a rotation field is set (usually incremented by 90). You can see it by running pdfinfo on the input and on the output of pdftopdf. If the first page of the PDF file is Landscape-oriented, the Page rot: entry will change by 90 degrees. I have displayed such a PDF file with several different viewers (evince, gs, gv) and the rotation field is taken into account, Landscape-oriented pages are rotated. Only when I run such a file through pdftops -origpagesizes the rotation is not taken into account and in the resulting PostScript file the Landscape-oriented pages appear unrotated, leading to wrong printouts when the /usr/lib/cups/filter/pdftops filter calls pdftops -origpagesizes. This was leading to the wrong printouts the users complained about in the bug reports. The workaround of dropping -origpagesizes works well if all pages of the input document are of the same size but if they are variable sizes, pages can get cut or squeezed (this is why I contributed the -origpagesizes mode to Poppler earlier). I looked into the implementation of -origpagesizes and realized that I forgot to take the rotation field into account. I also realized that the paperMatch mode of the normal PostScript output mode (if you run pdftops without -paper, -paperw, and -paperh) is very similar to -origpagesizes and takes the rotation field into account. So my attached patch folds the -origpagesizes mode implenmentation into paperMatch and only does slight modifications. The original paperMatch mode behavior is conserved to not break other programs using it. The differences of the new -origpagesizes mode are the following: 1. The rotation fields of the input PDF pages are taken into account. 2. The %%DocumentMedia: ... and following %%+ ... lines are removed. Most PostScript displayers assume all pages being of the size in the %%DocumentMedia: ... line. Without these lines they have no problems displaying each page in the correct size. 3. The output pages are never centered, -origpagesizes activates -nocenter implicitly. Normally, there should be no difference as the output pages get the sizes of the input pages but there are some odd files which need this measure. With this all PDF input files convert into PS output files where all pages display in the same size and orientation in the input and output files. Reply at: https://bugs.launchpad.net/ubuntu/+source/cups- filters/+bug/1243484/comments/10 On 2013-12-04T12:59:03+00:00 Till Kamppeter wrote: Created attachment 90228 CityMap-pdftopdf.pdf Sample file: till@till-twist:~$ pdfinfo CityMap-pdftopdf.pdf Creator:Adobe InDesign CS3 (5.0.4) Producer: Adobe PDF Library 8.0 CreationDate: Thu Jul 9 10:24:27 2009 ModDate:Thu Jul 9 10:24:31 2009 Tagged: no Form: none Pages: 1 Encrypted: no Page size: 841.89 x 595.276 pts (A4) Page rot: 90 File size: 326314 bytes Optimized: no PDF version:1.4 till@till-twist:~$ As one can see at the Page size: and Page rot: entries, this file is Landscape-oriented and got rotated by 90 degrees. Without my patch the output of pdftops -origpagesizes CityMap-pdftopdf.pdf is not rotated, with my patch it is. Reply at: https://bugs.launchpad.net/ubuntu/+source/cups- filters/+bug
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
** Branch linked: lp:debian/cups-filters -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
** Branch linked: lp:ubuntu/trusty-proposed/cups-filters -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
This bug was fixed in the package cups-filters - 1.0.43-1 --- cups-filters (1.0.43-1) unstable; urgency=medium * New upstream release 1.0.43: - pdftopdf: Fixed software copy generation logic for printers with hardware copy generation, but without collate support (LP: #1259240). - pstopdf: Support for the landscape and orientation-requested options (LP: #1243484). * Drop all patches: - PATH_MAX fix was from upstream; - The Fedora fix for PDF landscape printing got included differently. * Update debian/watch to prefer .xz tarballs * Install manpages for cups-browsed and foomatic-rip -- Didier Raboud o...@debian.org Thu, 19 Dec 2013 19:29:49 +0100 ** Changed in: cups-filters (Ubuntu) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
cups-filters 1.0.43 (with the fix) released upstream. ** Changed in: cups-filters (Ubuntu) Status: Incomplete = Fix Committed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
I have now tested your test-tmpl.ps file and dine some fixes on the pstopdf, pdftopdf, and pdftops filters. Now I get correct results with it. The fix will get into Ubuntu with the release of cxups-filters 1.0.43. Please test when the package gets available in Trusty (use a live CD/USB stick or a virtual machine if you do not have Trusty installed). -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
The problem is caused by the auto rotation done by pdftopdf which makes the pages rotated to print short-edge-first if the printer requires this. If your original page is portrait and you request landscape, pdftopdf rotates it by 90 degrees and after that pdftopdf applies auto rotation and rotates the page by another 90 degrees putting it upside down (180 degrees). Please try the nopdfAutoRotate option: lp -d queue -o landscape -o nopdfAutoRotate /usr/share/cups/data/default.pdf Is this what you are looking for? All PDF files have already defined geometries for each page and the auto-rotation of pdftopdf rotates landscape pages when the printer pulls in the paper only in portrait orientation. So simply sending a PDF file without the landscape option does usually the right thing. The landscape option makes more sense if the input data has no ready layout, like plain text. texttopdf will layout the text on landscape- oriented pages with this option. So why are you using the landscape option in your particular case? So for text files it would make more sense if pdftopdf ignores the landscape option as texttopdf is already doing the job. For PDF files you usually decide in the desktop application whether it should be landscape-oriented, so here pdftopdf applying a landscape option is also not of much sense. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
Thanks for the clarifications, and the nopdfAutoRotate option does seem to help somehow. However, I believe the problem is still present for a couple of important reasons. The initial report used PDF files and a generic queue as a way to easily expose the problem, but it affects more than this. I generally agree with you that using landscape with stock PDF files does not particularly happen much. - Most importantly, in most recent Linux distributions that have adopted the PDF workflow, this affects also Postscript jobs, which get converted internally to PDF and then handled by pdftopdf. - This breaks the semantics of the job options, and our customers in turn put the blame on us (providing the PPD driver) when this stops working for queues that previously handled the 'landscape' option consistently for their jobs. The core of the issue here is that in spite of the switch to the PDF workflow, there are still a lot of customers with legacy PS output that needs to be handled consistently, and we expect the core of the print system to not interfere with this whenever possible. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
PostScript files are also readily layouted documents as PDF files. So if you create something printable from a desktop app which still sends print jobs in PostScript, you also determine in the app whether the pages are landscape- or portrait-oriented. So on PostScript jobs the landscape option also does not make much sense. And as I said, for plain text landscape should determine the layout used by texttopdf. Can you attach PostScript (or PDF) files where your customers would use the landscape option? And can you tell me why they use the landscape option? Are their printers holding A4 paper to be printed long-edge first? Or are there other reasons? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
Not to be pedantic, but while this is not very usual (especially for PS code produced by vanilla applications), it is a lot easier for PS code to be more adaptive. The CUPS test page is actually a good example of this. PDF is generally completely constrained by the page dimensions. The main reason this came up is because of acceptance tests that the QA department of one of our customers ran with the latest versions of Linux distributions. They noticed that the behavior for certain PDF and PS files changed from what it used to be, and whether or not this is a practical everyday use, this in turn was interpreted as not conforming to the expected output. And to the extent that the format of the output changed for the same files with the exact same job options, they were technically correct... -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
The landscape option is a shortcut for the IPP standard option orientation-requested=3 and RFC 2911 (http://tools.ietf.org/search/rfc2911) tells about the meaning of orientation-requested=...: -- This attribute indicates the desired orientation for printed print- stream pages; it does not describe the orientation of the client- supplied print-stream pages. For some document formats (such as 'application/postscript'), the desired orientation of the print-stream pages is specified within the document data. This information is generated by a device driver prior to the submission of the print job. Other document formats (such as 'text/plain') do not include the notion of desired orientation within the document data. In the latter case it is possible for the Printer object to bind the desired orientation to the document data after it has been submitted. It is expected that a Printer object would only support orientations-requested for some document formats (e.g., 'text/plain' or 'text/html') but not others (e.g., 'application/postscript'). This is no different than any other Job Template attribute since section 4.2, item 1, points out that a Printer object may support or not support any Job Template attribute based on the document format supplied by the client. However, a special mention is made here since it is very likely that a Printer object will support orientation-requested for only a subset of the supported document formats. -- Following this, pdftopdf should ignore landscape and orientation- requested and texttopdf and imagetopdf should use it for layouting the job. To server special, size-less PostScript files, the landscape and orientation-requested should also be taken by the pstopdf filter and swap width and length of the page size supplied to Ghostscript for the PS-PDF conversion. WDYT? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
I would tend to agree with your assessment. The cause of the problems right now seem to be some duplication of the handling of these options between the various involved filters, so that should probably be streamlined. For reference, I am attaching the PS test page that was used by our customer to exhibit the issues. It is admittedly handcrafted, so it is not representative of what may be generated by an office application. ** Attachment added: test-tmpl.ps https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+attachment/3923997/+files/test-tmpl.ps -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
Can be caused by Poppler, I am currently investigating this. Please follow the instructions of the sections CUPS error_log and Capturing print job data on https://wiki.ubuntu.com/DebuggingPrintingProblems. Thanks. ** Also affects: poppler (Ubuntu) Importance: Undecided Status: New ** Changed in: poppler (Ubuntu) Status: New = Incomplete ** Changed in: cups-filters (Ubuntu) Status: New = Incomplete -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1243484] Re: Incorrect handling of orientation when printing PDF files
This bug was fixed in the package poppler - 0.24.3-0ubuntu2 --- poppler (0.24.3-0ubuntu2) trusty; urgency=low * debian/patches/pdftops-origpagesizes-fixes.diff: Output of pdftops -origpagesizes was broken, especially PDFs which have a rotation set (for example from the pdftopdf from cups-filters) are turned into PostScript files without this rotation. This leads to problems with Landscape-oriented printouts, especially on mobile devices where only Poppler is available and no Ghostscript for doing PDF-PS conversion (Red Hat bug #768811, LP: #1243484, LP: #1247740). -- Till Kamppeter till.kamppe...@gmail.com Tue, 3 Dec 2013 18:01:33 +0100 ** Changed in: poppler (Ubuntu) Status: Incomplete = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to poppler in Ubuntu. https://bugs.launchpad.net/bugs/1243484 Title: Incorrect handling of orientation when printing PDF files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1243484/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs