No, you'll have to write something. You'll need to get the cropBox of each page. 1 unit is 1/72 inch at 72 dpi.

In the javadocs, look for PDDocument and PDPage.

Tilman

Am 29.10.2021 um 16:16 schrieb Eric Arlotti:
Hello,

Is there a command line tool to get the number of pages in a PDF and the width 
and height of each page ? Alternatively, is it possible to retrieve these 
information by writing my own tool using the PDFBox library ?

Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to