Open Source Java Library for Spreadsheet Documents

Convert Excel files in Java applications via Open Source API.

Documents4J is an open-source Java API from converting Microsoft Excel to other fileformats. This is achieved by delegating the conversion to any native application which understands the conversion of the given file into the desired target format. The API offers two types of implementations local and remote. Using the local version document can be converted on the same machine which is cable of converting the requested file format. Using the Remote API, you send a document to the server using REST-API and server performs the requested conversion.  

Documents4J is tranparent and simple to use. Developers can work with local version of the API while development and the remote version can used when the developers publishes app on the production.

Previous Next

Getting Started with Documents4J

First of all, you need to create a copy of documents4j on your local machine. Simply clone documents4j's repository by using git or by cloning it directly on GitHub. Once the repository is cloned, you can build the project using Mave

Documents4J


git clone https://github.com/documents4j/documents4j.git
cd documents4j
mvn package
                        

Convert Microsoft Excel using Java

Documents4J is a fluent API for performing document conversion. The API does not expose any details of the backing converter implementation. To perform document conversion the API offers IConverter interface. Using this inteface you can convert Microsoft Excel file format to your desired file format. To find out supported converison fileformats you can query getSupportedConversion() method which will return the source and the target file formats.