PDF Library Documentation

Code examples

Click below for sample Java code, Java PDF tutorials and tips to help you get the most from our Java PDF Viewer.

Display PDF files in Java
PDF Viewer
Printing from client and server
PDF Printing
PDF image Extraction
Extract text and images
PDF text Extraction
Extract text and images
PDF search
PDF to image

PDF to image conversion

PDF forms
PDF forms



The documentation for the examples and key java classes from JPedal is available here for online viewing or for download in standard javadoc format.

All the useful methods are documented. Some methods are required for use internally – for example PdfDecoder methods needed by Viewer modules – and are not documented. They are included for completeness. If in doubt, please contact us for help.


PDF Technical documents


PDF api

Most customers have been asking for

  • a low-level PDF object (PdfDecoder) which can be used to interact with PDF files (PDF printingPDF to image conversion, etc). There are lots of ready-written examples showing how to do this which are documented, full of hints and tips and easily modified.
  • a powerful, configurable PDF Viewer (Viewer/MultiViewer). We recommend this highly configurable PDF Viewer which can be totally customised and controlled from your own code.


If you wish to build something from scratch, the recommended methods for accessing JPedal are the public methods for PdfDecoder, the public methods it inherits, and PdfData. Please contact us if you wish to use other methods.

We reserve the right to alter PDF API public methods but will document any changes and only alter when strictly necessary.