How to edit MS Word documents using Java?

前端 未结 4 1480
野趣味
野趣味 2020-12-21 20:43

I do have few Word templates, and my requirement is to replace some of the words/place holders in the document based on the user input, using Java. I tried lot of libraries

4条回答
  •  别那么骄傲
    2020-12-21 21:26

    Try Apache POI. POI can work with doc and docx, but docx is more documented therefore support of it better.

    UPD: You can use XDocReport, which use POI. Also I recomend to use xlsx for templates because it more suitable and more documented

提交回复
热议问题