我試圖從HTML文檔,TXT爲PDF,ODT反之亦然轉換。但僅ODT爲PDF似乎工作。沒有其他文件格式轉換的LibreOffice轉換到不工作
這裏是我的命令
libreoffice --headless --convert-to pdf test.html [Not working]
libreoffice --headless --convert-to odt test.html [Not working]
libreoffice --headless --convert-to pdf test.docx [Not working]
libreoffice --headless --convert-to pdf test.odt [Working]
請添加您正在使用的libreoffice的版本號。 –
我已經在其他地方看過'--headless'必須在'--convert-to'之後出現(但我仍然在努力讓它起作用) –
@RonnieOverby從版本4.5開始['--convert-to '暗示' - 無頭'](http://unix.stackexchange.com/a/354054/44425),所以你不需要再指定它 –