Aspose.Words for Java word 转 html,红头横线消失且内容不在同一页面显示

红头横线消失且内容不在同一页面显示.zip (203.7 KB)

转换结果、原文件,转换对比截图见附件。 使用Aspose.Words for Java 20.1版本。
转换代码如下:
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,

通过在我们的一端使用以下Java代码将DOCX转换为HTML固定格式时,红线在我们的一端完美呈现:

Java Code:

Document document = new Document("E:\\Temp\\212303\\in.docx");

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("E:\\Temp\\212303\\awjava-20.4.html", options);

因此,我们建议您从以下链接升级到最新(20.4)版本:

此外,我们最后的MS Word 2019报告您共享的DOCX文件中实际上有两个页面。 请查看以下屏幕截图:

20.5版本中已验证,问题已解决,感谢!