docx4j v6.0.0 Release Notes

Release Date: 2018-07-22 // almost 6 years ago
  • ๐Ÿ‘ Docx4j 6.x will be the last series supporting Java 6.
    ๐Ÿš€ (docx4j 7.x, when released, will require Java 7+)

    ๐Ÿ†• New dependency commons-compress used for zip/unzip. Most other โšก๏ธ deps updated to last version supporting Java 6.

    ๐Ÿ‘Œ Support for Java 9 and 10 (see notes in README for use in Eclipse)

    • Maven profiles for java 9 and 10
    • Maven pom now specifies source & target 1.6 (previously 1.5)

    Preserve mc:AlternateContent in a run. Previously, this would have caused mc-preprocessor to be invoked, selecting one of the pieces of content.

    Object model for wps http://schemas.microsoft.com/office/word/2010/wordprocessingShape

    Content Control databinding (and OpenDoPE)

    • โšก๏ธ UpdateXmlFromDocumentSurface: Copy content control content back to the custom XML part, like Microsoft Word does for a content control which has a w:databinding element
    • ๐Ÿ‘Œ improvements to migration (from eg VariableReplace)
    • ๐Ÿ‘ better support for binding standardised Answers format
    • various other improvement

    Write docx4j version as XML comment in MainDocument part.

    New properties docx4j.openpackaging.parts.MAX_BYTES.unzip.error and docx4j.openpackaging.parts.MAX_BYTES.unmarshal.error which can be ๐Ÿ‘ป set to positive values to have docx4j throw a PartTooLarge exception if a part is larger than the set value.