xwiki-attic/jodconverter


JODConverter automates document conversions using LibreOffice/OpenOffice.org

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.xwiki:jodconverter:jodconverter-core-3.1-xwiki'
	}
	dependencies {
		implementation("com.github.xwiki:jodconverter:jodconverter-core-3.1-xwiki")
	}
	<dependency>
	    <groupId>com.github.xwiki</groupId>
	    <artifactId>jodconverter</artifactId>
	    <version>jodconverter-core-3.1-xwiki</version>
	</dependency>

                            
    libraryDependencies += "com.github.xwiki" % "jodconverter" % "jodconverter-core-3.1-xwiki"
        
        

                            
    :dependencies [[com.github.xwiki/jodconverter "jodconverter-core-3.1-xwiki"]]
        
        

Readme


XWiki JODConverter

The XWiki project has forked the JODConverter project because it seems dead and we need to bring some fixes to it. We hope that someone from the JODConverter project will be able to apply our fixes at some point.

JODConverter

JODConverter (Java OpenDocument Converter) automates document conversions using LibreOffice or OpenOffice.org.

See the Google Code project for more info.

Build

In order to build the project you need to execute:

mvn clean install -DskipTests

If you want to run the unit tests you need to:

  • Download the libsigar binary corresponding to your OS (e.g. libsigar-amd64-linux.so)
  • Create the jodconverter-core/lib folder and put the libsigar binary there
  • mvn clean install -Djava.library.path=lib
  • Note that currently the conversion to/from sxw format is failing

      Caused by: com.sun.star.task.ErrorCodeIOException: SfxBaseModel::impl_store <file:///tmp/test311448721067585328.sxw> failed: 0x81a