文件转换
libreoffice使用
1.安装主程序
2.安装语言包
3.安装依赖
yum install ibus
4.字体准备
将windows下的字体copy到/usr/share/fonts下
命令行转换:
word转pdf:
Mac:
/Applications/LibreOffice.app/Contents/MacOS/soffice -headless -convert-to pdf:writer_pdf_Export -outdir /Users/xxxxx/Desktop /Users/xxxxx/Desktop/b480ac17-bd68-4523-b895-22fc3a7674f6.pdf
Linux:
libreoffice6.0 -headless -convert-to pdf:writer_pdf_Export -outdir /Users/xxxxx/Desktop /Users/xxxxx/Desktop/b480ac17-bd68-4523-b895-22fc3a7674f6.pdf
Pdf转图片:
Mac:
/Applications/LibreOffice.app/Contents/MacOS/soffice --headless --invisible -convert-to jpg -outdir /Users/xxxxx/Desktop /Users/xxxxx/Desktop/b480ac17-bd68-4523-b895-22fc3a7674f6.pdf
Linux:
libreoffice6.0 --headless --invisible -convert-to jpg -outdir /Users/xxxxx/Desktop /Users/xxxxx/Desktop/b480ac17-bd68-4523-b895-22fc3a7674f6.pdf