# springboot-demo **Repository Path**: ChenLonggitee/springboot-demo ## Basic Information - **Project Name**: springboot-demo - **Description**: 12345678900 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-29 - **Last Updated**: 2023-03-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 安装libreoffice:https://blog.csdn.net/an129/article/details/126766228 ###CentOS 7 安装LibreOffice 7.4.0 过程 1、检查当前操作系统环境是否已经安装了LibreOffice。 libreoffice --version 如果已经安装,需要把自带的LibreOffice卸载。 yum remove libreoffice-* 2、进入LibreOffice官网下载rpm安装包,访问地址: https://zh-cn.libreoffice.org/download/libreoffice/ 3、解压并安装LibreOffice。 tar -zxvf ./LibreOffice_7.4.0_Linux_x86-64_rpm.tar.gz cd LibreOffice_7.4.0.3_Linux_x86-64_rpm/RPMS/ yum -y localinstall *.rpm 4、安装libreoffice-headless yum install -y libreoffice-headless 5、验证LibreOffice是否可用 libreoffice7.4 --version 如果命令可以正常执行显示版本号的话,说明安装成功;若提示缺少so文件的话,需要安装对应的依赖文件。见末尾; ##word转pdf yum install libreoffice-writer 转换命令:libreoffice --headless --convert-to pdf /temp/2.docx --outdir /temp/8.pdf 使用Java转换需要开启服务: cd /opt/libreoffice7.4/program soffice -headless -accept="socket,host=0.0.0.0,port=18100;urp;" -nofirststartwizard & ###安装字体 ####windows字体 https://github.com/hushanyi/windows_fonts ####安装步骤: 1、fc -list查看字体库 2、yum -y install fontconfig安装 3、安装好后/usr/share目录下多两个目录fonts和fontconfig 4、首先在/usr/shared/fonts目录下新建一个目录chinese 5、到C:\Windows\Fonts目录下上传你需要的字体到/usr/shared/fonts/chinese目录下 6、修改chinese权限 chmod -R 755 /usr/share/fonts/chinese 7、接下来需要安装ttmkfdir来搜索目录中所有的字体信息,并汇总生成fonts.scale文件,输入命令: yum -y install ttmkfdir 8、最后一步就是修改字体配置文件了,首先通过编辑器打开配置文件: vi /etc/fonts/fonts.conf