1
Docx4j - Getting Started
Contents
What is docx4j? ....................................................................................................................................... 3
What sorts of things can you do with docx4j? .......................................................................................... 4
Is docx4j for you? .................................................................................................................................... 4
docx4j.NET .............................................................................................................................................. 5
What Word documents does it support? ................................................................................................. 5
Handling legacy binary .doc files .............................................................................................................. 6
Getting Help: the docx4j forum ............................................................................................................... 6
Using docx4j via Maven ........................................................................................................................... 6
Using docx4j binaries ............................................................................................................................... 6
docx4j dependencies ............................................................................................................................... 7
slf4j ..................................................................................................................................................... 7
other dependencies ............................................................................................................................. 7
JDK versions ............................................................................................................................................ 8
A word about Jaxb ................................................................................................................................... 8
Docx4j source code ................................................................................................................................. 8
Javadoc ................................................................................................................................................... 9
Building docx4j from source .................................................................................................................... 9
Command line -via Maven ................................................................................................................... 9
Command line - via Ant........................................................................................................................ 9
Eclipse ................................................................................................................................................. 9
Using a different IDE? ........................................................................................................................ 10
Open an existing docx/pptx/xlsx document ........................................................................................... 10
OpenXML concepts ............................................................................................................................... 11
Specification versions ............................................................................................................................ 12
Architecture .......................................................................................................................................... 12
Jaxb: marshalling and unmarshalling ..................................................................................................... 14
Parts List................................................................................................................................................ 15
MainDocumentPart ............................................................................................................................... 17