没在同一页显示且字体变模糊.zip (333.0 KB)
转换结果存在两个问题:1、转换结果挤到下一页显示了 2、转换结果在IE11、edge、firefox(版本:71.0 (64 位))浏览器中查看时字体模糊,chrome(版本 77.0.3865.120(正式版本) (64 位))浏览器中查看字体显示正常,没有模糊。
转换前后效果对比图见附件。
转换代码如下:
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);