Getting Started
Pages 46
Clone this wiki locally
Overview
JODConverter, the Java OpenDocument Converter, converts documents between different office formats. It leverages Apache OpenOffice or LibreOffice, which provide arguably the best free import/export filters for OpenDocument and Microsoft Office formats available today.
JODConverter automates all conversions supported by OpenOffice/LibreOffice. Supported conversions include (but not limited to. All conversions supported by your OOo installation is supported by JODConverter):
Document Type | Input Format | Output Format |
---|---|---|
Text | DOC, DOCX, ODT, OTT, RTF, TEXT, etc. | DOC, DOCX, HTML, JPG, ODT, OTT, FODT, PDF, PNG, RTF, TXT, etc. |
Spreadsheet | CSV, ODS, OTS, TSV, XLS, XLSX, etc. | CSV, HTML, JPG, ODS, OTS, FODS, PDF, PNG, TSV, XLS, XLSX, etc. |
Presentation | ODP, OTP, PPT, PPTX, etc. | GIF, HTML, JPG, ODP, OTP, FODP, PDF, PNG, PPT, PPTX, BMP, etc. |
Drawing | ODG, OTG, etc. | GIF, JPG, ODG, OTG, FODG, PDF, PNG, SVG, TIF, VSD, BMP, etc. |
Other | HTML | DOC, DOCX, HTML, JPG, ODT, OTT, FODT, PDF, PNG, RTF, TXT, etc. |
JODConverter can be used in many different ways:
- As a Java library, embedded in your own Java application.
- As a command line tool, possibly invoked from your own scripts.
- As a simple web application: upload your input document, select the desired format and download the converted version.
Maven Setup
Add the following to your pom.xml:
<properties>
<jodconverter.version>4.4.0</jodconverter.version>
</properties>
<dependencies>
<dependency>
<groupId>org.jodconverter</groupId>
<artifactId>jodconverter-local</artifactId>
<version>${jodconverter.version}</version>
</dependency>
</dependencies>
Gradle Setup
Add the following to your build.gradle:
ext {
jodconverterVersion = 4.4.0
}
compile "org.jodconverter:jodconverter-local:$jodconverterVersion"
Whenever OpenOffice.org (OOo for short) is mentioned, this can generally be interpreted to include any office suite derived from OOo such as Apache OpenOffice and LibreOffice.