文件名称:pdf-kit-master
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2017-11-14
- 文件大小:
- 24.38mb
- 下载次数:
- 0次
- 提 供 者:
- pp9***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一、需求说明:
根据业务需要,需要在服务器端生成可动态配置的PDF文档,方便数据可视化查看。
二、解决方案:
iText+FreeMarker+JFreeChart生成可动态配置的PDF文档
iText有很强大的PDF处理能力,但是样式和排版不好控制,直接写PDF文档,数据的动态渲染很麻烦。
FreeMarker能配置动态的html模板,正好解决了样式、动态渲染和排版问题。
JFreeChart有这方便的画图API,能画出简单的折线、柱状和饼图,基本能满足需要。
三、实现功能:
1、能动态配置PDF文档内容
2、能动态配置中文字体显示
3、设置自定义的页眉页脚信息
4、能动态生成业务图片
5、完成PDF的分页和图片的嵌入(Requirements descr iption:
According to the needs of business, it is necessary to generate dynamically configured PDF documents on the server side to facilitate data visualization.
Two, solutions:
IText+FreeMarker+JFreeChart generates dynamically configured PDF documents
IText has very powerful PDF processing ability, but the style and typesetting are not good control, direct writing PDF document, data dynamic rendering is very troublesome.
FreeMarker can configure dynamic HTML templates, just to solve the style, dynamic rendering and typesetting problems.
JFreeChart has the convenient drawing API, it can draw a simple line, column and pie chart, basically meet the needs.
Three, realize the function:
1. Dynamically configure the content of PDF documents
2, dynamic configuration of Chinese font display
3, set custom header header footer information
4, can dynamically generate business pictures
5. Complete the pagination and image embedding of PDF)
根据业务需要,需要在服务器端生成可动态配置的PDF文档,方便数据可视化查看。
二、解决方案:
iText+FreeMarker+JFreeChart生成可动态配置的PDF文档
iText有很强大的PDF处理能力,但是样式和排版不好控制,直接写PDF文档,数据的动态渲染很麻烦。
FreeMarker能配置动态的html模板,正好解决了样式、动态渲染和排版问题。
JFreeChart有这方便的画图API,能画出简单的折线、柱状和饼图,基本能满足需要。
三、实现功能:
1、能动态配置PDF文档内容
2、能动态配置中文字体显示
3、设置自定义的页眉页脚信息
4、能动态生成业务图片
5、完成PDF的分页和图片的嵌入(Requirements descr iption:
According to the needs of business, it is necessary to generate dynamically configured PDF documents on the server side to facilitate data visualization.
Two, solutions:
IText+FreeMarker+JFreeChart generates dynamically configured PDF documents
IText has very powerful PDF processing ability, but the style and typesetting are not good control, direct writing PDF document, data dynamic rendering is very troublesome.
FreeMarker can configure dynamic HTML templates, just to solve the style, dynamic rendering and typesetting problems.
JFreeChart has the convenient drawing API, it can draw a simple line, column and pie chart, basically meet the needs.
Three, realize the function:
1. Dynamically configure the content of PDF documents
2, dynamic configuration of Chinese font display
3, set custom header header footer information
4, can dynamically generate business pictures
5. Complete the pagination and image embedding of PDF)
相关搜索: java根据模板动态生成PDF文件
(系统自动生成,下载前可以参看下载内容)
下载文件列表
pdf-kit-master
pdf-kit-master\.gitignore
pdf-kit-master\README.md
pdf-kit-master\pom.xml
pdf-kit-master\src
pdf-kit-master\src\main
pdf-kit-master\src\main\java
pdf-kit-master\src\main\java\pdf
pdf-kit-master\src\main\java\pdf\kit
pdf-kit-master\src\main\java\pdf\kit\component
pdf-kit-master\src\main\java\pdf\kit\component\PDFHeaderFooter.java
pdf-kit-master\src\main\java\pdf\kit\component\PDFKit.java
pdf-kit-master\src\main\java\pdf\kit\component\builder
pdf-kit-master\src\main\java\pdf\kit\component\builder\HeaderFooterBuilder.java
pdf-kit-master\src\main\java\pdf\kit\component\builder\PDFBuilder.java
pdf-kit-master\src\main\java\pdf\kit\component\chart
pdf-kit-master\src\main\java\pdf\kit\component\chart\Line.java
pdf-kit-master\src\main\java\pdf\kit\component\chart\LineChart.java
pdf-kit-master\src\main\java\pdf\kit\component\chart\impl
pdf-kit-master\src\main\java\pdf\kit\component\chart\impl\DefaultLineChart.java
pdf-kit-master\src\main\java\pdf\kit\exception
pdf-kit-master\src\main\java\pdf\kit\exception\BaseException.java
pdf-kit-master\src\main\java\pdf\kit\exception\FreeMarkerException.java
pdf-kit-master\src\main\java\pdf\kit\exception\PDFException.java
pdf-kit-master\src\main\java\pdf\kit\util
pdf-kit-master\src\main\java\pdf\kit\util\FontUtil.java
pdf-kit-master\src\main\java\pdf\kit\util\FreeMarkerUtil.java
pdf-kit-master\src\test
pdf-kit-master\src\test\java
pdf-kit-master\src\test\java\pdf
pdf-kit-master\src\test\java\pdf\kit
pdf-kit-master\src\test\java\pdf\kit\ReportKit360.java
pdf-kit-master\src\test\java\pdf\kit\TemplateBO.java
pdf-kit-master\src\test\resources
pdf-kit-master\src\test\resources\fonts
pdf-kit-master\src\test\resources\fonts\SIMLI.TTF
pdf-kit-master\src\test\resources\fonts\ping_fang_bold.ttf
pdf-kit-master\src\test\resources\fonts\ping_fang_light.ttf
pdf-kit-master\src\test\resources\fonts\ping_fang_regular.ttf
pdf-kit-master\src\test\resources\templates
pdf-kit-master\src\test\resources\templates\hello.ftl
pdf-kit-master\src\test\resources\templates\report_template.ftl
pdf-kit-master\.gitignore
pdf-kit-master\README.md
pdf-kit-master\pom.xml
pdf-kit-master\src
pdf-kit-master\src\main
pdf-kit-master\src\main\java
pdf-kit-master\src\main\java\pdf
pdf-kit-master\src\main\java\pdf\kit
pdf-kit-master\src\main\java\pdf\kit\component
pdf-kit-master\src\main\java\pdf\kit\component\PDFHeaderFooter.java
pdf-kit-master\src\main\java\pdf\kit\component\PDFKit.java
pdf-kit-master\src\main\java\pdf\kit\component\builder
pdf-kit-master\src\main\java\pdf\kit\component\builder\HeaderFooterBuilder.java
pdf-kit-master\src\main\java\pdf\kit\component\builder\PDFBuilder.java
pdf-kit-master\src\main\java\pdf\kit\component\chart
pdf-kit-master\src\main\java\pdf\kit\component\chart\Line.java
pdf-kit-master\src\main\java\pdf\kit\component\chart\LineChart.java
pdf-kit-master\src\main\java\pdf\kit\component\chart\impl
pdf-kit-master\src\main\java\pdf\kit\component\chart\impl\DefaultLineChart.java
pdf-kit-master\src\main\java\pdf\kit\exception
pdf-kit-master\src\main\java\pdf\kit\exception\BaseException.java
pdf-kit-master\src\main\java\pdf\kit\exception\FreeMarkerException.java
pdf-kit-master\src\main\java\pdf\kit\exception\PDFException.java
pdf-kit-master\src\main\java\pdf\kit\util
pdf-kit-master\src\main\java\pdf\kit\util\FontUtil.java
pdf-kit-master\src\main\java\pdf\kit\util\FreeMarkerUtil.java
pdf-kit-master\src\test
pdf-kit-master\src\test\java
pdf-kit-master\src\test\java\pdf
pdf-kit-master\src\test\java\pdf\kit
pdf-kit-master\src\test\java\pdf\kit\ReportKit360.java
pdf-kit-master\src\test\java\pdf\kit\TemplateBO.java
pdf-kit-master\src\test\resources
pdf-kit-master\src\test\resources\fonts
pdf-kit-master\src\test\resources\fonts\SIMLI.TTF
pdf-kit-master\src\test\resources\fonts\ping_fang_bold.ttf
pdf-kit-master\src\test\resources\fonts\ping_fang_light.ttf
pdf-kit-master\src\test\resources\fonts\ping_fang_regular.ttf
pdf-kit-master\src\test\resources\templates
pdf-kit-master\src\test\resources\templates\hello.ftl
pdf-kit-master\src\test\resources\templates\report_template.ftl