I want to save the JSP page as a PDF format, the JSP page has a lot of Highcharts charts and a list of data, so you can not use iText tools to do. The way I can think of is to call the browser to save as PDF function, but how to call? If you can't call me how to solve this problem?
我想将JSP页面保存为PDF格式,JSP页面有很多Highcharts图表和数据列表,所以你不能使用iText工具来做。我能想到的方法是调用浏览器保存为PDF功能,但如何调用?如果你不能打电话给我怎么解决这个问题?
1 个解决方案
#1
0
You can actually use a combination of canvas drawing and JavaScript PDF generation to achieve this. Have a look at these libraries:
实际上,您可以使用画布绘制和JavaScript PDF生成的组合来实现此目的。看看这些库:
#1
0
You can actually use a combination of canvas drawing and JavaScript PDF generation to achieve this. Have a look at these libraries:
实际上,您可以使用画布绘制和JavaScript PDF生成的组合来实现此目的。看看这些库: