Informatika Mihelac

Articles tagged with openoffice

July 13 2005 openoffice 2 comments

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.

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.

About

I am Bojan Mihelac and this blog is dedicated to share code, thoughts, tools and advices I came up with while working in Informatika Mihelac.

Contact: bmihelac@mihelac.org

RSS feedSubscribe to RSS Feed