Home Forums Chart Support Add Extra Text to the PDF file Reply To: Add Extra Text to the PDF file

#39385

@ankur,

We don’t have exporting chart in pdf as an inbuilt feature as of now. However with few lines of code, you can export the chart in PDF using jsPDF. Please check out the code-snippet below.

var pdf = new jsPDF();
pdf.addImage(dataURL, 'JPEG', 0, 0);
pdf.save("download.pdf");

Also, have a look at this JSFiddle for complete code. You can refer to the jsPDF documentation for more information about the methods available in jsPDF library.

Exporting chart in PDF format using jspdf

—-
Manoj Mohan
Team CanvasJS