docx4j 11.5.1 and 8.3.1 are now available in Maven Central. For downloads, go to https://www.docx4java.org/downloads.html
w16sdtfl has started to show up in Word releases, despite not yet being specified in [MS-DOCX]. So the immediate driver for these releases is to ensure the namespace corresponding to the w16sdtfl is declared when docx4j manipulates a docx containing that prefix (which will be the case for documents edited in Word after the relevant update is pushed by Microsoft). Word writes the w16sdtfl namespace prefix to @mc:Ignorable in the MDP, and Word requires all namespaces listed there to also be declared.
Thanks to balajiasokkumar who raised this issue (#601), and others listed in the CHANGELOG on GitHub who contributed to these releases.
These releases also include the following improvements:
Changes in Version 11.5.1 and 8.3.13
- Add xmlns:w16sdtfl="http://schemas.microsoft.com/office/word/2024/wordml/sdtformatlock". w16sdtfl has started to show up in Word releases, despite not yet being specified in [MS-DOCX]. Word writes the w16sdtfl namespace prefix to @mc:Ignorable in the MDP, so Word requires the namespace to also be declared.
- AcceptChanges: Mimic Word's table deletion behaviour
- Numbering - fix NumStyleLink handling
- Take NDP into account in applying indent
- Avoid "Premature end of file" when using Binder with MOXy JAXB (and docx has no AlternateContent).
- Bump commons-compress from 1.26.1 to 1.27.1
- new interface PackageTransformer (11.5.1 only)
- Fix Chart*Parts constructor to be consistent with other Parts
- Miscellaneous small fixes (some not backported to 8.3.13)