PDFsharp & MigraDoc Foundation

Wrong page width
Page 1 of 1

Author:  Fre5h [ Mon Feb 07, 2022 5:33 am ]
Post subject:  Wrong page width

I welcome everyone.

Help to get correct page width from pdf document.

In the page properties (when opened in Acrobat) it shows the page dimensions: 455x215mm (correct dimensions).
When getting width and height via PDFSharp 1.50.5147 functions, the size is 899.9x215.0mm (width is wrong).

Can you tell me how to get the correct size?

This error is observed only on one PDF file (Attachments).

badFile.zip [47.9 KiB]
Downloaded 109 times

Author:  Thomas Hoevel [ Tue Nov 22, 2022 10:09 am ]
Post subject:  Re: Wrong page width

The size of the page is 2551.18 pt by 609.449 pt (MediaBox), but the visible area is only 1289.76 pt by 609.449 pt (CropBox).

Access the CropBox in PDFsharp to get the visible page area.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group