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

Free Support Forum - aspose.com

NullPointerException exporting doc to pdf

Using the following code I received a NPE when trying to save the attached word document as a pdf.

Document doc = new Document("/Users/homedir/tmp/goals.doc");


Thanks for your request. I cannot reproduce the problem on my side. I used the latest version of Aspose.Words for testing. You can download the latest version from here:
Best regards,

Thanks, the latest version resolved the problem.

In the latest version some methods are missing. How can I get the SaveOptions?

Previous Code:

SaveOptions options = doc.getSaveOptions();

options.setHtmlExportImagesFolderAlias(some folder);


I tracked down the new settings.

Hi there,

It’s great you were able to find what you were looking for. Please let us know any time you have any further queries.