Hi,
Am getting null pointer exception for the below code. It is throwing null pointer only on my machine and not able to extract text from the document. Any suggestions are highly appreciated.
TextExtractionOptions textExtOptions = new TextExtractionOptions(TextExtractionOptions.TextFormattingMode.Pure);
TextAbsorber textAbsorber = new TextAbsorber();
textAbsorber.setExtractionOptions(textExtOptions);
pdfDocument.getPages().get_Item(1).accept(textAbsorber);
I get the following exception
java.lang.NullPointerException: null
at com.aspose.pdf.internal.l13I.I17.ll(Unknown Source)
at com.aspose.pdf.internal.l13I.I17.lIf(Unknown Source)
at com.aspose.pdf.internal.l13I.I1I.lif(Unknown Source)
at com.aspose.pdf.internal.l13I.I1I.lif(Unknown Source)
at com.aspose.pdf.internal.l13I.I1I.lIf(Unknown Source)
at com.aspose.pdf.internal.l13I.I1I.(Unknown Source)
at com.aspose.pdf.internal.l13I.I1I.(Unknown Source)
at com.aspose.pdf.TextAbsorber.visit(Unknown Source)
at com.aspose.pdf.Page.accept(Unknown Source)