Java PDF viewer
| Description | Fully featured Java PDF viewer |
| Jar Path | org.jpedal.examples.simpleviewer.SimpleViewer |
How to run the code
| Windows: | java -cp %jpedalDir%/jpedal.jar org/jpedal/examples/simpleviewer/SimpleViewer |
| MacOS X Linux: | java -cp $jpedalDir/jpedal.jar org/jpedal/examples/simpleviewer/SimpleViewer |
Click here for help on running Java programs from the command line
Other details/screenshot

The SimpleViewer solution is designed as a general purpose java PDF viewer which also showcases the extraction functionality of the JPedal Library.
Features include:
|
|
All these functions can be used "as is" or customised to suit your requirements.
Quick text extraction
Dragging the mouse over a text area will highlight text. Pressing the menu button brings up a set of extraction options.
Individual Image extraction
Click on an image (highlights the image outline) and press menu to extract a single image form the page. The Export menu option allows you to save all the images in a PDF file from the PDF viewer.
![]() | Speed up SimpleViewer: By including -Dsun.java2d.ddscale=true in the command line, SimpleViewer should run faster. This command tells JPedal to use hardware acceleration if available. |
Links to related articles
Getting started tutorial
Additional optional libraries lists items which may be needed for some PDFs or functionality.
JVM options available on startup which can customise memory usage, image quality and lots of other settings.
MultiViewer - Adds the ability to open multiple PDF files in separate panes to the SimpleViewer.
AppletViewer - provides a version of SimpleViewer running as an Applet
Demo of drag and drop functionality in PDF Viewer.
Tutorials section contains a whole section of tutorials on integrating and totally customizing the PDF Viewer for your own applications.
JPanelDemo provides a very barebones java PDF viewer if you wish to build your own PDF viewer rather than tailor the existing examples.
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





