Aspose.Words for Java word转html,部分图片被翻转了

word部分图片被翻转了.zip (7.0 MB)

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

在使用Aspose.Words for Java最新的20.6版本进行初步测试后,我们最终无法重现此问题。 请查看我们最终生成的以下输出HTML_FIXED文档:

我们使用以下Java代码来产生以上输出:

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

因此,我们建议您升级到最新版本。 希望这可以帮助。