PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Large page size - Greater than 200 inches
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4401
Page 1 of 1

Author:  derekjohn37 [ Sun Nov 06, 2022 10:31 pm ]
Post subject:  Large page size - Greater than 200 inches

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?

Author:  Thomas Hoevel [ Tue Nov 08, 2022 1:08 pm ]
Post subject:  Re: Large page size - Greater than 200 inches

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/