Piyusha Jadhav
Piyusha Jadhav

Reputation: 141

Docx4j with grails. Convert HTML to word document

I'm using Docx4j 3.1.0 with Xalan 2.7.1 in grails 2.3.7. Here I've done the integration of docx4j with grails and I'm able to generate word document. But I want pass a gsp or html template to the Docx4j and generate word document. Is it possible ? And if yes, how to do it? As well as how to pass image which can be displayed in document.

Upvotes: 0

Views: 1755

Answers (1)

JasonPlutext
JasonPlutext

Reputation: 15878

You can use docx4j-ImportXHTML; see the examples.

Upvotes: 1

Related Questions