Registry / serialization / docx4j

docx4j

JSON →
library6.1.2javamavenunverified

A Java library for creating and manipulating Office Open XML files (docx, pptx, xlsx).

<dependency> <groupId>org.docx4j</groupId> <artifactId>docx4j</artifactId> <version>6.1.2</version> </dependency>
INSTALL
IMPORT
SIG · DOCX4J
D
docx4j
serializationjavav6.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WordprocessingMLPackage
org.docx4j.openpackaging.packages.WordprocessingMLPackage

Minimal usage to create a simple DOCX document.

import org.docx4j.openpackaging.packages.WordprocessingMLPackage; public class Example { public static void main(String[] args) throws Exception { WordprocessingMLPackage wordPackage = WordprocessingMLPackage.createPackage(); wordPackage.getMainDocumentPart().addParagraphOfText("Hello World"); wordPackage.save(new java.io.File("hello.docx")); } }
Debug
Known issues
breakingVersion 6.1.2 may have breaking changes from earlier versions; check migration guides.
fix
Review the docx4j migration notes when upgrading from older versions.
affects: 6.1.2
Upgrade
Version history
6.1.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
docx4j — mvn dependency:get docx4j · libregistry