NPE in PDFBoxPDFHandler

The book has a coding error in PDFBoxPDFHandler.java on page 237, between the notes (5) and (6).

The problem is where PDFBoxPDFHandler.java sets pdDoc to null, then immediately uses pdDoc. Ths source code download has been corrected with this fix on line 86:

pdDoc = new PDDocument(cosDoc); Thanks to Bill Gibson for reminding us to add this to the official errata list.

Posted on Mon, 20 Mar 2006 13:23