score:0
PrinceXML's JavaScript engine doesn't seems powerful enough to do charts with components like Highcharts.
So what I've done is run my page into PhantomJS so it would run the JS and create the SVG elements in the DOM and then feeding the result to PrinceXML.
Be sure to disable animations otherwise you'll print frame 0 of it:
Highcharts.setOptions({
plotOptions: {
series: {
animation: false //Animations prevent proper PDF generation of charts!
}
}
});
score:2
One thing you can do is just feed the SVG generated by HighCharts to prince.
One problem you will have with this solution is that IE8 won't generate SVG, but VML, which prince can't render. You may be able to feed your javascript directly to Prince, but we have yet to test this solution out.
Edit:
I actually just tested feeding Prince with the javascript that would generate the SVG... but no luck, so we're stuck with feeding it pre-rendered SVG. Might have to do it server side using a javascript runtime.
score:3
I work at DocRaptor (an HTML to PDF API, using Prince XML for PDF rendering) and we just published a blog post about adding Highcharts to PDFs:
Basically, you just need to use our JavaScript engine (which is distinct from Prince's JavaScript engine, and runs before we hand the process off to Prince) and disable animations in the code that renders your graphs.
Source: stackoverflow.com
Related Query
- How to use highcharts with angular 5?
- How To Use Epoch Time With Highcharts Series Data?
- How to use highcharts with princeXML?
- How do I use an Highcharts Solid Gauge in angular 6 with typescript?
- How do I use Highcharts to display candlestick with small values?
- How to use Highmaps and Highcharts with Meteor?
- How to use Highcharts React to create chart with multiple lines for same XAxis?
- how to use highcharts tooltip formatter in python code
- How to convert string array to ints to use with Highcharts
- How is the proper way to use HighCharts with StencilJS?
- How to use highcharts in reactjs with fetched data from API
- Highcharts how to use a percentage area with time
- How to have multiple highcharts with different series data in vuejs without repeating code
- How to use Highcharts theme with rCharts
- Parsing JSON for use with Highcharts using jquery .parseJSON or JSON.parse: how to remove quotes from function calls for formatters?
- How to use decimal dates with Highcharts (such as 1992.9614)?
- Highcharts : How to use setData with a string obtained by ajax?
- How to use trellis chart with stacked column in Angular 10 using Highcharts
- how can I use rangeselector and navigation in highcharts in the given code
- How to use custom JSON (not GeoJSON) with Highcharts map?
- Highcharts - how to have a chart with dynamic height?
- How to include highcharts with bower?
- how to import highcharts with webpack and babel
- How to prevent highcharts from shortening labels with ellipsis
- How to export the whole page or html content with Highcharts not just the chart?
- Can we use Highcharts with React-Native?
- How to get rangeSelector to work with HighCharts
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- Highcharts how to use JavaScript variable as series data source?
- Highcharts chart with 'datetime' xAxis - use categories on drilldown
More Query from same tag
- Bubble chart :Cannot read property 'parts/Globals.js' of undefined
- Is there a way to have a toggled legend item save its state on refresh?
- Events for HighCharts - MouseOver/MouseOut
- Do you have any good ideas (settings) for displaying titles with a lot of characters in highcharts?
- How i can increase size of legends in line Highchart
- Inserting series data in highcharts dynamically
- Highcharts clientside export plugin. TypeError 'C is undefined'
- Extending typescript interface from another module
- Locking the zoom in on Mapview?
- ionic 2 highchart not visible
- JQuery animation doesn't work in IE8
- Highcharts -- yAxis on donut chart not being displayed
- How to divide HighCharts column in different categories?
- how to get tow series data in highchart guage chart
- How to make z-index for area lines in highcharts?
- Highstock Chart - setExtremes event data missing
- Highchart stacked area empty spaces (negative values)
- Show S0-Ticks with Highcharts
- HighCharts - invalid or unexpected token
- Can I add my own property in 'this' of xAxis labels formatter function in High Charts?
- Highcharts Polar Chart customization
- In angular, how can I use a component variable in scss file
- Highcharts multiple axis with custom labels
- Combination of ohlc and line plot in highchart
- Using Highcharts with minutes, seconds and milliseconds as Data not working
- How to add horizontal threshold lines after data is loaded?
- HighCharts and PHP json_encode. Data from MySQL. No data on chart
- Highcharts fill in scatter plot data with 0s
- highcharts: margin between two boxplot series
- how to remove shadow on hover in highchart?