libreoffice转成pdf

libreoffice 把word excel转成pdf

soffice.bin --headless  --convert-to pdf --outdir d:\tmp   C:\Users\youtun\Documents\说明文档20200629.docx

不详细的地方, 使用soffice.bin --help查看参数说明

libreoffice5.3安装日志

yum install --nogpgcheck*.rpm

try to run libreoffice5.3,
display no JRE found, and a lib.so is lost.
after install the lib.so, it success ??

Error log:


[root@data-service ~]# libreoffice5.3
Failed to open display
javaldx: Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx
/opt/libreoffice5.3/program/soffice.bin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

yum install mesa-libGL

this lib is a perl lib, **libGL **is a part of openGL which used to draw a picture.

Right Log:

JRE is not reuqired, and the jodconvert excel to pdf is success.

PDF操作常用库:
https://templated.io/blog/how-to-convert-html-to-pdf-with-java/
https://www.jianshu.com/p/d952d837af0e wkhtmltopdf wkhtmltoimage
https://github.com/wkhtmltopdf/wkhtmltopdf 使用webkit内核渲染

posted @   funny_coding  阅读(521)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2018-07-12 Hystrix使用小结
2018-07-12 mysql CPU占用高
build beautiful things, share happiness
点击右上角即可分享
微信分享提示