版本23.6
代码:
Word2PdfUtils.checkFileType(in);
Document doc = new Document(in);
FontSettings fontSettings = FontSettings.getDefaultInstance();
FolderFontSource folderFontSource = new FolderFontSource("./resources/fonts", false, 1);
SystemFontSource systemFontSource = new SystemFontSource(2);
fontSettings.setFontsSources(new FontSourceBase[]{systemFontSource, folderFontSource});
doc.setFontSettings(fontSettings);
doc.getLayoutOptions().setCommentDisplayMode(CommentDisplayMode.HIDE);
doc.acceptAllRevisions();
doc.save(out, saveFormat);
文件:
zip.zip (1.5 MB)
问题:
请看第11的内容,有一段话的最后一个字符内容移到下一行了,具体截图在压缩包里