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

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • FriendFeed
  • FSDaily
  • Identi.ca
  • LinkedIn
  • RSS
  • StumbleUpon
  • Technorati
  • Twitter
  • Yahoo! Bookmarks

No related posts.

No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>