Office 2007 documents in OpenOffice.org (Ubuntu 8.04 Hardy Heron)
Once Hardy Heron is set up, I need to start working. One of the most important thing is the ability to open and save Microsoft Office 2007 documents. I had no problems with that when I was in openSUSE 10.3 especially after updating to the latest OpenOffice OpenXML translator provided by Novell. In fact, that’s why I chose openSUSE at first. I really liked openSUSE but getting the wireless to work is a pain especially since openSUSE won’t suspend my notebook properly and thus the workround doesn’t work.
According to Novell, the OpenXML translator can only work with the Novell edition of OpenOffice. The Ubuntu edition of OpenOffice is based on the Novell edition and thus contains the codes that will work with the OpenXML translator. But you can’t just install the RPM because first, it’s RPM and that isn’t the Ubuntu way. Secondly, if you did what I did at first by trying to install the RPM, you’d see that it complains that OpenOffice is not installed. So, we need to do this manually. I referred mainly to a maketecheasier.com article and after adding a few steps, managed to make it work. Woot! Read on for the steps
- Download the OpenXML translator from Novell. Get version 1.1-7 here. Check if there’s a newer version here. Download only the relevant version for your system (i586 or x86_64). If you download both, check the command you put in step 3. Better to download into it’s own directory.
- Install the alien package so you can convert the RPM. To do so, open a terminal and enter sudo apt-get install alien.
- In the terminal, change to the directory where you downloaded the OpenXML translator and enter sudo alien –to-tgz –script odf-converter-*.rpm.
- In the terminal, enter tar zxf odf-converter-*.tgz.
- Then, while still in the same directory, enter sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/.
- After that, enter sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/* /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/.
- Then, enter sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/* /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/.
- Make a symbolic link to libtiff.so.4.2.1 by entering sudo ln -s /usr/lib/libtiff.so.4.2.1 /usr/lib/libtiff.so.3 as the OpenXML translator uses libtiff.so.3.
- Then, install libgif4 by entering sudo apt-get install libgif4. You can also use libungif4g but that one has problems with MPlayer and other things. So better to use libgif4 if you are in a default install of Hardy Heron.
- Close any OpenOffice.org windows that are open. Find the Microsoft Office 2007 file and double click in Nautilus.
If everything went to plan, the file will be opened and OpenOffice.org says that it’s waiting for an external application (look at the status bar). You should not get a window asking what is the file type. If you have that, then check that all OpenOffice.org windows are closed and try again the steps (don’t have to download again unless the file’s corrupt).
By the way, the translator may take a long time with a large or complex document. Be patient even if it seems like it’s hanging. Shouldn’t be hanging more than 10 minutes, though… Well, be as patient as you can and decide for yourself…
That’s it. You can also open the file from the File menu of OpenOffice.org. Enjoy!… or rather, start working!.
[…] dangblog wrote an interesting post today onHere’s a quick excerptOne of the most important thing is the ability to open and save Microsoft Office 2007 documents. I had no problems with that when I was in openSUSE 10.3 especially after updating to the latest OpenOffice OpenXML translator provided by … […]