While I was writing the PDF to HTML5 conversion code, I went to a talk at Javaone2011 last month showing a plugin on an FxgConverter making JavaFX code which you could call from the NetBeans IDE. This free plugin does conversion of files into Java2D or JavaFX. We thought it would be really cool if you could add similar functionality in NetBeans to convert PDF files into JavaFX.
It turned out to relatively straight-forward using a subset of the new code for PDF to HTML5 conversion. So here is a screenshot of our current development which is running on our machines a month later (it is our ‘fun’ end of the day project). It does not need JavaFX to do the conversion (you can see all the errors in the screenshot), but it does need JavaFX installed to run the Java code produced.
Fonts are substituted but correctly positioned and the images, shapes and text are all carried across and become JavaFX commands. There are some rough edges still (page shading is not carried across and rotated text on the right is wrong in the example), but we think it looks promising enough to warrant a 1.0 release.
Version 1.0 is now out. What do you think?
Latest posts by Mark Stephens (see all)
- 3 enhancements for our free online PDF to HTML5 and SVG converter - July 5, 2016
- NetCat 8.2 – what it is and why you should care… - June 28, 2016
- Sneak Preview of 7 possible upcoming enhancements in our Java PDF viewer and HTML5 converter - June 15, 2016
- NetBeans Day UK in Pictures - June 1, 2016
- 3 Reasons to Attend NetBeans Day UK next week - May 24, 2016