Contents
导出docx
docx 格式参考
https://juejin.cn/post/7166821284087595038
https://learn.microsoft.com/en-us/openspecs/office_standards/ms-odrawxml/bdc95a77-957c-40f8-9ef2-47cbcdeb8af2
http://www.datypic.com/sc/ooxml/ss.html
方案一: 使用poi工具,循环XWPFParagraph,XWPFRun的方式,查找替换docx中对应的内容
https://www.cnblogs.com/MyReM/p/9109919.html
https://stackoverflow.com/questions/22268898/replacing-a-text-in-apache-poi-xwpf/22269035#22269035
https://deepoove.com/poi-tl/apache-poi-guide.html
https://xie.infoq.cn/article/935345bfee8d3a034e86b2a84
https://cloud.tencent.com/developer/article/1941384
https://poi.apache.org/components/document/quick-guide-xwpf.html
方案二: 使用freemarker+zip,freemarker修改document.xml模板内容,再添加一些必要的文件,zip为一个文件,改后缀为docx
https://my.oschina.net/u/3737136/blog/2958421?tdsourcetag=s_pcqq_aiomsg
https://zhuanlan.zhihu.com/p/242531824
https://github.com/WhenCoding/coder-xiaoming/blob/master/src/main/java/com/xm/coder/util/WordUtil.java
https://freemarker.apache.org/docs/
https://blog.51cto.com/u_16175523/6777408
发表回复