Aspose.Words for Java word转html,word转换后表格线未对齐1

word转换后表格线未对齐.zip (96.1 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,

在使用最新 (21.7) 版 Aspose.Words for Java 进行初始测试后,我们最终无法重现此问题。 我们使用 Aspose.Words 的以下 Java 代码进行测试(请参阅 参考资料 HTML output by Aspose.Words 21.7.zip (17.0 KB)):

Document doc = new Document("C:\\Temp\\232912\\in.docx");
HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
options.setUseTargetMachineFonts(false);
options.setUseHighQualityRendering(true);
options.setEncoding(Charset.forName("UTF-8"));
options.setExportEmbeddedFonts(true);
options.setShowPageBorder(true);
doc.acceptAllRevisions();
doc.save("c:\\temp\\232912\\awjava-21.7.html", options);

另外,请查看以下屏幕截图并确保您提供了正确的源 DOCX 文件。