A release candidate is available at https://docx4java.org/docx4j/docx4j-6.1 ... didate.jar
Please try it to confirm/verify it works for you, and provide feedback here.
From the changelog at https://github.com/plutext/docx4j/blob/ ... ANGELOG.md
Notable Changes in Version 6.1.0
IMPORTANT FIX: Force namespaces used in mc:choice to be declared top-level. If they aren't there, Word can't open the docx.
mc:Ignorable: support attribute in footnotes/endnotes, numbering, styles (already supported in main and headers/footers)
w14 namespace handling improvements: Don't drop these attributes in mc-preprocessor.xslt; Support w14:EG_RPrOpenType elements
PDF Converter now defaults to localhost endpoint to avoid information leakage. (controlled by docx4j property com.plutext.converter.URL) The localhost endpoint will only work if you download and install the converter there! If you choose to use converter-eval.plutext.com, please only use it for light testing purposes.
BookmarksIntegrity checking now part of docx4j proper; used before ToC updating
AttachTemplate now part of docx4j proper; method cloneAs
OpenDoPE finisher: optional step in which formatting can be applied (this is often neater than using conditional content controls just for formatting)
OpenDoPE RemovalHandler: new Quantifier.ALL_BUT_PLACEHOLDERS (ie remove content controls, but keep any placeholders inserted where there is empty content), ability to specify Quantifier via docx4j.properties; also ability to substitute your own RemovalHandler.xslt.
OpenDoPE: simplified component processing model [requires Enterprise]:
- components don't have to be at the top paragraph level of the content tree, BUT:
- component processing is now done before condition/repeat processing
- component processing is not recursive anymore