Over a million developers have joined DZone.

docx4j 2.8.0 released


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.



{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}