1.FreeMarker generates a word document through the xml structure. What is opened on the mobile side is a xml document. PC opens normally, but on PC, use office or wps to open the document and save it as a new word document. It is normal to open it on the mobile side.
2 try to use the JACOB method, author: https://www.zhihu.com/questio., However, the parsing has failed all the time, and secondly, this method can only be operated on windows, and it is not conducive to the operation on the subsequent migration server.
3. There are many files involved, can you solve this problem by saving as a new word document?
4. If the third point is not satisfied, is there a better way? It is best to generate it through a template.