What is docx4j?
VERSION_17_0_3docx4j is an open source (Apache v2) library for creating, editing, and saving OpenXML "packages", including docx, pptx, and xlsx. It uses JAXB to create the Java representation of these files.
Key Capabilities:
- Open, create, and programmatically manipulate docx, pptx, and xlsx files.
- Document generation via variables, content control data binding, or
MERGEFIELD. - CustomXML binding (supporting pictures, rich text, checkboxes, OpenDoPE extensions for repeats & conditionals, and XHTML importing).
- Export to HTML.
- Export to PDF (using one of three available strategies).
- Produce/consume Word 2007's
xmlPackage(pkg) format. - Apply transforms and common filters.
- Font support including font substitution and use of embedded fonts.