最近由于遇到了要使用预览的功能,然后有一个doc转PDF的需求,然后需要使用libreoffice的功能,然后使用 soffice --headless --invisible --convert-to pdf /tmp/abc.docx --outdir /tmp/ 就可以安装了。
libreoffice安装
[root
@CentOS~]
[root
@CentOS~]
字体安装
[root
@CentOS~]
然后执行以下命令
[root
@CentOS~]
[root
@CentOS~]
[root
@CentOS~]
[root
@CentOS~]
执行以下命令让字体生效
[root
@CentOS~]