Convert HTML to DOCX

寵の児 提交于 2019-12-02 01:58:53
Alex Tape

This is not the complete example, is it? Just take a look at ConvertInXHTMLFile.java from docx4j examples.

IMHO you are missing basic parts of the procedure. Furthermore, this topic has been discussed already:

Convert html to doc in java

How to convert HTML to a Microsoft Word document ?

Convert HTML to Microsoft Word Document in Java

how to convert HTML to .docx using docx4j?

nanosoft

check code here. Api used is docx4j-ImportXHTML. Code is simple to follow. Just pass on your xhtml to api as in code and it will do the needful.

I had the same problem, Replace your xhtmlrenderer-1.0.0 jar file with version 3.0.0 . This is Maven Repository link

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