Presentation Plugin for NetBeans IDE 7.2

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:

http://edu.netbeans.org/contrib/slides/netbeans-platform/presentation-4-actions.pdf 

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:

http://plugins.netbeans.org/plugin/44525

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.

Comments:

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....

Posted by mark stephens on September 04, 2012 at 11:07 AM PDT #

Many thanks, now the problem I had is solved!

Posted by Geertjan on September 04, 2012 at 01:04 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today