Creating a DOCX

you might find this poi based library useful too

poi-tl (poi template language) is a Word template engine that creates awesome Word documents using templates and data .

it even supports markdown to word