Introduction - If you have any usage issues, please Google them yourself
Requirements description:
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