[Poppler-bugs] [Bug 87161] New: Printing of certain PDF files does not work with "fit-to-page" because of wrong BoundingBox values in the PostScript

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 9 08:37:38 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=87161

            Bug ID: 87161
           Summary: Printing of certain PDF files does not work with
                    "fit-to-page" because of wrong BoundingBox values in
                    the PostScript
           Product: poppler
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: critical
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: stefan.brandner at gmx.at

I am using Opensuse 13.2 and certain pdf files do not print correct.
The same pdf files worked fine with Opensuse 13.1.
I filed a printing bug at Opensuse Bugzilla and it was found that poppler
creates wrong Bounding Box values when fit-to-page is used.
Opensuse 13.1: poppler 0.24.3
Opensuse 13.2: poppler 0.26.5

https://bugzilla.opensuse.org/show_bug.cgi?id=908624
All used files can be found at this bug.

Johannes Meixner wrote in the bug:

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

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20141209/6a7aa3d7/attachment.html>


More information about the Poppler-bugs mailing list