-
我已在一个页面中成功创建了总共4个不同的图表 .
-
我有一个按钮"Download Selected Chart"并点击此按钮 I need to create one ZIP file with selected chart PDF, Means if I select three charts then create a ZIP with three charts PDF.
-
高脚椅提供下载图表的功能,如PDF,SVG,PNG等,但我不能为多个选定的图表做 .
-
我检查了Highchart导出服务器文档 - http://www.highcharts.com/docs/export-module/setting-up-the-server但我不明白如何使用它 .
如果有人有想法,请帮助我,我该怎么做?
2 回答
一个示例解决方案是:
您可以看到this (very scrappy) JSFiddle demonstration如何获取ZIP文件 . 步骤如上所述,但不连接到任何按钮,而是在进入站点后立即执行 .
在这里,我发布了适合我的解决方案 .
在这里,您需要读取目录文件并从SVG创建PDF .
将每个PDF添加到ZIP后 .
This is Example solution.You have to change code as per your requirement