Getting Started Tutorial
The JPedal jars on the downloads page enclude a large number of example programs to display and print PDF files, PDF to image and PDF to text conversion, extract PDF data and lots of other features. These can all be run from the jar and the java source code is available so they can also be tailored to your needs.
How to run the code
The examples can all be run directly from the jar which can be obtained from the downloads page. Here is the code you would type to run the SimpleViewer - you need the full path to run each example.
| Windows: | java -cp %libDir%/bcprov-jdk14-119.jar; %jpedalDir%/jpedal.jar org/jpedal/examples/simpleviewer/SimpleViewer |
| MacOS X Linux: | java -cp $libDir/bcprov-jdk14-119.jar: $jpedalDir/jpedal.jar org/jpedal/examples/simpleviewer/SimpleViewer |
libDir is where the Additional Files required to run JPedal are located. If the file is encrypted, you will need some additional jars. Please note the bcprov-jdk14-119.jar file is optional and only needed for password protected files.
If you do not need any additional jars, you can run the SimpleViewer using java -jar {location}/jpedal.jar
Click here for help on running Java programs from the command line
Links to related articles
SimpleViewer PDF viewer example
Complete list of java examples with full paths
Additional optional libraries lists items which may be needed for some PDF files or PDF 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




