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 ?
-------------------------------------------------------
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