环境建置
安装LibreOffice
若安装32位元的,就会在C:\Program Files (x86)\LibreOffice底下看到soffice.exe
这就是等等要用的执行档
开始使用 将E:\ret.docx转换成ret.pdf
产生的PDF会预设放在C:\Program Files (x86)\LibreOffice\program
cd C:\Program Files (x86)\LibreOffice\programsoffice --headless --convert-to pdf e:\ret.docxpause
指定产生的PDF位子
cd C:\Program Files (x86)\LibreOffice\programsoffice --headless --writer --convert-to pdf e:\ret.docx --outdir e:\