Docx4j with grails. Convert HTML to word document

假装没事ソ 提交于 2020-01-14 06:23:09

问题


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.


回答1:


You can use docx4j-ImportXHTML; see the examples.



来源:https://stackoverflow.com/questions/23467369/docx4j-with-grails-convert-html-to-word-document

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!