plutext/docx4j
JAXB-based Java library for Word docx, Powerpoint pptx, and Excel xlsx files observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5227
- days_rel: n/a
- days_push: 7
- n_releases_24m: 0
Adoption not part of the score
2380 stars · 1231 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
docx4j is an open-source (Apache v2) Java library for creating, editing, and saving Microsoft OpenXML packages, including Word docx, PowerPoint pptx, and Excel xlsx files, using JAXB for the in-memory object representation. It offers power at the file-format level: document generation via data binding or MERGEFIELD, CustomXML binding, transforms, and export to HTML or PDF.
Use cases
- generate word documents from templates in java
- read and edit docx files programmatically
- convert docx to pdf in java
- mail merge into docx templates with MERGEFIELD or content controls
- create or modify powerpoint pptx presentations from java
- manipulate excel xlsx workbooks from java
- export word documents to html
When to choose
- You need format-level control over OpenXML documents from Java - anything the file format supports can be done
- You need document generation via variable binding, content controls, or MERGEFIELD with repeats and conditionals
- You need docx-to-PDF or docx-to-HTML export without driving a full Office installation
- You are on Java 11+ and want an actively maintained OpenXML library with JPMS modularised releases
When to avoid
- You are not on the JVM - this is a Java library, similar to Microsoft's OpenXML SDK but for Java
- You want a simple high-level API and are unwilling to learn JAXB and the Open XML file structure
- You are stuck on legacy Java 8 - docx4j-8 is unsupported
- You need only trivial text extraction where a lighter-weight parser would suffice
Facets
library · maturity active
parser templating pdf files pdf developer-tools spreadsheets jvm cross-platform docx pptx xlsx openxml ooxml jaxb word powerpoint excel document-generation mail-merge java html-export office-documents
2 sources
- readme: https://github.com/plutext/docx4j · fetched 2026-08-28 · 47fe6ecc3830
- homepage: https://www.docx4java.org/ · fetched 2026-08-29 · 5e6347ff6fc9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| plutext/docx4j | main | 77 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem