On 8/08/2011 17:01, d3d3 wrote: > Hello, > I need to create some tables, one time in portrait format, one time in > landscape format.
OK, you can change the page size; for instance from PageSize.LETTER to PageSize.LETTER.rotate(). When you do this, the new page size will come into effect on the next page. So if you know your next page has to be landscape, use the setPageSize() method, followed by newPage(). > After reading some posts on this forum, I saw that it's possible to rotate > page with PdfReader and PdfStamp classes. I'm not sure how that would solve your problem. Your table will be added to a page in portrait. Then afterwards, you'll change that page into landscape. When you do this, all content will be turned by 90 degrees. When printed, the table will still be on a page in portrait, but on the screen people will have to turn their heads 90 degrees to be able to read it. Is that your intention? ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ iText-questions mailing list [email protected] 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
