[poppler] UserUnit

thomas.karthe at daimler.com thomas.karthe at daimler.com
Thu Dec 20 14:28:18 UTC 2018


Hi all,

I found some inconsistency in page size for a PDF document. Included Document was created from Siemens NX and uncompressed.
Original document page 1 has 1189mm height and 6769mm width.
Acrobat Reader shows correct size.
PDFInfo shows:   Page size: 9593.86 x 1685.2 pts which is 595.5mm width and  3384.5mm height (factor 2 each)

After decompressing the PDF I found
<</MediaBox[0 0 9593.86 1685.2]/UserUnit 2/Resources 2 0 R/Contents 9 0 R/Parent 7 0 R/Type/Page>>
Playing with UserUnit value it comes clear, that it needs to be multiplied to mediabox values to get correct size.

In poppler API I find nothing about UserUnit or something that could reflect this value.
From my understanding each page should have a property UserUnit.

Mit freundlichen Grüßen / Kind regards / शुभकामनायें
Thomas Karthe


If you are not the addressee, please inform us immediately that you have received this e-mail by mistake, and delete it. We thank you for your support.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20181220/d291c350/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.pdf
Type: application/pdf
Size: 116771 bytes
Desc: a.pdf
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20181220/d291c350/attachment-0001.pdf>


More information about the poppler mailing list