Or could you make it work??
It is a great convenience method for setting a rectangle 0,0,842,595 but has
the advantage that it can be passed as a human readable parameter from a
selection list
I am using Groovy so can do:
pSize = 'A4'
or pSize = someParameter
doc = new Document(PageSize."${pSize}")
And has some advantages over page.rotate()
john renfrew
Right Way Up
Office +44 1675 475341
Fax +44 1675 475342
Mobile +44 7767 443992
From: 1T3XT BVBA [mailto:i...@1t3xt.info]
Sent: 24 August 2011 14:42
To: Post all your questions about iText here
Subject: Re: [iText-questions] PageSize
On 24/08/2011 13:45, John Renfrew wrote:
doc = new Document(PageSize.A4_LANDSCAPE)
I think it was a bad idea to accept PageSize.A4_LANDSCAPE into the main
distribution.
It was an addition asked for by somebody (it's not mentioned in the
changelogs, so I don't remember who), but it doesn't add any value.
I'll put it up for removal.
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@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
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@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