tag:blogger.com,1999:blog-8544609315733972726.post-44362475105741955922008-01-13T22:31:00.002-07:002008-03-21T15:06:59.819-06:00Convert OpenXML documents in Windows using command line<p>Do you need to convert between Microsoft Office 2007 OpenXML formats (.docx, .xlsx, .pptx) and OpenDocument formats (.odt, .ods, and .odp) on Windows? I wrote about <a href="http://www.OOoNinja.com/2008/01/convert-openxml-docx-etc-in-linux-using.html">converting OpenXML documents in Linux using command line</a>, and it's even easier on Windows.</p> <p>Don't like the command line? <a href="http://katana.oooninja.com/w/odf-converter-integrator">odf-converter-integrator</a> is easier.</p> <h3>How to get the software</h3> <ul> <li>Download the latest <a href="http://download.go-oo.org/tstnvl/odf-converter/odf-converter-1.1-7.oxt">odf-converter-1.1-7.oxt</a> extension for Windows.</li> <li>Rename the file extension from .oxt to .zip. Tip: Windows may hide the extension from you, so follow <a rel="external nofollow" href="http://www.mediacollege.com/microsoft/windows/extension-change.html">this procedure to show and to rename the file extension</a>.</li> <li>Unzip the .zip file by right clicking on the file and choosing <b>Extract All</b>.</li> </ul> <h3>Path</h3> <p><b>OdfConverter.exe</b> must be in your current working directory or your path. To view your path:</p> <ol> <li>Click Start menu.</li> <li>Click Run.</li> <li>Type <b>CMD.EXE</b>.</li> <li>Type the ENTER key.</li> </ol> <p>Your path probably includes <b>C:\WINDOWS</b>, so if you copy <b>OdfConverter.exe</b> there, then it will always be in your path.</p> <h3>Usage</h3> <p>Assuming your filename is <b>example.docx</b>, then run this command to get a <b>.odt</b>:</p> <code>OdfConverter.exe /I example.docx</code> <p>To do a batch conversion from every <b>.docx</b> file in <b>c:\files</b>, run this command</p> <code>OdfConverter.exe /BATCH-DOCX /I c:\files</code> <p>For more options, run:</p> <code>OdfConverter.exe /?</code> <p>You will notice that OdfConverter is bidirectional, so it can also convert ODF to OOXML.</p> <h3>Related articles</h3> <ul> <li><a href="http://www.oooninja.com/2008/01/calibri-linux-vista-fonts-download.html">Install Free Office 2007 Fonts for Linux and XP</a></li> <li><a href="http://www.oooninja.com/2008/02/office-compatibility-pack-review.html">Office Compatibility Pack Review</a></li> <li><a href="http://www.oooninja.com/2008/01/convert-openxml-docx-etc-in-linux-using.html">Convert OpenXML documents in Linux using command line using odf-converter</a></li> <li><a href="http://www.oooninja.com/2008/02/zamzarcom-docx-odt-converter-review.html">Review: Zamzar .docx to .odt Converter</a></li> <li><a href="http://www.oooninja.com/2008/01/openxml-translator-odf-converter-11.html">odf-converter 1.1 released </a></li> <li><a href="http://www.oooninja.com/2008/01/docx2rtf-docx-openxml-rtf-document.html">Review: docx2rtf Document Converter</a></li> </ul><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8544609315733972726-4436247510574195592?l=www.oooninja.com'/></div>Andrew Zhttp://www.blogger.com/profile/10108637160465346326noreply@blogger.com11