I'm trying to generate a PDF report using the Wicked_pdf gem and Highcharts.
I've already tried to set animation
, enableMouseTracking
and shadow
false.
But when wkhtmltopdf tries to generated the PDF files I got an error.
I really don't not what to do, because when I do the same procedure for an HTML, Highcharts renders perfectly.
Try setting this:
This solution worked for me. I have a pdf view and a html view and implemented solution has:
I fixed it by setting this options:
Also, don't forget to include JQuery and inline your styles and scripts
Try debugging in the QtWeb browser.
Instructions on debugging javascript in Qt here
You may find that your javascript contains unsupported syntax or keywords, which results in the issue as described.
The Qt WebKit rendering engine that wkhtmltopdf was using doesn't support ES2015, so you might have a simple solution like me, which was to replace keywords like
let
andconst
.