We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

After converting pptx to pdf adding additional pages throwing NPE

We have a requirement to convert pptx file to pdf and then add few pages to the converted pdf.
In the first page when iam adding more tables the below error message is throw while saving the pdf.

java.lang.NullPointerException: null
** at com.aspose.pdf.Page.lj(Unknown Source)**
** at com.aspose.pdf.Page.lI(Unknown Source)**
** at com.aspose.pdf.Page.lf(Unknown Source)**
** at com.aspose.pdf.Page.lv(Unknown Source)**
** at com.aspose.pdf.ADocument.processParagraphs(Unknown Source)**
** at com.aspose.pdf.Document.processParagraphs(Unknown Source)**
** at com.aspose.pdf.ADocument.lf(Unknown Source)**
** at com.aspose.pdf.ADocument.lf(Unknown Source)**
** at com.aspose.pdf.ADocument.save(Unknown Source)**
** at com.aspose.pdf.Document.save(Unknown Source)**

Please advise ASAP.

@SravanDevarai

Would you please share your source and output documents for our reference? Also, please share the complete sample code snippet so that we can test the scenario in our environment and address it accordingly.