我正在尝试使用以下命令将doc转换为docx:
soffice --headless --convert-to docx test.doc
我正在使用centos 7,并从openoffice喉咙安装一切
yum install openoffice
我在.doc文件的当前目录中。
我有一个与过滤器相关的错误(我搜索过这些过滤器并找不到可以解决我问题的过滤器):
Error: no export filter for teste.docx found, aborting.
Error: no export filter
每次我放一些过滤器,它给我另一个错误:
Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///path/test.txt> failed: 0x81a)
我把过滤器(过滤器的例子来自soffice)仍然无法正常工作
soffice --headless --convert-to html:"txt:Text (encoded):UTF8" --outdir /home/user/Downloads /home/user/Downloads/test.doc
我发现为什么它不起作用。我卸载openoffice和libreoffice并放入另一个。
yum remove openoffice* libreoffice*
yum install libreoffice*
可能它缺少一些库或某些依赖项是冲突的。
现在一切正常。
soffice --headless --convert-to docx teste.doc