El dijous, 20 de desembre de 2018, a les 15:28:18 CET, [email protected] va escriure: > Hi all,
Hi > 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. Yes, this is a bug. Please open an issue at https://gitlab.freedesktop.org/poppler/poppler/issues Ideally provide a patch at https://gitlab.freedesktop.org/poppler/poppler/merge_requests ;) it should really be that hard, just parse the UserUnit entry in the Page object and then use it where sizes are converted to inches/cm Cheers, Albert > > 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
