Bulk conversion of documents using OpenOffice and Unoconv
Unoconv (converter between OpenOffice.org document formats): a commandline utility which can convert from any document format that OpenOffice can import to any document format it can export.
Install Unoconv
Debian
apt-get install unoconv
Ubuntu, Mint
sudo apt-get install unoconv
Start Open Office in headless mode
soffice -headless -accept=”socket,host=127.0.0.1,port=8100;urp;” -nofirststartwizard
doc to odt
unoconv -c “socket,host=localhost,port=8100;urp;StarOffice.ComponentContext” -f odt *.doc
doc to pdf
unoconv -c “socket,host=localhost,port=8100;urp;StarOffice.ComponentContext” -f pdf *.doc
Finally Stop OpenOffice
killall soffice.bin
The list of formats to which the document can be converted is given in the following page.
http://dag.wieers.com/home-made/unoconv/
“Liberate your documents” – documentfreedom.org
No related posts.
Recent Comments