Xavi Aranda wrote: > Hi > In this tutorial, not found the way to rotate the page, but finding in > API documentation I found this "Document document = new > Document(PageSize.A4.rotate());" and work correctly.
That line is an exact copy of what is written in the tutorial. I quote (literally, with copy/paste): "Most these standard pageSizes are in PORTRAIT-format. To create a document in landscape format, just make the height smaller than the width. With the standard pagesizes all you have to do is rotate() the Rectangle: Document document = new Document(PageSize.A4.rotate());" Ah well, you found out how to do it, and that's what counts. br, Bruno ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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/