提交 47f469e7 作者: 刘凯歌

合并分支 'event_fusion_dev' 到 'event_fusion'

转pdfbug修改

查看合并请求 !17
......@@ -132,6 +132,11 @@ public class DocUtil {
*/
public static void convertWordTo(InputStream wordInputStream, OutputStream outputStream,int saveFormat) throws Exception {
getLicense();
if (SystemUtils.IS_OS_LINUX) {
FontSettings fontSettings = new FontSettings();
//true 表示递归查询子文件夹
fontSettings.setFontsFolder(fontsPath, true);
}
// 从输入流加载Word文档
Document doc = new Document(wordInputStream);
// 将文档保存到输出流(PDF)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论