Jump to content


How to Export chart in PDF


  • Please log in to reply
7 replies to this topic

#1 LivingLegend

LivingLegend

    Advanced Member

  • Members
  • PipPipPipPip
  • 38 posts

Posted 29 March 2010 - 09:06 AM

Hi,



I want to export it at client side.



When user click on Export button, it should ask to download pdf file and that PDF file should contains charts in it.



Means I want to embed charts in PDF files..

#2 Basundhara Ghosal

Basundhara Ghosal

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 2459 posts

Posted 29 March 2010 - 08:57 AM

Hi,

Could you please let us know whether you wish to export the image at server-side or client-side?

Awaiting your reply.

Regards,

Basundhara Ghosal

[url="http://www.twitter.com/fusioncharts"]Follow us[/url] on Twitter :D

#3 LivingLegend

LivingLegend

    Advanced Member

  • Members
  • PipPipPipPip
  • 38 posts

Posted 29 March 2010 - 07:35 AM

Hi,



I have 5 charts in my application. 1 is Bar chart and 4 are pie charts.



I have one button "Export" which when clicked, all the charts should be exported to PDF file.



Actually, I have to create report in which I have to embedded charts in it.



So, is there any functionality or way to achieve this?



Waiting for any reply...



Thanks and Regards

Jigar Shah

#4 srividya_sharma

srividya_sharma

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 943 posts

Posted 29 March 2010 - 10:10 PM

Hi

If I have understood your requirement correctly, I think this is possible with FusionCharts v3.

Please see http://www.fusioncha...BatchSetup.html

After you set this up, to achieve the whole thing with one click, what you could do is:

Export each chart after it is rendered, using javascript.

Then click on save All button of the export component and save to PDF.

You could also take a look at this: http://www.fusioncha...dPost24684.aspx

Hope this helps. :)

Srividya

regards,
Srividya Sharma

#5 LivingLegend

LivingLegend

    Advanced Member

  • Members
  • PipPipPipPip
  • 38 posts

Posted 30 March 2010 - 01:41 AM

Hi,



Thanks a ton for reply.



These links are very useful for me but I have some more requirements.



Actually, I have some other data which I have to include in pdf file.

My report will contain some data from database and fusion charts both.



So, when I click on export button, request will be sent to server side, where it will retrieve some data from database,

then it should include those data and charts in pdf file, which server send to client (by setting appropriate MIME type in response).



Client should get download popup to download pdf files with above data.



Hope, you clear with my requirements.



Thanks

LivingLegends

#6 srividya_sharma

srividya_sharma

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 943 posts

Posted 30 March 2010 - 06:31 AM

Hello Jigar,

In order to create a pdf with data and charts, on server side, you would have to do some custom coding.

Other users have been able to achieve this by writing their own code for writing pdf.

I can provide you with the general idea.

You would need to export all the charts as a single image and then include it within the pdf that you would generate on server side.

Hope this helps. :)

Srividya

regards,
Srividya Sharma

#7 LivingLegend

LivingLegend

    Advanced Member

  • Members
  • PipPipPipPip
  • 38 posts

Posted 30 March 2010 - 08:01 AM

Hi,



But I want to achieve this with one interaction.



When I click on export button on site, it should automatically generate one image of all charts

and embed it in pdf with my data.



How to achieve this?

#8 mthaha

mthaha

    Forum Newbie

  • Members
  • 1 posts

Posted 08 July 2010 - 04:22 AM

Hi,

I have same requirement need to do. I have a full html page with contents including fusion charts , other images and text contents. Is there any provision in fusion chart to export whole content in pdf format.



Thanks in advance !



with best regards

Thaha