docx4j 8.3.3 is now in Maven Central. Being in the 8.x series, minimum supported Java version is 8.0.
This is a minor release, with the most notable change being to docx to PDF via XSL FO:
Reworked FOP configuration:
- new property docx4j.convert.out.fo.hyphenate must be set to true for hyphenation to occur
- baseURI can be configured at docx4j.convert.out.fop.FopConfParser.defaultBaseURI; it now defaults to the current directory (".")
- you can set your own custom resource resolver if necessary
If you are using this in your code, you may need to make some minor changes to how it is invoked; see the example
at https://github.com/plutext/docx4j/blob/ ... .java#L170
We also reinstated Panose support, which is required for best matching font mapper to work correctly (the best matching font mapper is most useful on Linux or OSX; on Windows you'd use the identity mapper). To use this, you'll first need to delete .docx4j/fop-fonts.cache to force docx4j to re-read the fonts
We also bumped various deps.
To use docx4j 8.3.3 via Maven, just add one and only one of docx4j-JAXB-Internal, docx4j-JAXB-MOXy,
or docx4j-JAXB-ReferenceImpl to your pom. https://search.maven.org/search?q=g:org.docx4j
Otherwise, see https://www.docx4java.org/downloads.html