PDF Page count
| Description | Provide a PDF page count. |
| Jar Path | org.jpedal.examples.PageCount |
How to run the code
| Windows: | java -cp %jpedalDir%/jpedal.jar org/jpedal/examples/PageCount inputValue |
| MacOS X Linux: | java -cp $jpedalDir/jpedal.jar org/jpedal/examples/PageCount inputValue |
Click here for help on running Java programs from the command line
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 count. If it contains spaces it must be enclosed by double quotes (ie "C:/Path with spaces/"). |
Other details/screenshot
Prints out a PDF page count, and shows how to get the number of pages from a PDF file.
Links to related articles
Getting started tutorial
Additional optional libraries lists items which may be needed for some PDF files or functionality.
Return to main PDF 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




