Home > Linux, Ubuntu > OpenXML (docx,…) suport in OpenOffice

OpenXML (docx,…) suport in OpenOffice

September 24th, 2007

*Update*

OpenOffice 2.3 already can open .docx files, just right-click and select to Open With OpenOffice.

*****

I’m starting to get .docx in my mail lately ( against my will…) and not using Microsoft Office and not beeing able to ask people to send at least .doc, I had to do some search to give some support do OpenOffice to this “format”.

Novell has created an OpenXML Translator for OpenOffice, and I found this guide at sigmundvoid. (I’ve just made some small changes)

This was tested in Ubuntu 7.04 “Feisty Fawn”

1- First you need to have ‘alien’ installed, an rpm to deb converter.

$ sudo apt-get install alien

2 – Grab yourself the Odf converter RPM, from here.

3 – Now lets convert it like this:

$ alien -ct odf-converter-1.0.0-5.i586.rpm

You will end up with a .tgz file.

Extract it to a directory:

$ tar -zxvf odf-converter-1.0.0.tgz

Now its time to copy a few files to allow us to open up our .docx file.

sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/

sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/

sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/

OpenOffice is now compatible with the docx “format”.

In notice : PLEASE don’t send docx, at least .doc if you dont like standards…

Linux, Ubuntu

  1. Tesla
    September 24th, 2007 at 22:18 | #1

    Many thanks!

  2. Luis Bruno
    September 25th, 2007 at 19:05 | #2

    Maybe you should send back a note with: “frak them .docx files. Here’s how you save them in .doc format”.

    Basically, are “they” paying you to read .docx? If not… why are you accomodating their inertia?

    A strange kind of inertia, as “they” had to actually install the damned thing to send it in the first place.

  3. September 27th, 2007 at 17:16 | #3

    Thanks for the trackback:) Glad it works! Trying to work out xlsx now:(

  4. October 24th, 2007 at 02:14 | #4

    The new version of OpenOffice allows read/write of Office 2007 files!

  5. February 20th, 2008 at 15:17 | #5

    That link above is dead for the download, but here is the new odfconverter. Also, the instructions above don’t work on the mainstream OpenOffice.org, but there are other ways to open .docx files

  6. iGama
    February 20th, 2008 at 15:30 | #6

    Thanks for the update Andrew Z ;)

  1. December 16th, 2007 at 18:58 | #1
  2. December 16th, 2007 at 19:02 | #2
  3. July 27th, 2008 at 04:01 | #3