Either I'm missing something obvious, or there is an error in the library. Type3StreamParser extension has the following method:
public Image createImage( COSStream type3Stream ) throws IOException { processStream( null, null, type3Stream ); return image.createImage(); }
it calls processStream() in the base class, defined as follows:
public void processStream( PDPage aPage, PDResources resources, COSStream cosStream ) throws IOException { graphicsState = new PDGraphicsState(aPage.findCropBox());
Obviously, this code will always throw NPE. If you are not abusing the API in any way, consider reporting the problem .
source share