score:2

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.

score:0

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.

score:0

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