Sign in to follow this  
anurag.porwal

Custom PDF containing chart from json data at server side

Recommended Posts

using itext render at server side to to generate pdf from HTML (passed in ajax call) , need is to fit fusion chart also in pdf...data is in json format..please suggest

Edited by anurag.porwal

Share this post


Link to post
Share on other sites

Hi

 

You can make use of PhantomJS to export the chart and other elements of web page to PDF without rendering the chart on client side. You can refer to this link to know more.

 

If you want to trigger export from client side (after chart is being rendered on browser), then you can make use of FusionCharts API method `getSVGString` and get SVG string for the chart and embed it to PDF export according to your requirement. 

 

Please check this JSFiddle sample for the same: http://jsfiddle.net/sikrigagan/2ovov3nL/

 

To know more about this method, please check out this developer documentation page.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this