Jul 13

OpenOffice.org Beta Format Conversion

This Ant script converts OpenOffice.org documents saved with SRC680 build prior to m64 so they can be loaded into SRC680m64 and future builds.

This Ant script converts OpenOffice.org documents saved with SRC680 build prior to m64 so they can be loaded into SRC680m64 and future builds.

Download and Install

Download (.xml, 2.1 KB)

These script requires Apache Ant version 1.6 or higher and Apache Contribs Tasks.

Usage

Copy old OpenOffice.org documents to folder where build.xml script is and run ant in the folder.

ant

Folder "_converted" would be created with converted documents in it.

Always backup original files before processing!

How Script Works

  1. create new file as copy with extension ".odX" in floder "_converted" where X is a letter depending of OOo file type,

  2. unzip the sub documents "mimetype" and "META-INF/manifest.xml" from the new document,

  3. replace all occurencies of "x-vnd.oasis.openoffice" with "vnd.oasis.opendocument" in "mimetype" and "META-INF/manifest.xml"

  4. add "mimetype" and "META-INF/manifest.xml" back to the new file

For more info on conversion see 1.9 m65 Snapshot Release Notes.