docx4j-ImportXHTML-3.2.0-beta2 is available at http://www.docx4java.org/docx4j/docx4j- ... -beta2.jar
Notable Changes
--------------------
HTML 5 figure/figcaption converted to Figure SEQ field
Support for applying Word heading styles to heading (h1, h2, h3..) elements
FontHandler, which creates default font mappings
docx4j-ImportXHTML.properties
---------------------------------------
You can set the following properties in docx4j-ImportXHTML.properties:
docx4j-ImportXHTML.fonts.default.serif=Times New Roman
docx4j-ImportXHTML.fonts.default.sans-serif=Arial
docx4j-ImportXHTML.fonts.default.monospace=Courier New
# If true (default is false), h1, h2 etc will be converted to corresponding Word style,
# UNLESS:
# 1. we're set to use CLASS_TO_STYLE_ONLY or CLASS_PLUS_OTHER, and
# 2. @class maps to some other paragraph style
docx4j-ImportXHTML.Element.Heading.MapToStyle=true