While I was playing around with pdfbox 1.7.0 (apache) I came across a NullPointerException. I can’t figure out what the hack is wrong with my code. You can see the full stacktrace of the Exception at http://pastebin.com/XEuv7VmU and the code here: http://pastebin.com/vJYBwWtq .
I just want to convert every page of a PDF into an image (BufferedImage).
Either I am missing something obvious or there is a bug in the library.
Type3StreamParserextendingPDFStreamEnginehas the following method:it calls
processStream()in the base class defined as follows:Clearly this code will always throw NPE. If you aren’t misusing the API somehow, consider reporting an issue.