i am trying to convert a doc to docx using the following command:
soffice --headless --convert-to docx test.doc
I am using centos7, and install everything from openoffice throught
yum install openoffice
I am in the current directory of the .doc file.
I am having an error related to filters (I had search about these filters and didn't find one that would solve my problem):
Error: no export filter for teste.docx found, aborting.
Error: no export filter
Everytime i put some filter, it gives me another error:
Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///path/test.txt> failed: 0x81a)
I put the filter (filter example from soffice) and still not working
soffice --headless --convert-to html:"txt:Text (encoded):UTF8" --outdir /home/user/Downloads /home/user/Downloads/test.doc
I discover why it's not working. I uninstall oppenoffice and libreoffice and put another one.
yum remove openoffice* libreoffice*
yum install libreoffice*
Probably it was missing some library or some dependencies were confliting.
Now everything is working.
soffice --headless --convert-to docx teste.doc