I have one problem with PdfReader and landscape pages in PDF
document. When I read PDF documents which page(s) are in landscape,
getPageSize() returns values as if this page is portrait.
For example:
PdfReader reader = new PdfReader(new FileInputStream("some_pdf"));
Rectangle rect = reader.getPageSize(1);
System.out.println("Page height : " + rect.height());
System.out.println("Page width : " + rect.width());
System.out.println("Page rotation : " + rect.getRotation());
no matter if 1st page of "some_pdf" is portrait or landscape it
returns:
Page height : 842.0
Page width : 595.0
Page rotation : 0
What's the problem here ? How can I know if page in PDF is landscape
or portrait ?
To sporočilo in vse njegove morebitne priloge lahko vsebujejo zaupne
informacije in so last podjetja Infotehna d.o.o. ter namenjene izključno
naslovniku. V kolikor ste sporočilo prejeli, pa ni namenjeno vam, Vas prosimo,
da nas o tem obvestite, sporočilo pa izbriąete. Kakrąnokoli nepooblaąčeno
ąirjenje vsebine sporočila je izrecno prepovedano. Vsa elektronska poąta je
pregledana z antivirusnim programom.
This message and any attachments it may contain are confidential information
and are the propriety of Infotehna, therefore intended solely for the
recipient. If you are not the intended recipient, or have received this e-mail
by mistake, please notify the sender immediately, and delete this e-mail. Any
unauthorized copying, disclosure or distribution of this e-mail, or its content
is strictly forbidden. E-mail message is scanned by anti-virus software.
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions