Sign in to follow this  
arinte

Exporting As Pdf

Recommended Posts

I am doing a server side pdf that is activated by javascript. Even though I have this as my data:

var countryJson = eval('({"chart":{"caption":"","xaxisname":"","yaxisname":"","legend":"0","animation":"0","exportEnabled":"1","useRoundEdges":"1","slantLabels":"1","exportHandler":"FCExporter","exportAction":"download","exportFormat":"PDF"},"data":[[{"label":"United Arab Emirates","value":"1"},{"label":"India","value":"1"},{"label":"United States","value":"3"}]]})');

 

The download is still coming back as a .jpg? What do I need to do?

Edited by arinte

Share this post


Link to post
Share on other sites

So there is no way to do it without having the extra swf button? Even though I am doing the server side export.

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Please find the sample zip file attached for your reference.

 

Hope this helps.

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Please check the export.html file in the sample zip file.

 

You would need to set the default export format in this way:

 

myExportComponent.componentAttributes.defaultExportFormat = 'PNG';

 

Please modify the export format as per your requirement in the above line.

 

Hope this helps.smile.gif

Edited by Angie

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