Articles tagged with openoffice
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
create new file as copy with extension ".odX" in floder "_converted" where X is a letter depending of OOo file type,
unzip the sub documents "mimetype" and "META-INF/manifest.xml" from the new document,
replace all occurencies of "x-vnd.oasis.openoffice" with "vnd.oasis.opendocument" in "mimetype" and "META-INF/manifest.xml"
- add "mimetype" and "META-INF/manifest.xml" back to the new file
For more info on conversion see 1.9 m65 Snapshot Release Notes.
I am Bojan Mihelac and this blog is dedicated to share code, thoughts, tools and advices I came up with while working in