[Poppler-bugs] [Bug 87161] 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
Fri Mar 13 01:51:36 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=87161
--- Comment #6 from dehapama <bugzilla at pahlx.de> ---
Comment on attachment 114276
--> https://bugs.freedesktop.org/attachment.cgi?id=114276
patch to version 0.32.0 of poppler to fix the calculation of the
PageBoundingBox DSC comment
To my understanding PageBoundingBox should reflect the actual bounding box of
all elements on a page. The PageBoundingBox written by poppler is the width and
height of the elements on a page before they are scaled and translated and to
fit the page.
The code is in file poppler/PSOutputDev.cc. I changed the code to first
calculate scaling and translation and then write the transformed
PageBoundingBox. Because the calculation was done after writing the
PageBoundingBox in the original code it was neccessary to reorganize the code a
litte bit. That's the reason why this patch is a little bit longer.
I'm not sure, if I understood all the transformation in the file. I did not
change anything in the calculation. I only changed the calculation of the
PageBoundingBox. But somebody who has more understanding to the code should
have a careful look to it.
--
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/20150313/070f4d30/attachment.html>
More information about the Poppler-bugs
mailing list