PPT转PDF是很常见的需求,可以用于将PPT转化成PDF后显示在网页之中
(PDF转JPG:点击打开链接)
使用libreoffice可以很好的解决这个问题
# yum install libreoffice然后通过命令
# soffice --headless --convert-to pdf ppt_name.pptx --outdir /data //--outdir用于指定输出path然后报错
/usr/lib64/libreoffice/program/soffice.bin X11 error: Can't open display:
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)可以通过以下命令完美解决:
# yum install libreoffice-headless
本文介绍了一种使用LibreOffice将PPT文件转换为PDF的方法,适用于需要将演示文稿转化为网页展示的需求。文章详细说明了安装LibreOffice及其头less组件的过程,并提供了解决转换过程中遇到的X11显示错误的具体步骤。
440

被折叠的 条评论
为什么被折叠?



