Working with Word 2007 Documents(.docx) in Ubuntu


Microsoft Office 2007 uses a new file format, called Office OpenXML, as the default file format. It is based on XML and uses the ZIP file container.So Word 2007 documents are incompatible with OpenOffice.Here's how to make it compatible.

UPDATE: This post is now obsolete. You can now use odf-converter-integrator to open word 2007 files in OpenOffice.org

1.Download the OpenXML Translator
From: http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58%7E
filename: odf-converter-1.0.0-5.i586.rpm

2. Use alien to convert it to a Slackware tgz file
Code:
fakeroot alien -ct odf-converter-1.0.0-5.i586.rpm

If fakeroot and alien is not installed then install it
Code:
sudo apt-get install alien fakeroot

3. Unpack the slackware tgz file
Code:
tar xzf odf-converter-1.0.0.tgz

4. Copy three files into your OpenOffice.org directories -- note that the usr that you're copying from is a directory that was inside the tgz file.
Code:

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/


5. Restart OpenOffice and you can now save and open Word 2007 docx files.

11 comments:

  Anonymous

May 27, 2007 at 9:39 AM

Awesome! Works perfect. Thanks for the advice!

  Anonymous

May 27, 2007 at 7:00 PM

You can use this script to perform that task:

http://danicafe.extreblog.com/200705157364_Opening-docx-documents-in-Debian-and-Ubuntu.html

  Anonymous

May 31, 2007 at 11:49 PM

Great! Really helped me!

  Anonymous

June 15, 2007 at 12:50 AM

Thank you! Perfect, even for the amd64!

  Anonymous

June 15, 2007 at 9:41 PM

thanks. Worked perfect.

  Anonymous

June 18, 2007 at 10:23 PM

Works perfect. Thanks a lot

  voitek

September 19, 2007 at 9:11 AM

This fix works flawlessly. Thank you so much! The geek-trick integrates into OpenOffice very well, just as if intended from the beginning. Thank you so much!

  Anonymous

November 5, 2007 at 10:31 AM

It might work but it's probably not legal to use this package with a non-Novell distro. Novell signed a deal with Microsoft and they probably gave them the code(probably not under the GPL). Please help the "Linux Desktop" and don't install this, and if you received a docx by email ask the sender to send it in another format.

  Anonymous

January 10, 2008 at 3:17 PM

nice!!

  Andrew Z

March 16, 2008 at 2:16 AM

odf-converter-integrator is a newer version of this and packages it in an easy way for all OpenOffice.org distributions. For Ubuntu users who already have a .docx convert, odf-converter-integrator improves the quality of the conversion.

  Anonymous

November 12, 2008 at 4:35 AM

Great work.