Hello,
We use appendDocument() and updatePageLayout() on an Aspose document containing a Drawing. When saving the document in Word format, then afterwards in PDF format, Aspose raises a NullPointerException.
We are using version 17.9.
Here is an example showing the error :
com.aspose.words.Document doc = new com.aspose.words.Document();
com.aspose.words.Document docFragment = new com.aspose.words.Document("Drawing.docx");
doc.appendDocument(docFragment, ImportFormatMode.USE_DESTINATION_STYLES);
doc.updatePageLayout();
doc.save("DrawingOutput.docx");
doc.save("DrawingOutput.pdf"); // <- java.lang.NullPointerException is raised
Drawing.zip (10.9 KB)
Could you please fix this issue ?
Thanks in advance !
Alexis