List of PDF Viewer code examples
All these examples are included in the demo and full versions of JPedal. They give details on how to run each directly from the jar and any useful options. We also provide links to the source code so you can use the code in your own programs and tailor it to your exact requirements.
Important note: Use these links for reference only. If you wish to edit and recompile the examples, please download the full examples files from the example downloads page.
- Viewer is a very comprehensive Java PDF viewer. Shows off the full power of the library.
- BaseViewer and BaseViewerFX are basic Java PDF viewers with limited functionality.
- MultiViewer adds the ability to open; multiple PDF files in separate panes to the Viewer.
- JPanelDemo 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 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.
- Add your own menu items explains how you can access the different gui interfaces to add your own buttons.
- 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
- Text to Speech shows how to have the PDF Viewer speak back highlighted text.