Please choose a menu option
Visit the IDRsolutions WebSite

Show PDF file Properties

Description Display PDF file Page Sizes
Jar Path org.jpedal.examples.ShowPageSize

Click for source code link

How to run the code

Windows: java -cp %jpedalDir%/jpedal.jar org/jpedal/examples/ShowPageSize inputValue
MacOS X Linux: java -cp $jpedalDir/jpedal.jar org/jpedal/examples/ShowPageSize inputValue

 

An explanation of the input value

This example expects one input value.

Input value: The PDF filename (including the path if needed) of the PDF file to open and list the page sizes. If it contains spaces it must be enclosed by double quotes (ie "C:/Path with spaces/").

 

Other details/screenshot

Shows the Media and Crop box for all pages in pixels, centimetres and inches.

 

Links to related articles

Getting started tutorial
SimpleViewer includes a menu option to show document properties.
Additional optional libraries lists items which may be needed for some PDFs or functionality.

 

Return to main support section

Click here for the main PDF support area with lots of java examples, PDF tutorials and useful information to get the most out of the JPedal PDF library

 


PDF viewer