Skip to content

Getting Started

sbraconnier edited this page Nov 30, 2018 · 7 revisions

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:

Document Type Input Format Output Format
Text DOC, DOCX, ODT, OTT, RTF, TEXT DOC, DOCX, HTML, ODT, OTT, PDF, PNG, RTF, TXT
Spreadsheet CSV, ODS, OTS, TSV, XLS, XLSX CSV, HTML, ODS, OTS, PDF, PNG, TSV, XLS, XLSX
Presentation ODP, OTP, PPT, PPTX HTML, ODP, OTP, PDF, PNG, PPT, PPTX, SWF
Drawing ODG, OTG ODG, OTG, PDF, PNG, SWF
Other HTML DOC, DOCX, HTML, ODT, OTT, PDF, PNG, RTF, TXT

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.2.2</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.2.2
}
compile "org.jodconverter:jodconverter-local:$jodconverterVersion"
You can’t perform that action at this time.