How to open and manipulate Word document/template in Java?

前端 未结 5 1011
日久生厌
日久生厌 2020-12-13 20:35

I need to open a .doc/.dot/.docx/.dotx (I\'m not picky, I just want it to work) document, parse it for placeholders (or something similar), put my own data, an

5条回答
  •  失恋的感觉
    2020-12-13 21:06

    I have recently dealt with similar problem: "A tool which accepts a template '.docx' file, processes the file by evaluation of passed parameter context and outputs a '.docx' file as the result of the process."

    finally god brought us scriptlet4dox :). the key features for this product is: 1. groovy code injection as scripts in template file (parameter injection, etc.) 2. loop over collection items in table

    and so many other features. but as I checked the last commit on the project is performed about a year ago, so there is a probability that the project is not supported for new features and new bug-fixes. this is your choice to use it or not.

提交回复
热议问题