【发布时间】:2014-03-30 13:19:30
【问题描述】:
我正在尝试将文档从 html、txt 转换为 pdf、odt,反之亦然。但似乎只有 odt 到 pdf 有效。。没有其他文件格式被转换
这是我的命令
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-toimplies--headless所以你不需要再指定它了
标签: libreoffice headless document-conversion