You must know what you want. Landscape can be done in two ways: rotated or not rotated. Say you need a page with width and height where width is larger that height just like a regular landscape. You could define the page size as:
new Rectangle(width, height); or new Rectangle(height, width).rotate(); They will look the same but you may have some differences in printing depending on what you use. Best Regards, Paulo Soares ----- Original Message ----- From: "Ligius Astratinei" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 22, 2003 10:00 Subject: Re: [iText-questions] Page setup is Landscape > Well, I don't know the actual page setup since I receive the width and > height parameters. And even if I could determine which page setup is > used > (A-series, B-series) the user can still choose a custom file format and > specify an orientation. What do I do then? > > if (gc.getPageFormat().getOrientation() == > RGPageFormat.ORIENTATION_LANDSCAPE) > > document = new Document( new > com.lowagie.text.Rectangle(formatHeight,formatWidth)); > > else > > document = new Document(new > com.lowagie.text.Rectangle(formatWidth,formatHeight)); > > > Many thanks, > Ligius > > > > Use this to create the document instance: > > > > Document document = new Document(PageSize.A4.rotate()); > > > > You can change 'A4' to another page format specified in PageSize. > > Ciao > > Mauro > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click > here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
