To run the code you will need the JavaFX runtime on the classpath, so my code to use it looks like this
java -cp jpedal.jar: /Library/Java/JavaVirtualMachines/ jdk1.7.0_45.jdk/Contents/ Home/jre/lib/jfxrt.jar org/jpedal/examples/baseviewer/BaseViewer
We have a new Example included (BaseViewerFX) which provides a simple JavaFX client for Java development. It still lacks some of the functionality of our Swing version (Shading, Patterns and Forms are not currently implemented). As a first release it doubtless has some bugs and things we have not anticipated but we are really pleased with the way it is developing and wanted to make it more generally available…
We will be adding more features in 2014 (and also a fully featured version of our Swing Viewer (surprisingly called ViewerFX). The idea is to make it as close as possible to the current Viewer so clients can easily upgrade.
In the meantime, we hope you enjoy playing with our new JavaFX PDF viewer. In 2014 we will also be running a whole series of articles on JavaFX and have some interesting plans for a NetBeans plugin, as well as lots of interesting developments on PDF to HTML5 and SVG conversion. 2014 is going to be a very busy year….
Latest posts by Mark Stephens (see all)
- First impressions of the new RaspberryPi for Raspbian, Riscos, Java and NetBeans - March 3, 2015
- Converting a Swing application into JavaFX – Listeners and fast scrolling - February 3, 2015
- BCS talk by Liz Bacon and dinner at Greenwich - January 22, 2015
- Updating all your Fogbugz colleagues using a virtual user - January 15, 2015
- 5 reasons why JavaFX is better than Swing for developing a Java PDF viewer - January 6, 2015