PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 8:13 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Wrong page width
PostPosted: Mon Feb 07, 2022 5:33 am 
Offline

Joined: Mon Feb 07, 2022 5:18 am
Posts: 1
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).


Attachments:
badFile.zip [47.9 KiB]
Downloaded 206 times
Top
 Profile  
Reply with quote  
 Post subject: Re: Wrong page width
PostPosted: Tue Nov 22, 2022 10:09 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 58 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group