2007年5月26日星期六

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.

1.Download the OpenXML Translator
From: http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58~
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.
来源

1 评论:

jason 说...

Of course, you can convert for free @ www.docx-converter.com

enjoy our free online conversion service...no software to download!