Yes, each page can have a UserUnit that is responsible for adjusting the default matrix of the page.
From: poppler <[email protected]> On Behalf Of [email protected] Sent: Thursday, December 20, 2018 9:28 AM To: [email protected] 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.
_______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
