ODT2HTML --- odt to html translator.
Purpose: convert texts from OpenDocument format (odt) to html.
Invocation:
from command line:
java -jar odt2html-1.1.jar [--external-xslt file] odt-input-file html-output-file.
from ant script:
define task:
<taskdef name="odt2html" classname="ua.gradsoft.odt2html.Odt2HtmlAntTask">
<classpath>
<pathelement location="${odt2htmlhome}/odt2html-1.1.jar"/>
</classpath>
</taskdef>
of course, you can just place odt2html.jar in ant lib and exclude classpath from task definition;
use task, for example as follows:
<target name="html">
<odt2html input=”doc/mydocument.odt” output=”doc/mydocument.html />
</target>
ie, odt2html element must have next attributes:
input -- name of input odt file to process;
output -- name of output html file;
externalXslt (optional) – name of external xsl style sheet instead default.:
Dependencies: JDK-1.6 (can be compiled to 1.5 or 1.4 if needed)
If you use automatic dependency resolvers, than you can use next artifacts descriptions:
for ivy:
<dependency organization=”ua.gradsoft” name=”odt2html” rev=”1.1”
url=”odt2html.gradsoft.ua/files/odt2html-1.1.jar” />
for maven:
<dependency>
<groupId>ua.gradsoft</groupId>
<artifactId>odt2html</artifactId>
<version>1.1</version>
</dependency>
and store our artifacts in you repository.
Notes: ODT2HTML itself is based on ODFTools from opendocumentfellowship.com: It is less or more direct translation of appropriative perl script to java. Also some internal code is derived from book “OASIS OpenDocument Essentials” by David Eisenberg.
License: GPL
Author: <Ruslan@Shevchenko.Kiev.UA> Grad-Soft Ltd.
Source distributive: http://odt2html.gradsoft.ua/files/odt2html-src-1.1.tar.gz;
Just jar: http://odt2html.gradsoft.ua/files/odt2html-1.1.jar;