我试图使用以下命令将文档转换为docx:
soffice --headless --convert-to docx test.doc我正在使用centos7,并通过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 发布于 2018-09-11 19:41:20
我发现为什么它不起作用了。我卸载oppenoffice和libreoffice,然后再放一个。
yum remove openoffice* libreoffice*
yum install libreoffice*可能是缺少了一些库,或者是一些依赖项合并了。
现在一切都正常了。
soffice --headless --convert-to docx teste.dochttps://stackoverflow.com/questions/52277264
复制相似问题