文档中有手写的批注,转换出来的html是一系列的空div
源文档及转换后的html见附件Examples.zip (610.4 KB)
转换代码为
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);