Word convert to fixed html fail

When i convert the word to html, the error occurs.

the word file: 8aaa809c86068f1d01867cf15671003e_mark.docx (24.9 KB)

the code:

Document document = new Document(fileName);

HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions();
htmlFixedSaveOptions.setEncoding(StandardCharsets.UTF_8);
htmlFixedSaveOptions.setResourcesFolder(resourcesFolder);
htmlFixedSaveOptions.setResourcesFolderAlias(folderAlias);
htmlFixedSaveOptions.setExportEmbeddedSvg(false);
htmlFixedSaveOptions.setUpdateFields(false);
htmlFixedSaveOptions.setExportGeneratorName(false);
htmlFixedSaveOptions.setUseHighQualityRendering(true);

document.save(htmlFileName, htmlFixedSaveOptions);

the error

java.lang.NullPointerException
	at com.aspose.words.zzxd.zzLM(Unknown Source)
	at com.aspose.words.zzxd.zzwE(Unknown Source)
	at com.aspose.words.zzxd.zzY97(Unknown Source)
	at com.aspose.words.zzxd.zzXbn(Unknown Source)
	at com.aspose.words.zzY4E.zzwE(Unknown Source)
	at com.aspose.words.zzY4E.zzWWq(Unknown Source)
	at com.aspose.words.zzVXO.zzYdA(Unknown Source)
	at com.aspose.words.zzWg3.zzYys(Unknown Source)
	at com.aspose.words.zzWg3.zzY97(Unknown Source)
	at com.aspose.words.zzWg3.zzgp(Unknown Source)
	at com.aspose.words.zzYMh.zzwE(Unknown Source)
	at com.aspose.words.zzYMh.zzwE(Unknown Source)
	at com.aspose.words.zzZ8v.zzWaR(Unknown Source)
	at com.aspose.words.zzZ8v.zzX2D(Unknown Source)
	at com.aspose.words.zzZ8v.zzwE(Unknown Source)
	at com.aspose.words.zzWmx.zzQe(Unknown Source)
	at com.aspose.words.zzWmx.zzY97(Unknown Source)
	at com.aspose.words.zzWmx.zzgp(Unknown Source)
	at com.aspose.words.zzUB.zzZJx(Unknown Source)
	at com.aspose.words.zzUB.zzW1R(Unknown Source)
	at com.aspose.words.zzUB.zz3j(Unknown Source)
	at com.aspose.words.zzUB.zzWWq(Unknown Source)
	at com.aspose.words.zzsX.zzYbL(Unknown Source)
	at com.aspose.words.zzWOi.zzZJm(Unknown Source)
	at com.aspose.words.zzZOz.zzYbL(Unknown Source)
	at com.aspose.words.zzsR.zzWEu(Unknown Source)
	at com.aspose.words.zzZey.zzXmE(Unknown Source)
	at com.aspose.words.Document.updatePageLayout(Unknown Source)
	at com.aspose.words.Document.zzzj(Unknown Source)
	at com.aspose.words.Document.getPageCount(Unknown Source)
	at com.aspose.words.zz24.zzX2D(Unknown Source)
	at com.aspose.words.zz24.zzwE(Unknown Source)
	at com.aspose.words.zzWMs.zzwE(Unknown Source)
	at com.aspose.words.Document.zzX2D(Unknown Source)
	at com.aspose.words.Document.zzwE(Unknown Source)
	at com.aspose.words.Document.save(Unknown Source)

@Rock_Zhang
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25050

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-25050) have been fixed in this Aspose.Words for Java 23.3 update.

1 Like