A docx4j 3.3.0 release candidate is now available.
Please see below for notable changes, especially regarding PDF output.
You can get it at http://www.docx4java.org/docx4j/docx4j- ... 3.0-RC.zip
For Maven users, it is also available at https://github.com/plutext/docx4j/tree/mvn-repo/
You'll need to add that repo to your POM, via something like:
Or use the source code at https://github.com/plutext/docx4j/tree/VERSION_3_3_0
In the absence of issues causing delays, docx4j 3.3.0 will be released in 7 to 14 days.
So please test it, and let us know whether you notice any issues which affect your use case.
Thanks .. Jason
Notable Changes - PDF
XSL FO based PDF output moved to new/separate project docx4j-export-fo; default PDF converter changed from XSL FO + Apache FOP to Plutext's commercial PDF Converter. After careful consideration we made this change, since the quality/performance is so much better. If you want to stick with the existing XSL FO + Apache FOP PDF Conversion, no probs:- see below for how.
The instance at converter-eval.plutext.com is used by default, but you can (and should!) install it locally; installers are available at http://converter-eval.plutext.com/
To use your own instance, set docx4j property, eg:
If you want to use the existing XSL FO + Apache FOP PDF Conversion, just add docx4j-export-fo (+ deps) to your classpath. If these are present, docx4j will revert to the FO based conversion. These jars are in the zip file, in dir optional/export-fo and also in the github-docx4j maven repo.
Notable Changes - Other
Document protection (read only, track revisions etc) for docx/pptx/xlsx, with or without password. NB: Digital signature support is in Enterprise Ed. See further https://github.com/plutext/docx4j/blob/ ... tings.java and ProtectDocument.java
docx table of contents (TOC) generation and update migrated from Enterpise Ed. See org.docx4j.toc and the Toc* samples. The layout model in Plutext's PDF Converter (see above) will be used to calculate page numbers, unless docx4j-export-fo (+ deps) is on your path
For other notable changes, please see https://github.com/plutext/docx4j/blob/ ... ANGELOG.md