As a point of clarification, I'm pretty sure that, in addition to swapping width and height, rotate() signals PdfDocument to add a rotation cm entry to the beginning of the content stream, and adjusts the rotation dictionary entry for the page.
And I completely agree with the 'messy code for dealing with it' comment. As an example, ImportedPage doesn't preserve the page rotation from the source, which can cause all sorts of mayhem (esp because the page rotation implies an awkward change in origin). - K Mark Storer-2 wrote: > > Ah. So you don't want to spin-the-pages-contents-sideways, you want > landscape-vs-portrait. > > "Rotation" isn't the word you want. You just want to change the page size > from 8.5x11 to 11x8.5. By the way, Rectangle.rotate() doesn't really > rotate the page either, it swaps the width/height. In PDF, there's a > concept of page rotation indepentant of a page's physical dimensions, > which can lead to all manner of Interesting Confusion (and messy code for > dealing with it). > > -- View this message in context: http://old.nabble.com/Rotate-Page-After-Adding-Text-to-Document-tp27234067p27236838.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/