問題描述:
Libreoffice在版本5.3.0之前都存在這個問題。現象是:當你運行其中一個LibreOffice的時候,再運行另外一個Libreoffice轉換時,將不做任何操作。
解決方案:
如果你的Libreoffice的版本在4.5之前,運行:
soffice -env:UserInstallation=file:///$HOME/.libreoffice-headless/ \
--headless --convert-to pdf test.docx
如果你的Libreoffice的版本在4.5~5.3之間,運行:
soffice -env:UserInstallation=file:///$HOME/.libreoffice-headless/ \
--convert-to pdf test.docx
參考鏈接:
https://stackoverflow.com/questions/22062973/libreoffice-convert-to-not-working/43907693#43907693