Have a look at handout_pdf.java for an example in rotation manipulation.

Paulo

----- Original Message ----- From: "David Thielen" <[EMAIL PROTECTED]>
To: "itext" <[email protected]>
Sent: Saturday, February 25, 2006 6:46 PM
Subject: [iText-questions] How to tell if imported page is landscape


Hi;



I am using writer.getImportedPage() and contentByte.addTemplate(page, 0, 0) to add pages from an existing pdf in the middle of the pdf I am generating.



I have one problem. If the pdf I am inserting was created in landscape mode,
it shows up rotated. I check the size of the imported pdf pages, but they
show 8-1/2x11 so it appears to look like it is in portrait mode.



I assume the file I am importing is rotated. But I can't find any method
that tells me if that is the case. How do I tell if the page is rotated and
then how do I insert it in my non-rotated output pdf?



Thanks - dave





David Thielen

www.windwardreports.com

303-499-2544






-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to