PDF to FXML added to our Online PDF to JavaFX Converter

pdf2fxml

Recently we announced our Online PDF to JavaFX Converter, and today I am pleased to announce that we have now added PDF to FXML functionality to the converter.

Simply select FXML before you hit upload to enable FXML mode, and press upload as usual. The download link it gives will now provide you with an FXML representation of the page!

In the last few weeks we have been busy adding in lots of little tweaks to the JavaFX and FXML conversion to improve the output and bring it closer to that of our PDF to HTML5 and SVG conversion.

An extra treat is that the converter will now also output and provide a runnable jar file to save you the bother of having to compile the code manually! You will need to make sure that jre/lib/jfxrt.jar is either copied into your jre/lib/ext/ directory or placed on the classpath.

The current version unfortunately does not support embedded fonts, instead using existing Java fonts. A lot of our work on the PDF to HTML5 and SVG conversion has been working on cross browser compatibility of converted fonts. JavaFX is essentially another platform which requires more work, so if Oracle can provide more details on how they are using fonts, we can look for a fix for the future.

You can give it a go (completely free of charge!) here.

What do you think of the output? I actually prefer the FXML over standard JavaFX!

This post is part of our “SVG Article Index” in these articles, we aim to help you build knowledge and understand SVG.

Ebook Page Link

The following two tabs change content below.
Leon is a Developer at IDRsolutions, focusing mainly on development of the PDF to HTML5/SVG converter. He was a speaker at JavaOne 2012, co-presenting a session titled 'Lessons Learned in Writing a PDF-to-JavaFX Converter for NetBeans'.

Related Posts:

Leon Atherton

About Leon Atherton

Leon is a Developer at IDRsolutions, focusing mainly on development of the PDF to HTML5/SVG converter. He was a speaker at JavaOne 2012, co-presenting a session titled 'Lessons Learned in Writing a PDF-to-JavaFX Converter for NetBeans'.

2 thoughts on “PDF to FXML added to our Online PDF to JavaFX Converter

  1. Just about how much work would it be to add a ScalaFX option?
    http://code.google.com/p/scalafx/

    The resulting code would be somewhat more legible than the JavaFX one, while retaining some features of the structured FXML, avoiding the markup noise.

    Just wondering about the power of your library!

    • Hi Alain,

      I imagine it would not be too much work!

      We actually did a presentation at JavaOne 2012 that spoke a bit about this.

      All the hard work of decoding the PDF has already been done by the library.
      Essentially we decode and store the PDF content in abstracted Java objects which can get output with different implementations.

      We designed it to be modular so that it would be straight-forward to add new modes if there is ever a commercial justification for them.

      So, for ScalaFX it would just be a case of adding an implementation which would contain the specifics for ScalaFX like the syntax.

      We currently output to HTML5, SVG, JavaFX and FXML which you are welcome to try out – we have online converters for all.

      Regards,
      Leon

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>