见附件中的文件Examples.zip (672.4 KB)
转换为Html,最前面的艺术字完全丢失了。
代码如下
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();
// options.setPrettyFormat(true);
document.save(targetFileName, options);