问题:使用libreoffice将doc转换为pdf时cpu上升到100%还转换失败了
解决:转换失败可能是缺少字体
方法:
wget https://mirrors.tuna.tsinghua.edu.cn/adobe-fonts/source-han-serif/SubsetOTF/SourceHanSerifCN.zip
wget https://mirrors.tuna.tsinghua.edu.cn/adobe-fonts/source-han-sans/SubsetOTF/SourceHanSansCN.zip
unzip SourceHanSansCN.zip
unzip SourceHanSerifCN.zip
sudo cp -r SourceHanSansCN /usr/share/fonts/
sudo cp -r SourceHanSerifCN /usr/share/fonts/
sudo apt install fontconfig
fc-cache -fv
参考:
https://www.jianshu.com/p/15b094a9a732