Q:

Fill HTML content to Docx template

I'm working on a project which aims to gather survey from users and fill them into our Word template.
The user input is in HTML format with inline style and inline images ( tag with base64 or image link source), and I want to fill them into our existing survey template which is in Docx format.
I have tried multiples library including:

ruby/sablon
java/docx4j
nodejs/docxtemplater (raw xml feature)

But none of them seems to match with what I need (maybe I missed it?).
Is there any way to achieve what I want to do? I'm open to any kind of tools or programming languages.

A:

docx4j's content control data binding can bind escaped XHTML; it uses docx4j-ImportXHTML to convert the escaped XHTML to real docx content.  You can Google 'OpenDope' for more.

