For summary of changes, please see below. This is a minor release.
You can get the jar at http://www.docx4java.org/docx4j/docx4j-3.3.1-beta.jar
Its a drop in replacement for the 3.3.0 jar. You'll need 3.3.0's dependencies on your classpath.
We're also offering this beta as a shaded jar (ie a jar containing docx4j and all its dependencies - see the output I've copied below); if this format is useful to you, please let us know! You can get that from http://www.docx4java.org/docx4j/docx4j- ... shaded.jar
For Maven users, 3.3.1-beta is also available at https://github.com/plutext/docx4j/tree/mvn-repo/
Using xml Syntax Highlighting
<groupId>org.docx4j</groupId>
<artifactId>docx4j</artifactId>
<version>3.3.1-beta</version>
<artifactId>docx4j</artifactId>
<version>3.3.1-beta</version>
Parsed in 0.000 seconds, using GeSHi 1.0.8.4
You'll need to add that repo to your POM, via something like:
Using xml Syntax Highlighting
<repositories>
<repository>
<id>github-docx4j</id>
<url>https://github.com/plutext/docx4j/tree/mvn-repo/</url>
</repository>
</repositories>
<repository>
<id>github-docx4j</id>
<url>https://github.com/plutext/docx4j/tree/mvn-repo/</url>
</repository>
</repositories>
Parsed in 0.000 seconds, using GeSHi 1.0.8.4
Or fork the source code from https://github.com/plutext/docx4j/tree/master then build your fork using mvn install
In the absence of issues causing delays, docx4j 3.3.1 will be released mid-August.
So please test it, and let us know whether you notice any issues which affect your use case.
Thanks .. Jason
Notable Changes in Version 3.3.1
---------------------------------
Contents lists are now of type ArrayListWml, in which parent is automatically set correctly. See https://github.com/plutext/docx4j/blob/ ... stWml.java
org.docx4j.anon: new package which converts a docx to lorem ipsum latin, and removes
other sensitive info, so the docx can safely be shared eg for tech support.
For this to work, you'll need to add a new dependency: http://search.maven.org/#artifactdetail ... C2.0%7Cjar
OpenDoPE: Two separate performance optimizations which substantially speed up large XML binding jobs. By traversing the XML data, manually calculate and cache XPaths (tested with 500,000 entries). Our strategy is to try the cache first (if enabled), then if there is a cache miss, use org.apache.xpath.CachedXPathAPI (the second optimization - CachedXPathAPI is quicker than default javax.xml.xpath.XPath implementations)
Dedicated parts for w15 CommentsExtended and People
Support anchor attributes wp14:anchorId and wp14:editId; children wp14:sizeRelH, wp14:sizeRelV
Support w:bdo and w:dir from ECMA 376 4ed
workaround for MOXy issue triggering pre-processing from binder: http://stackoverflow.com/questions/3722 ... not-binder
JAXB event handler: make shouldContinue false by default, mc Content pre-processing works in MOXy (for unmarshalling anyway, as distinct from binder)
unmarshall input stream: do mc pre-processing if necessary
New property docx4j.jaxb.marshal.canonicalize:
Whether to canonicalize during marshalling (defaults to false);
this is for aesthetic purposes: the Sun/Oracle JAXB reference implementation
writes a lot of unnecessary namespaces (each one in the JAXB context?).
- Code: Select all
[INFO] --- maven-shade-plugin:2.4.3:shade (default) @ docx4j ---
[INFO] Including org.plutext:jaxb-svg11:jar:1.0.2 in the shaded jar.
[INFO] Including net.engio:mbassador:jar:1.2.4.2 in the shaded jar.
[INFO] Including org.slf4j:slf4j-api:jar:1.7.21 in the shaded jar.
[INFO] Including org.slf4j:jcl-over-slf4j:jar:1.7.21 in the shaded jar.
[INFO] Including org.slf4j:slf4j-log4j12:jar:1.7.21 in the shaded jar.
[INFO] Including log4j:log4j:jar:1.2.17 in the shaded jar.
[INFO] Including org.apache.commons:commons-lang3:jar:3.4 in the shaded jar.
[INFO] Including commons-codec:commons-codec:jar:1.10 in the shaded jar.
[INFO] Including commons-io:commons-io:jar:2.4 in the shaded jar.
[INFO] Including org.apache.httpcomponents:httpclient:jar:4.5.2 in the shaded jar.
[INFO] Including org.apache.httpcomponents:httpcore:jar:4.4.4 in the shaded jar.
[INFO] Including commons-logging:commons-logging:jar:1.2 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-core:jar:2.7.3 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-databind:jar:2.7.3 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-annotations:jar:2.7.0 in the shaded jar.
[INFO] Including org.apache.xmlgraphics:xmlgraphics-commons:jar:2.1 in the shaded jar.
[INFO] Including org.apache.avalon.framework:avalon-framework-api:jar:4.3.1 in the shaded jar.
[INFO] Including org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1 in the shaded jar.
[INFO] Including xalan:xalan:jar:2.7.2 in the shaded jar.
[INFO] Including xalan:serializer:jar:2.7.2 in the shaded jar.
[INFO] Including net.arnx:wmf2svg:jar:0.9.8 in the shaded jar.
[INFO] Including org.antlr:antlr-runtime:jar:3.5.2 in the shaded jar.
[INFO] Including org.antlr:stringtemplate:jar:3.2.1 in the shaded jar.
[INFO] Including antlr:antlr:jar:2.7.7 in the shaded jar.
[INFO] Including com.google.guava:guava:jar:19.0 in the shaded jar.
[INFO] Including com.thedeanda:lorem:jar:2.0 in the shaded jar.