Microsoft Office 2007 came out about a year ago. Have you yet started getting .docx, .xlsx, or .pptx files? Whether you are an OpenOffice.org user or a Microsoft Office 2003 user, you are probably frustrated trying to find some way to convert, import, or otherwise open these documents.
These new document formats are called Office Open XML, OOXML, or OpenXML. They are significantly different from the Microsoft Office 97, 2000, 2003, or XP formats. The new formats are based on XML while the old formats are binary.
If you don't use Linux or you are afraid of the terminal, skip to the very end. Otherwise here is one easy way to convert these documents thanks to Novell. They developed a tool called the OpenOffice OpenXML Translator, and soon it will be fully integrated into the mainstream OpenOffice.org.
Because this procedure is for the command line (and does not directly integrate into the vanilla OpenOffice.org), this procedure is well suited for automated, batch conversions between OpenXML and OpenDocument Format. This procedure should work on all Linux distributions: Ubuntu, Fedora, SUSE, Mandriva, Debian, and so on.
Install the programs rpm2cpio and cpio. If you run a system such as Fedora, run this command:
sudo yum -y install cpio rpm
If you run Ubuntu, run this command:
sudo apt-get install rpm libgif4
The general idea is the same no matter which Linux distribution you use. You are basically copying one file out of the RPM as if it were a tarball or a zip file. You are not installing the RPM in the traditional sense, so don't worry if you run a non-RPM-based system such as Ubuntu, Debian, or Slackware
- Download odf-converter-1.1-7.i586.rpm for i386 systems or odf-converter-1.1-7.x86_64.rpm for x86_64 systems.
- Open a console.
- Change directory to your download directory. Depending on your setup, it may be:
- To unpackage the rpm, run this command:
rpm2cpio odf-converter*rpm | cpio -ivd
- To copy the binary run this command:
sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/bin
- Optionally you may now delete the opt and usr directories you just unpacked as well as the .rpm file you downloaded. However, you may wish to keep the files under usr if you are interested in documentation and sample OpenXML documents.
The usage is simple. To convert a .docx file (Word 2007) to a .odt (OpenDocument Format) file, just run:
OdfConverter /i example.docx
Then, you will find the .odt file in the same directory as the .docx. Then, open the ODF file in OpenOffice.org or your favorite office suite.
For more help on arguments, just run OdfConverter without arguments. If you are curious, there are some OpenXML sample documents included in the RPM: check the directory usr/share/doc/packages/odf-converter/.
- odf-converter-integrator use odf-converter easily with any version of OpenOffice.org (no command line). Also contains the latest version of OdfConverter.
- Install Free Office 2007 Fonts for Linux and XP
- OxygenOffice as a Word 2007 .docx converter
- Office Compatibility Pack Review
- Convert OpenXML documents in Windows using command line using odf-converter
- Review: Zamzar .docx to .odt Converter
- odf-converter 1.1 released
- Review: docx2rtf Document Converter