[poppler] UserUnit

Leonard Rosenthol lrosenth at adobe.com
Thu Dec 20 16:39:58 UTC 2018


Yes, each page can have a UserUnit that is responsible for adjusting the default matrix of the page.

From: poppler <poppler-bounces at lists.freedesktop.org> On Behalf Of thomas.karthe at daimler.com
Sent: Thursday, December 20, 2018 9:28 AM
To: poppler at lists.freedesktop.org
Subject: [poppler] UserUnit

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/d222b869/attachment.html>


More information about the poppler mailing list