14

There is a problem for converting DOCX to PDF using Libreoffice.(in RTL documents) but converting same document saved in ODT format will works fine.

Anyone knows how to convert an existing DOCX file to ODT using Ubuntu bash?

Suhaib Janjua
  • 3,538
  • 16
  • 59
  • 73
wtayyeb
  • 1,879
  • 2
  • 18
  • 38

2 Answers2

20

Then you can use this command directly from command line

libreoffice --headless --convert-to odt *.docx

AjayLohani
  • 872
  • 1
  • 6
  • 26
  • This also works on OSX but the full path to the binary becomes: **/Applications/LibreOffice.app/Contents/MacOS/soffice**. The ODT will be written to the shell's current working directory. – RegularlyScheduledProgramming Jan 20 '16 at 17:00
0

You can directly save it to odt format in Libre Office.

  1. Click on save as

  2. Select ODT as format

  3. Name the file

  4. Click on ok

AjayLohani
  • 872
  • 1
  • 6
  • 26