The links below provide links to Javadocs and the complete the example source code. So you can run directly from the jar or reuse the code in your own programs and tailor it to your exact requirements.
- Viewer – Javadoc link and Source code for a very comprehensive Java PDF viewer examples written for the Swing version. It shows off the full power of the library.
- ViewerFX – Javadoc link and Source code for a comprehensive JavaFX PDF Viewer examples and shows off the full power of JavaFX in the JPedal Library.
- BaseViewer – Javadoc link and Source code for a basic Java PDF viewer with limited functionality.
- BaseViewerFX – Javadoc link and Source code for a basic Java PDF viewer with limited functionality.
- MultiViewer – Javadoc link and Source code adds the ability to open; multiple PDF files in separate panes to the Viewer.
- JPanelDemo – Javadoc link and Source code is a very simple Java PDF viewer with minimal functionality. But we would recommend you look at the full viewer as it is totally configurable and does everything for you.
PDF Viewer tutorials
The tutorials show you how to easily add PDF Viewing capabilities to your Java software and customise it.
Use the JPedal Viewer in your own code
- Add a PDF Viewer in 2 lines of code shows how to very easily add PDF support into a Swing or JavaFX application.
- Use JPedal as your default PDF viewer in Windows – gives step by step instructions for using the JPedal Viewer as your default PDF viewer application in Windows XP or Vista.
Using JPedal JavaBean in Matisse GUI Designer
- Use the Viewer JavaBean component in NetBeans IDE details how to rapidly develop your PDF applications through the NetBeans GUI Builder Matisse by utilizing the Viewer JavaBean component.
Customize, configure and extend the PDF Viewer
- Customizing the user interface explains how you can fully customise the existing PDF Viewer with the easy to user preferences window.
- Access Viewer functions covers how to access the PDF Viewer from your own application.
- Add your own action implementation change the default behaviour of any button or menu in the PDF viewer to perform your own custom action.
- Draw additional objects explains how to draw your own objects ontop of the PDF display (ie special Annotations, copyright notice).
- Highlighting PDF text shows how to highlight PDF text onscreen.
- Accessibility Options explains how you can use various options to make the viewer more accessible to those with more specific needs.
- Text to Speech shows how to have the PDF Viewer speak back highlighted text.