"I've had more success with docx4j than anything else"
"congratulations for the great job, I can do things that I cannot with POI or OpenOffice? API !!"
"Now armed with docx4j, it was much easier to use the approach I envisioned to generate Word documents."
"I have been using docx4j over the last month on a new product, and I'm impressed and thankful for how much docx4j does."
"This library gives you everything you need to create/load/edit/write Word docx documents from Java, and comes with a Maven repo, online Javadoc, and nice set of Sample code. What more could you ask for? :-)"
"With docx4j we analyze and enrich each paragraph of a law project containing more than 3000 paragraphs and this is done in less than 10 seconds."
"thanks a lot for your good work. docx4j is easy to use and I like it."
Welcome to docx4j
docx4j is a Java library for creating and manipulating Microsoft Open XML (Word docx, Powerpoint pptx, and Excel xlsx) files.
It is similar to Microsoft's OpenXML SDK, but for Java.
docx4j uses JAXB to create the in-memory object representation.
It is available under the Apache License (v2).
docx4j was created by Plutext Pty Ltd in 2008 - using OpenXML4J for the OPC piece. Plutext still drives the project, but since then docx4j has benefited from contributions from many individuals. The contributors are listed in docx4j's pom.xml.
News
15 May 2013: a single A4 page reference/overview of docx4j aka a cheat sheet is now available, in PDF or PNG format.
14 May 2013: docx4j online webapp which can generate docx4j code for you
7 Dec 2012: OpenLogic has certified docx4j and can provide support
30 September 2012: docx4j 2.8.1 released. See details
24 May 2012: docx4j 2.8.0 released. See related post
18 May 2012: docx4j source code is now on GitHub. See related post
14 October 2011: docx4j v2.7.1 released. See related post
8 July 2011: docx4j v2.7.0 released. See related post
18 Nov 2010: docx4j v2.6.0 is out (includes pptx4j and xlsx4j). It includes OpenDoPE ("Open Document Processing Ecosystem") v2.2 implementation for generating documents using repeats, conditionals and optionally, component inclusion. Using a content control databinding is a much better approach than search/replace for magic strings, or use of legacy fields!
Upcoming talks
Linda Van der pal at Devoxx UK, 26-27 March 2013, [ http://http://www.devoxx.com/display/UK13/Docx4j+-+Generating+Word+and+Excel+files Docx4j Generating Word and Excel files]
Recent talks
Devoxx, Belgium, Nov 2012, [ http://www.devoxx.com/display/DV12/Docx4j+-+Generating+Word+and+Excel+files Docx4j Generating Word and Excel files]
Open Source Developers Conference, Sydney, Dec 2012 Generating documents - tools and techniques
Download
See downloads.
Getting started
A single A4 page reference/overview of docx4j aka a cheat sheet is available, in PDF or PNG format. It condenses much of the Getting Started guide to a single page.
Our Getting Started guide is available in HTML and PDF.
The HTML version is also available in the following languages (these translations are from April 2010, so they are a bit dated now):
Articles about docx4j
lvdpal's Creating Word documents with Docx4j, which covers tables in some detail
Jos Dirksen's Create complex Word (.docx) documents programatically with docx4j
Glen Smith's Creating Word docx documents dynamically from Grails (or Java)
Свое представление (view) в Spring MVC (Russian)
Thanks people for taking the time to write these articles :-). Please let me know of any others.
