Jason has posted 1 posts at DZone. View Full User Profile

docx4j 2.8.0 released

  • submit to reddit

docx4j 2.8.0 (ASL v2) - used for docx/pptx/xlsx manipulation - has just been released, and is in Maven Central

The headline feature is XHTML to docx conversion, formatting it based on the CSS.  Images and tables are supported.  See ConvertInXHTMLDocument and ConvertInXHTMLFragment for example of converting entire XHTML documents and fragments respectively.

Also news is that the source code has just moved from svn to GitHub: https://github.com/plutext/docx4j; here's how to setup docx4j source code

There is heaps of sample code here (freshly reviewed for 2.8.0). If you are interested in using docx4j, grab a copy from the release link above, then see the "Getting Started" guide, in html docx or pdf flavours.


Published at DZone with permission of its author, Jason Harrop.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)