Home forums Using CanvasJS i have one class in which i have create pdf on the fly. i want to include chart Reply To: i have one class in which i have create pdf on the fly. i want to include chart

#23080

Priyanka M S
Member

@shankar.gidwani

i want to include chart image in pdf without interacting with browser.

You should use the headless browser to achieve this. Please take a look at this sample project on integrating CanvasJS with PhantomJS. Along with this, you can use rasterize.js API to capture the webpage in PDF format. Please take a look at this article on using rasterize.js on PhantomJS engine, which might be of help.

__
Priyanka M S
Team CanvasJS