Over a million developers have joined DZone.

docx4j 2.8.0 released

DZone's Guide to

docx4j 2.8.0 released

Free Resource

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.



Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


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

{{ parent.tldr }}

{{ parent.urlSource.name }}