Mark, thanks for the effort you put into your reply. I appreciate it.
On 25.07.2006 21:03, Mark Storer wrote: > Anyway, there are several ways to work around this. > > 1) Dig around in the source for a place where you can change the page's > dictionary and have it 'take'. This may include creating your PdfStamper > before making the page rotation changes. > 2) Change the transformation matrix in addTemplate() > 3) Set the page's transformation through PdfImportedPage.setMatrix(). > > I'm in favor of #3 personally: > > // I believe this is correct, but it's off the top of my head, so 'buyer > beware' > page.setMatrix(-1, 0, 0, -1, page.getWidth(), page.getHeight() ); I guess I buy something from the top of your head anytime: this works very well. Now I can rearrange and rotate the pages in one step. Maybe I should put this into a utility class... Werner ------------------------------------------------------------------------- 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 iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions