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

Free Support Forum - aspose.com

Font can not be recognized!

License wordLicense = new License();
wordLicense
.setLicense(new FileInputStream(
"D:\\Landray\\AttConverter\\FileConverter\\AsposeConverter\\HTMLConverter\\config\\license\\Aspose.Total.Java.lic"));
Document wordDocument = new Document(
"C:\\Users\\Lixp\\Desktop\\editonline.doc");
wordDocument.acceptAllRevisions();
HtmlFixedSaveOptions saveOptions = new HtmlFixedSaveOptions();
saveOptions.setPrettyFormat(true);
saveOptions.setExportEmbeddedCss(true);
saveOptions.setExportEmbeddedFonts(true);
saveOptions.setExportEmbeddedImages(true);
saveOptions.setExportEmbeddedSvg(true);
saveOptions.setWarningCallback(new com.aspose.words.IWarningCallback() {
@Override
public void warning(com.aspose.words.WarningInfo warningInfo) {
System.out
.println(warningInfo.getWarningType() == com.aspose.words.WarningType.FONT_SUBSTITUTION ? ("Font substitution: " + warningInfo
.getDescription()) : "");
}
});
OutputStream outputStream = null;
int pageCount = wordDocument.getPageCount();
for (int i = 0; i < pageCount; i++) {
saveOptions.setPageIndex(i);
saveOptions.setPageCount(1);
outputStream = new FileOutputStream(
"C:\\Users\\Lixp\\Desktop\\editonline\\convert" + "_page-"
+ i + ".html");
wordDocument.save(outputStream, saveOptions);
outputStream.close();
}

Hi there,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13270. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Regarding your query about default font setting, please read about font availability and substitution from following article.
How Aspose.Words Uses True Type Fonts

@landray.com.cn,

The issues you have found earlier (filed as WORDSNET-13270) have been fixed in this Aspose.Words for .NET 17.10 update and this Aspose.Words for Java 17.10 update.