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");

doc.save("/Users/homedir/tmp/goals.pdf");

Hi
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:
https://releases.aspose.com/words/java
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);

options.setHtmlExportImagesFolder(tempDirName);

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.

Thanks,