Aspose.Words for Java word转html,word转换标题到文档末尾了

word转换标题到文档末尾了.zip (226.4 KB)
转换代码如下:
Document document = 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

请注意,将文档呈现为固定页面格式(JPEG,PNG,PDF或XPS)时,Aspose.Words需要TrueType字体。 您需要在将文档转换为PDF的计算机上安装文档中使用的字体。

如果仍然遇到问题,请ZIP并在此处附加文档中使用的字体以进行测试。 我们将对此问题进行调查,并为您提供更多信息。