Aspose.Words for Java word转html word转换后内容被隐藏

word转换后内容被隐藏.zip (67.8 KB)
代码:
cument = new Document(sourceFileName);
HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
options.setUseTargetMachineFonts(false);
options.setUseHighQualityRendering(true);
options.setEncoding(Charset.forName(“UTF-8”));
options.setExportEmbeddedFonts(true);
options.setShowPageBorder(true);
document.acceptAllRevisions();
document.save(targetFileName, options);

@xiangma

请注意,当将文档呈现为固定页面格式或获取页数时,Aspose.Words 需要 TrueType 字体。 您需要在将文档转换为 PDF 的机器上安装文档中使用的字体。 请参考以下文章:
使用 TrueType 字体
操作和替换 TrueType 字体

如果您仍然遇到问题,请在此处分享以下字体进行测试。

  • ‘仿宋_GB2312’