itextPDF下载文件

下图是大概下载后的文件。

参考的文档有

https://www.cnblogs.com/shuilangyizu/p/5760928.html

https://blog.csdn.net/liqimo1799/article/details/55049211

https://blog.csdn.net/tanqian351/article/details/51201690

https://blog.csdn.net/cfup_less/article/details/82686426

下载并未采用模版的方式,模版中字体样式只能设置一种,该pdf下载,中英文的字体需要不同的设置。

同时,总页数的获取需要重写PdfPageEventHelper中的onEndPage方法,计算总页数所在位置行 x,y坐标后得出。并且只在第一页展示。

开启打怪升级之旅
原文地址:https://www.cnblogs.com/zhangliwei/p/10689375.html