Home Forums Chart Support Regarding taking report using tcpdf in php along with data and pie chart Reply To: Regarding taking report using tcpdf in php along with data and pie chart

#32009

@palaniappan-praveen,

CanvasJS is a JavaScript library which runs on client-side. To embed chart in pdf generated using server-side libraries like tcpdf, mpdf, etc please follow the below steps.
1. Generate the image of chart using headless-browser like PhantomJS. Please refer this sample project for an example on same.
2. Add image generated in previous step to the pdf using TCPDF. Please refer TCPDF documentation for an example on the same.


Vishwas R
Team CanvasJSs