一、下载liboffice安装包
链接:https://pan.baidu.com/s/1EbuaZ8EMra8Si–ZbYeeHQ
提取码:3c3f
二、安装liboffice
1、解压:
tar -zxvf 压缩文件名
2、安装
//进入目录
cd RPMS/
//安装
yum localinstall *.rpm
3、启动
//进入默认安装目录
cd /opt/libreoffice7.0/program/
//启动
libreoffice7.0 --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard &
//查看
ps -ef | grep soffice
三、引入依赖文件(如果还差哪个依赖可以自行进maven仓库下载)
<!-- https://mvnrepository.com/artifact/com.artofsolving/jodconverter -->
<dependency>
<groupId>com.artofsolving</groupId>
<artifactId>jodconverter</artifactId>
<version>2.2.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact