Convert ODT to DOC

Just like when converting ODT to PDF, you can use LibreOffice (OpenOffice.org) in command line mode for high quality conversion of all of the ODT files in a directory to MS Word DOC files:

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

P.S.

  1. Before you run this command, make sure that LibreOffice (OpenOffice.org) is not running in background. Otherwise it will fail.
  2. Use ./*.odt instead of simply *.odt, because otherwise the program will consider file names beginning with “-” to be an argument and will fail.
Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s