If you only consider docx, you can convert the file into zip and then decompress it. Find the xml part and replace it with a template. It will definitely be faster than jacob and the like
If it is doc, I personally think there is no solution and the cost of studying binary is too high
I’ve made one before. Edit the word format first, and then save it as xml format. Then open it with Notepad or Notepad++, the latter is recommended because regular expressions can be used. Then replace the empty position where you want to fill in the content with ${parameter}. Then use freemarker to brush data inside. Very fast.
If you only consider docx, you can convert the file into zip and then decompress it. Find the xml part and replace it with a template. It will definitely be faster than jacob and the like
If it is doc, I personally think there is no solution and the cost of studying binary is too high
I’ve made one before. Edit the word format first, and then save it as xml format. Then open it with Notepad or Notepad++, the latter is recommended because regular expressions can be used. Then replace the empty position where you want to fill in the content with ${parameter}. Then use freemarker to brush data inside. Very fast.
Use OOXML format