Converts XHTML to OpenXML WordML (docx) using docx4j; there is also some support for converting to pptx.
docx4j is licensed under ASLv2. This project is licensed under LGPL v2.1 (or later), which is the license used by openhtmltopdf (the main dependency). See legals/NOTICE for details.
In Maven this is https://central.sonatype.com/artifact/org.docx4j/docx4j-ImportXHTML-core
To use docx4j-ImportXHTML, also add the dep corresponding to the JAXB implementation you wish to use: