Aspose.Words for Java word 转 html,图片被旋转

图片被旋转.zip (591.0 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,

在使用最新的20.4版Aspose.Words for Java进行了初步测试之后,我们最终无法重现此问题。 请查看以下我们端生成的HTML文件:

Java代码:

Document doc = new Document("E:\\Temp\\212626\\in.doc");

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

因此,请升级到最新版本。 希望这可以帮助。

已验证,此问题已解决,感谢。