Free Support Forum -

extractAttachment() gives null pointer


I’m getting Null pointer exception for the following code:

1. PdfExtractor extractor = new PdfExtractor();
2. extractor.extractAttachment();

I get the following error stack :

at com.aspose.pdf.kit.px.a(Unknown Source)
at com.aspose.pdf.kit.px.(Unknown Source)
at com.aspose.pdf.kit.oq.(Unknown Source)
at com.aspose.pdf.kit.oq.(Unknown Source)
at Source)
at com.aspose.pdf.kit.PdfExtractor.extractAttachment(Unknown Source)

What source should I mention here ?

Pramod Talekar

Hi Pramod,

Thanks for using our products.

Can you please share the source PDF file, so that we can test the scenario at our end. We are sorry for this inconvenience.