[Bug 908624] New: printing of certain pdf files does not work correct
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 Bug ID: 908624 Summary: printing of certain pdf files does not work correct Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: x86-64 OS: openSUSE 13.2 Status: NEW Severity: Major Priority: P5 - None Component: Printing Assignee: jsmeix@suse.com Reporter: stefan.brandner@gmx.at QA Contact: jsmeix@suse.com Found By: --- Blocker: --- Created attachment 616147 --> http://bugzilla.opensuse.org/attachment.cgi?id=616147&action=edit pdf file which causes problem When I print attached pdf file it is not centered but shifted to the right. Printing the same file with Opensuse 13.1 works fine. To exclude a printer driver problem I installed cups-pdf. When I print to cups-pdf I do see the problem as well. I have attached one of the pdf files that shows the problem. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 --- Comment #1 from Stefan Brandner <stefan.brandner@gmx.at> --- Created attachment 616149 --> http://bugzilla.opensuse.org/attachment.cgi?id=616149&action=edit pdf shows how print out looks like -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 --- Comment #2 from Stefan Brandner <stefan.brandner@gmx.at> --- Created attachment 616150 --> http://bugzilla.opensuse.org/attachment.cgi?id=616150&action=edit cups debug of opensuse 13.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 --- Comment #3 from Stefan Brandner <stefan.brandner@gmx.at> --- Created attachment 616151 --> http://bugzilla.opensuse.org/attachment.cgi?id=616151&action=edit cups debug not working opensuse 13.2 parameters for page setup and size are different: D [05/Dec/2014:11:27:32 +0100] Discarding unused job-progress event... D [05/Dec/2014:11:27:32 +0100] [Job 10] pagew = 575.0, pagel = 822.0 D [05/Dec/2014:11:27:32 +0100] [Job 10] bboxx = 0, bboxy = 0, bboxw = 311, bboxl = 542 D [05/Dec/2014:11:27:32 +0100] [Job 10] PageLeft = 10.0, PageRight = 585.0 D [05/Dec/2014:11:27:32 +0100] [Job 10] PageTop = 832.0, PageBottom = 10.0 D [05/Dec/2014:11:27:32 +0100] [Job 10] PageWidth = 595.0, PageLength = 842.0 D [05/Dec/2014:11:27:32 +0100] [Job 10] Copying page 2... D [05/Dec/2014:11:27:32 +0100] [Job 10] PAGE: 2 1 D [05/Dec/2014:11:27:32 +0100] Discarding unused job-progress event... D [05/Dec/2014:11:27:32 +0100] [Job 10] pagew = 575.0, pagel = 822.0 D [05/Dec/2014:11:27:32 +0100] [Job 10] bboxx = 0, bboxy = 0, bboxw = 317, bboxl = 548 D [05/Dec/2014:11:27:32 +0100] [Job 10] PageLeft = 10.0, PageRight = 585.0 D [05/Dec/2014:11:27:32 +0100] [Job 10] PageTop = 832.0, PageBottom = 10.0 D [05/Dec/2014:11:27:32 +0100] [Job 10] PageWidth = 595.0, PageLength = 842.0 D [05/Dec/2014:11:27:32 +0100] [Job 10] Wrote 2 pages... D [05/Dec/2014:11:27:32 +0100] PID 25207 (/usr/lib/cups/filter/pstops) exited with no errors. D [05/Dec/2014:11:27:39 +0100] PID 25208 (/usr/lib/cups/backend/cups-pdf) exited with no errors. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan.brandner@gmx.at Flags| |needinfo?(stefan.brandner@g | |mx.at) --- Comment #4 from Johannes Meixner <jsmeix@suse.com> --- To be able to reproduce your issue I need the original PostScript that is sent as input to CUPS at your system. If you do not have it as a PostScript file, e.g. when you print form an application, you need "To get what the application submits to CUPS" exactly as described at https://en.opensuse.org/SDB:How_to_Report_a_Printing_Issue When you print PDFs form an application, tell what application you use. In your error_log_13.1.txt there is (excerpt): ------------------------------------------------------------------------------ I [05/Dec/2014:13:12:06 +0100] [Job 2] File of type application/postscript queued by "stefan". I [05/Dec/2014:13:12:06 +0100] [Job 2] Started filter /usr/lib/cups/filter/pstops (PID 3790) D [05/Dec/2014:13:12:06 +0100] [Job 2] %Produced by poppler pdftops version: 0.24.3 (http://poppler.freedesktop.org) ------------------------------------------------------------------------------ In your error_log_13.2.txt there is (excerpt): ------------------------------------------------------------------------------ I [05/Dec/2014:11:27:32 +0100] [Job 10] File of type application/postscript queued by "stefan". I [05/Dec/2014:11:27:32 +0100] [Job 10] Started filter /usr/lib/cups/filter/pstops (PID 25207) D [05/Dec/2014:11:27:32 +0100] [Job 10] %Produced by poppler pdftops version: 0.26.5 (http://poppler.freedesktop.org) ------------------------------------------------------------------------------ I need the "File of type application/postscript" that was "Produced by poppler pdftops". Please attach both of them: The one for 13.1 and the one for 13.2. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 --- Comment #5 from Johannes Meixner <jsmeix@suse.com> --- When you have both PostScript files that are "Produced by poppler pdftops", view them directly with plain Ghostscript on the command line as follows: gs -r50 -g700x700 file_name.ps Press [Enter] to view the next page or [Ctrl]+[C] to quit. See "To test if the PostScript or PDF that an application had submitted to CUPS seems to be correct" at https://en.opensuse.org/SDB:How_to_Report_a_Printing_Issue What Ghostscript displays is what a real printer should print, in particular a PostScript printer should print exactly this. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 --- Comment #6 from Stefan Brandner <stefan.brandner@gmx.at> --- Created attachment 616385 --> http://bugzilla.opensuse.org/attachment.cgi?id=616385&action=edit postscript file Opensuse 13.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 --- Comment #7 from Stefan Brandner <stefan.brandner@gmx.at> --- Created attachment 616386 --> http://bugzilla.opensuse.org/attachment.cgi?id=616386&action=edit postscript file Opensuse 13.2 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 --- Comment #8 from Stefan Brandner <stefan.brandner@gmx.at> --- Sorry for not mentioning earlier, I am using okular to print the pdf file. I have created the two postscript files and they look very similar. When I am printing the postscript file created with Opensuse 13.2 with lpr it works fine. But if does not work if I print directly with okular. What else could cause this shifted page under Opensuse 13.2? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Hardware|x86-64 |All Found By|--- |Community User Resolution|--- |INVALID Summary|printing of certain pdf |okular: printing of certain |files does not work correct |PDF files does not work | |(works via "lpr" command) --- Comment #9 from Johannes Meixner <jsmeix@suse.com> --- When you print with okular in openSUSE 13.1 okular sets the following printing options according to your error_log_13.1.txt (excerpt): ------------------------------------------------------------------------------ D [05/Dec/2014:13:12:06 +0100] [Job 2] argv[5]="noCollate finishings=3 media=Letter number-up=1 outputorder=normal portrait sides=one-sided ... PageSize=Letter" ------------------------------------------------------------------------------ and when you print with okular in openSUSE 13.2 okular sets the following printing options according to your error_log_13.2.txt (excerpt): ------------------------------------------------------------------------------ D [05/Dec/2014:11:27:32 +0100] [Job 10] argv[5]="noCollate finishings=3 fit-to-page media=A4 number-up=1 outputorder=normal page-bottom=10 page-left=10 page-right=10 page-top=10 portrait sides=one-sided ... PageSize=A4" ------------------------------------------------------------------------------ The difference is: On 13.1: ------------------------------------------------------------------------------ media=Letter PageSize=Letter ------------------------------------------------------------------------------ On 13.2: ------------------------------------------------------------------------------ fit-to-page media=A4 page-bottom=10 page-left=10 page-right=10 page-top=10 PageSize=A4 ------------------------------------------------------------------------------ See http://cups.org/documentation.php/doc-1.5/options.html for the CUPS printing options. Regarding whether or not the CUPS printing option fit-to-page works, see http://cups.org/documentation.php/doc-1.5/options.html ------------------------------------------------------------------------------ Scaling to Fit The -o fit-to-page option specifies that the document should be scaled to fit on the page: lp -o fit-to-page filename lpr -o fit-to-page filename The default is to use the size specified in the file. This feature depends upon an accurate size in the print file. If no size is given in the file, the page may be scaled incorrectly! ------------------------------------------------------------------------------ Perhaps printing of certain PDF files from okular does not work correct when there is no accurate size in the PDF file? First try if it works when you adjust your print option settings in okular for openSUSE 13.2. If there are no print option settings in okular that make it printout correctly for openSUSE 13.2 then please submit a new bug report for okular on openSUSE 13.2. Because printing with lpr works it is no bug in the printing system. Accordingly I resolve this issue as "invaild" (you can still add comments even when an issue is already resolved). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|okular: printing of certain |pdftk 2.02: printing of |PDF files does not work |certain PDF files cannot |(works via "lpr" command) |work with "fit-to-page" | |(wrong BoundingBox values) --- Comment #10 from Johannes Meixner <jsmeix@suse.com> --- I think the DSC values are not correct in print-job-data_132.save. print-job-data_132.save contains ------------------------------------------------------------------------------ %%BoundingBox: 0 0 595 842 %%PageBoundingBox: 0 0 311 542 %%PageBoundingBox: 0 0 317 548 ------------------------------------------------------------------------------ Ghostscript shows the actual BoundingBox values for the two pages: ------------------------------------------------------------------------------ # gs -sDEVICE=bbox -dBATCH -dNOPAUSE print-job-data_132.save %%BoundingBox: 142 149 453 692 %%BoundingBox: 138 147 456 695 ------------------------------------------------------------------------------ When I change the BoundingBox values in print-job-data_132.save as follows: ------------------------------------------------------------------------------ %%BoundingBox: 138 147 456 695 %%PageBoundingBox: 142 149 453 692 %%PageBoundingBox: 138 147 456 695 ------------------------------------------------------------------------------ then the CUPS printing option fit-to-page works for this file. I.e. the BoundingBox values in the PostScript are wrong. The PostScript is created by pdftk: ------------------------------------------------------------------------------ # grep Creator print-job-data*save print-job-data_131.save:%%Creator: pdftk 2.02 - www.pdftk.com print-job-data_132.save:%%Creator: pdftk 2.02 - www.pdftk.com ------------------------------------------------------------------------------ According to my analysis it means: Printing of certain PDF files does not work with "fit-to-page" because of wrong BoundingBox values in the PostScript that is created by "pdftk 2.02". Therefore it seems to be a bug in "pdftk 2.02" (or in whatever helper-tool or library that is used by pdftk to crate PostScript). Stefan Brandner, I think you should submit a new bug report for pdftk. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|pdftk 2.02: printing of |poppler pdftops: printing |certain PDF files cannot |of certain PDF files cannot |work with "fit-to-page" |work with "fit-to-page" |(wrong BoundingBox values) |(wrong BoundingBox values | |in PostScript) --- Comment #11 from Johannes Meixner <jsmeix@suse.com> --- Correction: The PostScript is not produced by pdftk. The original Dirichlet.pdf was created by pdftk. The PostScript is produced by poppler pdftops version: 0.26.5 because print-job-data_132.save contains: ------------------------------------------------------------------------------ %Produced by poppler pdftops version: 0.26.5 (http://poppler.freedesktop.org) %%Creator: pdftk 2.02 - www.pdftk.com %%Title: Dirichlet.pdf ------------------------------------------------------------------------------ Stefan Brandner, I think you should submit a new bug report for poppler. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 --- Comment #12 from Stefan Brandner <stefan.brandner@gmx.at> --- Created poppler bug: https://bugs.freedesktop.org/show_bug.cgi?id=87161 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://bugs.freedesktop.or | |g/show_bug.cgi?id=87161 CC| |pgajdos@suse.com, | |zaitor@opensuse.org Resolution|INVALID |UPSTREAM --- Comment #13 from Johannes Meixner <jsmeix@suse.com> --- Stefan Brandner, many thanks for your upstream bug report! FYI regarding https://bugs.freedesktop.org/show_bug.cgi?id=87161#c2 I think pdftops should have the same issue because /usr/bin/pdftops belongs to the poppler-tools RPM. I added the openSUSE and SUSE poppler package maintainers "Zaitor 'Bjørn Lie' <zaitor@opensuse.org>" and "pgajdos 'Petr Gajdos' <pgajdos@suse.com>" to Cc to have them informed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 Martin Pahl <pahl@tnt.uni-hannover.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pahl@tnt.uni-hannover.de --- Comment #14 from Martin Pahl <pahl@tnt.uni-hannover.de> --- Created attachment 626752 --> http://bugzilla.opensuse.org/attachment.cgi?id=626752&action=edit patch to Opensuse 13.2 version 0.26.5 of poppler to fix the calculation of the PageBoundingBox DSC comment I posted this patch to bugs.freedestop.org. Please look at my comment on that https://bugs.freedesktop.org/show_bug.cgi?id=87161 I had some dificulties whit the Opensuse poppler.spec file. rpmbuild builds more files than it needs for the poppler-package. So you get an error that there are installed but unpacked files. I had to add %define _unpackaged_files_terminate_build 0 to build the packages. And of course you must add the patch file to the poppler.spec file, if you want to build the rpm-file yourself: Patch0: poppler-0.26.5-pageboundbox_calculation.patch somewhere in the heading and %patch0 -p1 after %setup. Also you should increase the Release from 1.1 to 1.2. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=908624 Martin Pahl <pahl@tnt.uni-hannover.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #626752|0 |1 is obsolete| | --- Comment #15 from Martin Pahl <pahl@tnt.uni-hannover.de> --- Created attachment 633548 --> http://bugzilla.opensuse.org/attachment.cgi?id=633548&action=edit patch to Opensuse 13.2 version 0.26.5 of poppler to fix the calculation of the PageBoundingBox DSC comment fixed regression to my previous commit -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com