úterý 9. srpna 2016

batch doc/docx to odt (and epub) convertion

Thanks to CRC OK.


libreoffice --headless --convert-to odt ./*doc

I have seen and used this solution already in the past, due some strange restriction it was necessary to run the command as root. Currently such a restriction does not apply. Tested on CentOS Linux release 7.2.1511, libreoffice-writer-4.3.7.2-5.el7_2.1.x86_64.


PS. conversion to epub is as usual:

ebook-convert file.odt file.epub \
--authors "Scheer, Karl Herbert" \
--title "Perry Rhodan: Odlet MARCA POLA" \
--series "Perry Rhodan" \
--series-index 450