sectioni
Posts: 47
Joined: Thu Dec 31, 2015 2:17 pm

Exporting pdf

I'm trying to install the requirements for offline exporting.

1. Downloaded the canvg source code from github. Which file exactly do I need from there?
2. svg2pdf github - has 2 js files in the dist folder. non of them is the svg2pdf.js that highcharts is trying to load.
3. jspdf github - has a file named jspdf.min.js. in the dist folder. do I need to rename it to jspdf.js so highcharts can use it or am I missing something?
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Exporting pdf

Hi,
Thanks for your message.

Are you familiar with our blog article about offline-exporting module?
https://www.highcharts.com/docs/export- ... ide-export

PDF export in client side exporting is not supported for IE11 (see the table at https://www.highcharts.com/docs/export- ... ide-export)

Let me know if you have more question.
Best regards.
Sebastian Hajdus
Highcharts Developer
sectioni
Posts: 47
Joined: Thu Dec 31, 2015 2:17 pm

Re: Exporting pdf

Yes I am.

I doesn't answer any of my questions.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Exporting pdf

Hi,
Simply add these sources and everything should works.

Code: Select all

https://cdnjs.cloudflare.com/ajax/libs/amstockchart/3.13.0/exporting/canvg.js
https://rawgit.com/yWorks/jsPDF/master/dist/jspdf.min.js
https://cdn.rawgit.com/yWorks/svg2pdf.js/0a2fa7ce/dist/svg2pdf.min.js

Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Usage”