Accepted answer

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.


some ideas:

  1. since abcpdf uses the ie engine: does your server ie version supports highcharts? upgrade if not.
  2. you may want to check if highcharts have to option the generate an image.


the example charts found on highchart's website appear to use svg.

when i attempted to render their home page with websupergoo's online demo for abcpdf, which uses ie, these also failed to render.

abcpdf supports only a subset of svg based around the svg tiny specification, according to the documentation...

however, the latest version of abcpdf introduced support for converting web pages with gecko's rendering engine. as this engine supports the majority of the svg full profile, i would suggest giving it a try. you can find out which bits are not currently implemented here on mozilla's site...

to switch to the gecko engine you'll need to add something like the following line of code:

mydoc.htmloptions.engine = enginetype.gecko;

each rendering engine also has a different set of htmloptions. you can find out more about the geckosubset here...

if this doesn't work, you may need to look at what other formats highchart can export. do they support the html5 canvas element?

another thought: is it possible your charts are fading in and abcpdf is only capturing the first frame?

Related Query

More Query from same tag