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

Free Support Forum - aspose.com

Error convert Word SmartArt to PDF

We are having an error converting a docx document with letters and a SmartArt. The version we are using is 18.9.0.

The error is given when executing the updateTableLayout method and the trace is:
Exception in thread “main” java.io.IOException: java.lang.NullPointerException
at com.test.ConvertToPdf.save (ConvertToPdf.java:44)
at com.test.ConvertToPdf.main (ConvertToPdf.java:51)
Caused by: java.lang.NullPointerException
at com.aspose.words.zzEC.getHidden (Unknown Source)
at com.aspose.words.ShapeBase.getHidden (Unknown Source)
at com.aspose.words.zzYX8.getHidden (Unknown Source)
at com.aspose.words.zzYWN.commit (Unknown Source)
at com.aspose.words.zz94.commit (Unknown Source)
at com.aspose.words.zz94.zzJ (Unknown Source)
at com.aspose.words.zz95.zz4n (Unknown Source)
at com.aspose.words.zzZMT.zzZ (Unknown Source)
at com.aspose.words.Document.updatePageLayout (Unknown Source)
at com.test.ConvertToPdf.save (ConvertToPdf.java:37)
… 1 more

Or if it is deleted when executing save ()
Exception in thread “main” java.io.IOException: java.lang.NullPointerException
at com.test.ConvertToPdf.save(ConvertToPdf.java:43)
at com.test.ConvertToPdf.main(ConvertToPdf.java:50)
Caused by: java.lang.NullPointerException
at com.aspose.words.zzEC.getHidden(Unknown Source)
at com.aspose.words.ShapeBase.getHidden(Unknown Source)
at com.aspose.words.zzYX8.getHidden(Unknown Source)
at com.aspose.words.zzYWN.commit(Unknown Source)
at com.aspose.words.zz94.commit(Unknown Source)
at com.aspose.words.zz94.zzJ(Unknown Source)
at com.aspose.words.zz95.zz4n(Unknown Source)
at com.aspose.words.zzZMT.zzZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.Document.zzXu(Unknown Source)
at com.aspose.words.Document.getPageCount(Unknown Source)
at com.aspose.words.zz0G.zzZ(Unknown Source)
at com.aspose.words.zzZH5.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at com.test.ConvertToPdf.save(ConvertToPdf.java:38)
… 1 more

I attached a zip with a test program and the test document
Aspose.zip (3.6 MB)

@jmbeas

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-17672. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-17672) have been fixed in this Aspose.Words for .NET 19.1 update and this Aspose.Words for Java 19.1 update.