下载LibreOffice安装包:LibreOffice_7.4.3_Linux_x86-64_rpm.tar.gz
上传解压:
tar -zvxf LibreOffice_7.4.3_Linux_x86-64_rpm.tar.gz /data/install
进入解压目录,执行安装:
yum -y localinstall *.rpm
把字体复制到/usr/share/fonts/chinese
修复配置:
vim /etc/fonts/fonts.conf
添加:
<dir>/usr/share/fonts/chinese</dir>
刷新字体缓存:
cd /usr/share/fonts
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
source /etc/profile
fc-cache
fc-list
测试文件转换:
libreoffice --headless --convert-to pdf 1.docx
268

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



