Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic PDF from html that contains Javascript

I'm currently working on generating a PDF from a simple html page that contains a few charts that are generated in Javascript using Highcharts.

We currently have ABCPdf installed which generates the PDF, however it doesn't capture any of the charts. After some Googling, I found that adding:

theDoc.htmlOptions.UseScript = True

Should work, but it doesnt. I'd appreciate any ideas.

Thanks,

Dave

like image 424
Dave Avatar asked Nov 04 '22 21:11

Dave


1 Answers

We're currently doing this in production for web pages with javascript that are rendered in pdf to create reports (with HighCharts Graphs)

We're using wkhtmltopdf with great success.

like image 123
Grooveek Avatar answered Nov 09 '22 06:11

Grooveek