Discussion:
[iText-questions] Page Size Limits
Terry Corbet
2017-03-06 17:34:36 UTC
Permalink
I am usually successful in producing single-page documents whose content
is a family tree diagram - lots of templated line drawing with minimal
text. [I can provide a jpeg image of valid and invalid results, if that
would help.]

My application never dies with any sort of diagnostic error that I have
been able to catch, and even when the document fails, if I look at the
contents via rups, I don't see any error/problem.

The symptom of a successful page, when viewed with Adobe Reader is a
page usually only able to be displayed in full at something less than
25% Zoom. The pages have a parchment background that fills the page.

So, when the application fails, the Adobe Reader display is the right
size/proportion, but just a white blank -- no figures, no text, not even
the background parchment.

My trouble-shooting has all been based on the belief that there must be
some size limit, which I assumed would be the total number of pixels,
but what seems to be true is that there is an horizontal pixel limit
irrespective of height. If I limit the width to 14400, I will get the
correct right-clipped output.

Are there some page size limits I have missed in the documentation?
Is there some try-catch logic that ought to be applied that would tell
me when the limits have been exceeded for a page?

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
iText-questions mailing list
iText-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
mkl
2017-03-07 08:03:52 UTC
Permalink
Post by Terry Corbet
My trouble-shooting has all been based on the belief that there must be
some size limit, which I assumed would be the total number of pixels,
but what seems to be true is that there is an horizontal pixel limit
irrespective of height. If I limit the width to 14400, I will get the
correct right-clipped output.
Are there some page size limits I have missed in the documentation?
Is there some try-catch logic that ought to be applied that would tell
me when the limits have been exceeded for a page?
There indeed is a page size limit, it is documented in the PDF specification
ISO 32000-1, Annex C (Implementation Limits) section C.2 (Architectural
Post by Terry Corbet
The minimum page size should be 3 by 3 units in default user space; the
maximum should be 14,400 by 14,400 units. In versions of PDF earlier than
1.6, the size of the default user space unit was fixed at 1⁄72 inch,
yielding a minimum of approximately 0.04 by 0.04 inch and a maximum of 200
by 200 inches. Beginning with PDF 1.6, the size of the unit may be set on
a page-by-page basis; the default remains at 1/72 inch.
Regards,

Michael



--
View this message in context: http://itext.2136553.n4.nabble.com/Page-Size-Limits-tp4661132p4661133.html
Sent from the iText mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
iText-questions mailing list
iText-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for exampl

Loading...