Aspose.Words for Java word转html,文件转换时报错,无法转换

原文件、报错堆栈见附件。word文件转换报错.zip (7.3 KB)

使用的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,

我们测试了这种情况,并最终设法重现了同样的问题。 为了更正,我们已将此问题记录在问题跟踪系统中。 此问题的ID为WORDSNET-20562。 我们将进一步调查该问题的详细信息,并让您及时了解更正的状态。 对于给您带来的不便,我们深表歉意。

The issues you have found earlier (filed as WORDSNET-20562) have been fixed in this Aspose.Words for .NET 20.7 update and this Aspose.Words for Java 20.7 update.