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

Free Support Forum - aspose.com

Docx to PDF conversion throws NPE for specific file

Using aspose-words-14.8.0-java
Running on mac osx 10.9.4
Java: /Library/Java/JavaVirtualMachines/1.6.0_51-b11-456.jdk


The code:

try {
com.aspose.words.Document doc = new com.aspose.words.Document(input.absolutePath)
mkdirs(output)
doc.save(output.absolutePath)
return true
}
catch (Exception ex) {
log.fatal ex.getMessage()
}

throws NPE from the call to doc.save()

Note that this same code works perfectly fine for some other .docx files.


Hi Richard,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 14.8.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-10803. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

Any update on this issue?

Hi Richard,


Thanks for your inquiry. The issue has now been resolved and it’s fix will be included in Aspose.Words 14.10.0 (next version). We will inform you via this thread as soon as this release is published.

Best regards,

The issues you have found earlier (filed as WORDSNET-10803) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

I have verified that the new version fixes our problem. Thanks for the update!