Free Support Forum - aspose.com

extractAttachment() gives null pointer

Hi,


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

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

I get the following error stack :

java.lang.NullPointerException
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 com.aspose.pdf.kit.cz.a(Unknown Source)
at com.aspose.pdf.kit.PdfExtractor.extractAttachment(Unknown Source)


What source should I mention here ?

Regards,
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.