Geertjan's Blog

  • September 4, 2012

Presentation Plugin for NetBeans IDE 7.2

Geertjan Wielenga
Product Manager

I got some excellent help from Mark Stephens, who is from IDR Solutions, which produces JPedal. Using the LGPL version of JPedal, and code provided by Mark, it's now possible to right-click the node that appears in the Presentation Window:

...after which, using a file browser (to locate a file on disk) or a URL (a very simple check is done, the URL must start with "http" and end with "pdf"), you can now open PDF files as images (thanks to conversion from PDF to images done by JPedal) into NetBeans IDE, typically (I imagine) for presentation purposes:

Note that you should consider the plugin in "alpha" state. But, despite that, I've had good results. Try it and use the URL below, as a control test (since it works fine for me), which produces the result shown above:


However, for some PDFs, the plugin doesn't work, and I don't know why yet (trying to figure it out with Mark), resulting in this stack trace:

java.lang.ArrayIndexOutOfBoundsException: 8
at org.jpedal.objects.acroforms.formData.SwingData.completeField(Unknown Source)
at org.jpedal.objects.acroforms.rendering.DefaultAcroRenderer.createField(Unknown Source)
at org.jpedal.objects.acroforms.rendering.DefaultAcroRenderer.createDisplayComponentsForPage(Unknown Source)
at org.jpedal.PDFtoImageConvertor.convert(Unknown Source)
at org.jpedal.PdfDecoder.getPageAsImage(Unknown Source)
at org.jpedal.PdfDecoder.getPageAsImage(Unknown Source)

Here's the location of the plugin, install it into NetBeans IDE 7.2; feedback is very welcome:


Update. The problem above is solved now (see the comments below) and when you go to the link above, you'll get the 1.1 version of the plugin, which includes the fix.

Join the discussion

Comments ( 2 )
  • mark stephens Tuesday, September 4, 2012

    I did a special release for you yesterday as we were planning to put in some image enhancements into the LGPL version and release at JavaOne but made sense to put in now if you wanted to use. Of course, as always in IT, I was on holiday today (paralympics is an amazing experience if you can get the chance to go to watch it).

    We build all our versions (LGPL, commercial, Java library and PDF2HTML5 from a single source tree) and sometimes need to tweak a version! Nothing like releasing something to uncover issues. I have found what I believe was the issue, sent you a copy and updated on our website. If that is not the issue. I will be in tomorrow awaiting feedback....

  • Geertjan Tuesday, September 4, 2012

    Many thanks, now the problem I had is solved!

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.