docx4j component
/projects/docx4j
News
docx4j v2.5.0 is out. Includes pptx4j.
xlsx4j is in svn.
Purpose
docx4j is our Java library for manipulating Microsoft Open XML(Word docx, Powerpoint pptx, and Excel xlsx) files. It uses JAXB to create the in-memory representation.
It is available under the Apache License (v2).
Getting started
We have a Getting Started guide, in HTML and PDF.
The HTML version is also available in the following languages:
Download
A nightly build can be found here (built for Java 1.5+).
Otherwise, you can set up your own development environment from scratch.
Requirements and Dependencies
You currently need to be using Java 1.5+. See here regarding issues with 1.4, which retrotranslator can reportedly solve.
docx4j relies on quite a few third party jar files. We are grateful these are available. Please see here or better here for details.
Heritage
This library is based originally on OpenXML4J, and a number of its source files retain that project's copyright notice. We gratefully acknowledge OpenXML4J's work, and encourage you to use it directly or via Apache POI, especially if you are only working with spreadsheets. Here is a stab at some of the differences.
Keywords
docx java, Office Open XML, OpenXML, ooxml, WordML, WordprocessingML
