I can send an example test PDF if needed. But wanted to know in general how to get PDF page size (width & height of page) using PDFBox.
In terms of page size, I'm referring to the value reported by Adobe Acrobat Reader Document Properties like "Page Size: 7.25 x 10.25 in" as reported in Adobe Reader X. I don't mind if the value extracted is not in inches as long as I can convert the unit from x to inches. I wasn't able to existing code for it right off the bat. The closest I came was in the user guide: http://pdfbox.apache.org/userguide/ PDPage page = ...; PDRectangle mediaBox = page.getMediaBox(); System.out.println( "Width:" + mediaBox.getWidth() ); but that only gave the width & is based on page width defined by media box. What about height? And is media box usually the component within the PDF that defines page width & height? If not what else to check for? Thanks, David

