java编辑word可用方法

1、freemarker:

 

2、POI:对于doc和docx要写两种不同的代码

参考:

①https://blog.csdn.net/QQ578473688/article/details/72082085?locationNum=15&fps=1

②https://blog.csdn.net/u012775558/article/details/79678701

3、pageoffice:收费......

控件、demo:http://www.zhuozhengsoft.com/dowm/

参考:https://blog.csdn.net/qq_29897369/article/details/78407111

 

 

4、openoffice+JODConverter

 

5、itext: 封装工具类,使用起来确实挺方便,但是导出的word文档在细节方面很难达到要求,比如:字体、行距、字体间距、首行缩进等。

 

6、jacob:只支持windows系统,并且要在服务器安装office

参考:https://blog.csdn.net/m0_37568521/article/details/78545887

 

7、java2doc:对jacob的封装

 

 

下载jar包:

http://maven.ibiblio.org/maven2/

 

 

 

 

https://blog.csdn.net/yjclsx/article/details/51441632

猜你喜欢

转载自blog.csdn.net/qq_36987708/article/details/85319612
今日推荐