
文章平均质量分 65
码非马
这个作者很懒,什么都没留下…
展开
-
linux上使用libreoffice转换word成pdf
linux上使用libreoffice转换word成pdf1, linux安装libreoffice1.1, 先安装依赖yum install cairo -yyum install cups-libs -yyum install libSM -y2, 安装好依赖之后,去libreoffice官网下载安装包到本地,官网地址:https://www.libreoffice.org/download/download/3,安装包下载完成后,上传到linux服务器,/usr/local/libreo原创 2021-05-14 17:26:26 · 1743 阅读 · 0 评论 -
springboot + freemarker 根据doc模板生成word文档
java根据doc模板生成word文档1, 打开word文档模板,在file目录中选择save as --> xml,将word模板保存成xml.2, 由于这里使用了freemark框架做数据填充,故将xml改后缀为.ftl3, 使用freemark占位符替换掉ftl模板中需要填充的内容e.g ${overview.name!""} 替换模板中的name, !""的意思是如果overview.name为空默认设值为“”;4,创建freemark configurationpublic cl原创 2021-05-14 16:46:53 · 287 阅读 · 0 评论 -
springboot 项目中用doc转成PDF
springboot 项目中用doc生成PDF1, 在pom文件中引入所需的依赖包com.itextpdf.toolxmlworker5.4.1com.itextpdfitext-asian5.2.0com.documents4jdocuments4j-local1.0.3com.documents4jdocuments4j-transformer-msoffice-word1.0.32,由于此方式是用的Microsoft Word自带的服务,所以只能在windo原创 2021-05-14 15:19:50 · 970 阅读 · 0 评论