Search code examples
javascriptasp-classicpdf-generationhighchartsabcpdf

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


Solution

  • 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.