Thank you.

I now set the Userunit to 200 and x/y to 8800/6800, thus should be 44 inches by 
34 inches.

debug("actual writer.getPageNumber() " + nPdfWriter.getPageNumber());
        Trace 40(2007-04-11 07:10:34.939): actual writer.getPageNumber() 1
...
debug("UserUnit " + nPdfWriter.getUserunit());
        Trace 40(2007-04-11 07:10:34.939): UserUnit 200.0
...
debug("pagesize " + nDocument.getPageSize().toString());
        Trace 40(2007-04-11 07:10:34.939): pagesize Rectangle: 8800.0x6800.0 
(rot: 0 degrees)
...
debug("pagesize " + nPdfWriter.getPageSize().toString());
        Trace 40(2007-04-11 07:10:34.939): pagesize Rectangle: 8800.0x6800.0 
(rot: 0 degrees)

But when I view the image using 7.0.9 Adobe Reader, the Document Properties 
show:
"Page Size: 24,444.45 x 18,888.89 in"
 
And thus the image is HUGE, and the zoom factor is 0.03%.

Properties:
iText 2.0.1, 
PDf Version now 1.6 (Acrobat 7.x)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares
Sent: Wednesday, April 11, 2007 6:15 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] What is the maximum page size for PDF iniText?

This has nothing to do with iText but rather with Acrobat limitations. From the 
Pdf Reference:

The minimum allowed page size is 3 by 3 units in default user space; the 
maximum is 14,400 by 14,400 units. In versions of PDF earlier than 1.6 (Acrobat 
7.0), 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.


Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Estepp, Dan
> Sent: Wednesday, April 11, 2007 11:05 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] What is the maximum page size for PDF in 
> iText?
> 
> I am trying to create a PDF page larger than 200 inches height or 200 
> inches wide, and it does not fail, but the resulting PDF is always 200 
> inches wide/height?
> 
> Inserting a TIF that is 280 inches by 88 inches, and the resulting 
> page is only 200 inches wide and no image is displayed because the 
> page is not wide enough.  The resulting PDF file is 1.2 meg, so it is 
> in there just not visible.
> 
> As long as the TIF images are smaller than 200 inches my code works 
> fine.
> 
> 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's 
Techsay panel and you'll get the chance to share your opinions on IT & business 
topics through brief surveys-and earn cash 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to