Abhishek Srivastava wrote: > The document which I use as template is landscape. > > When I generate my document I also create it as Landscape. However the > template document appears vertical in my page. > > I have tried setting the Rectangle of the ImportedPage to the size of > a Rotated A4 page but it still has imported the template correctly. > > In short both my source and target documents have landscape A4 pages.
There are different ways to solve this. There is an addTemplate method that allows you to define the rotation (using a transformation matrix). Or you could wrap the PdfImportedPage inside a com.lowagie.text.Image object, rotate the image and add it with addImage. br, Bruno ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
