Page 1 of 1

Docx4j 11.4.8 released for Java 11

PostPosted: Wed Sep 14, 2022 5:16 pm
by jason
docx4j 11.4.8 is now available in Maven Central. For downloads, go to https://www.docx4java.org/downloads.html

v11.4 is where active development is taking place.

The logic behind the version number is as follows:
- its docx4j 11 since it targets Java 11; If you are not using Java 11 or later, you should stick with docx4j 8.3 (compiled for Java 8).
- it is docx4j 11.4, not 11.3, since this release uses jakarta.xml.bind (as opposed to the previous javax.xml.bind)

Since this release uses jakarta.xml.bind, rather than javax.xml.bind, if you have existing code which imports javax.xml.bind, you'll need to search/replace across your code base, replacing javax.xml.bind with jakarta.xml.bind. You'll also need to replace your JAXB jars (which Maven will do for you automatically; otherwise get them from the relevant zip file).

This is a minor upgrade from 11.4.7:

Alter convertAltChunks interface:
- this method now does the conversion in situ (ie rather than cloning the pkg), for efficiency (eg where the docx contains many altChunks including in its headers/footers).

- Now supports .mht altChunks (as produced by BIRT) via docx4j-ImportXHTML (v11.4.8)

- This method now does not convert docx altChunks. Convert docx altChunks has always required the MergeDocx component of Docx4j Enterprise; users wishing to convert docx altChunks should use that directly.

Some other minor changes; please see https://github.com/plutext/docx4j/commi ... ION_11_4_8

To use docx4j 11.4.8 via Maven, add either docx4j-JAXB-ReferenceImpl or docx4j-JAXB-MOXy to your pom. https://search.maven.org/search?q=g:org.docx4j (and make sure your code imports jakarta.xml.bind, not javax.xml.bind)

docx4j 11.4.8 source code can be found in the default branch https://github.com/plutext/docx4j/