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)