centos7使用libreoffice将doc格式转换为pdf格式
利用Centos7自带的libreoffice可将doc文件直接转换为pdf文件
# demo.docx表示doc文件
# --outdir表示转换后放到指定文件夹
soffice --headless --invisible --convert-to pdf ./demo.docx --outdir ./
Word转PDF乱码问题
检查字体是否安装,没有则下载存放在该位置
SIMHEI.TTF(百度云) 密码: mcqm
cd /usr/share/fonts
ls