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:21 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
PostPosted: Sun Nov 06, 2022 10:31 pm 
Offline

Joined: Sun Nov 06, 2022 10:16 pm
Posts: 1
I am trying to create a PDF-Sharp PDF file with a large page height (10 meters). The file is created but Acrobat throws the error "The dimensions of this page are our-of-range. Page content might be truncated". According to Adobe, PDF 1.6 and above can handle page sizes up to 15,000,000 inches. Upon reading this I thought I had found the solution: the default PDF format produced by PDF-Sharp is 1.4. I changed to 1.7 using pdfDocument.Version = 17;. No luck, still throwing error. Any ideas?


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 08, 2022 1:08 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
From the 1.6 ref manual:
Quote:
the maximum is 14,400 by 14,400 units

The unit used by PDFsharp is Point and thus the maximum size is 200 by 200 inches.

Since PDFsharp is open source, you can change the unit used to get pages larger than 200 inches.

_________________
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: No registered users and 55 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