Hello list, I think this is a Java question more than an iText question, but I'm learning Java as I work on an iText related project, so perhaps asking here is most useful.
I would like to test the page size of a PDF document I have read using a PdfReader. Instead of obtaining the size in PDF points and dividing by 72 to obtain inches, how can I use the PageSize class? This seems possible to me, since getPageSize() returns a Rectangle object, and the fields of PageSize are also rectangles. Something such as.. PdfReader source = new PdfReader("test.pdf"); if ( source.getPageSize(1).equals(PageSize.LETTER) ) { (..do stuff..) } Am I on the right track? Thanks, Richard ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/