Exporting Charts as PDF or Images > Troubleshooting |
I am trying your Export Chart related examples provided in Download Package > Code > ExportChartSamples folder. None of them see to finish the final step. What is wrong? |
Before trying the examples from our download package, you need to undertake the necessary setup steps as under:
If it still doesn't work, switch the debug mode of chart to on and it'll be able to guide as to what might be wrong. |
I have copied the server-side PHP or Ruby on Rails handlers, but they do not seem to generate images at all. |
Make sure that you've GD library installed on your server in case of PHP, and RMagick in case of Ruby on Rails. |
My PHP/Ruby on Rails server-side handlers are unable to generate PDFs |
Make sure you've GZip library installed on your server in case of PHP, and zlib in case of Ruby on Rails. |
I want to export the charts and save them on server without having to render the charts in browser. How can I do this? |
This CANNOT be done. FusionCharts necessarily needs to render once in the browser, before any of the export handlers are called. This is because the charts are always generated at client-side. After that, it takes a snapshot to the client-side Export component or server-side Export scripts for generation of image/PDFs. |
When creating an instance of FusionCharts Export Component, I do not see the UI at all. Instead, it shows me the text that I filled in my container DIV. |
Make sure of the following:
If nothing works, switch the debugMode of component to true (click here for details), and it'll show what went wrong. |
When using some download tools (like DAP), I cannot download the image in case of server-side exports. |
Yes- this is because they do not resend the POST data. So, you'll have to disable the same to allow download of chart. |
Instead of saving on server, can I directly email the chart? |
Not directly. But since we allow saving on server, you can write your own script to automatically email the saved image. This script can be placed in our server-side script, or externally. |
Instead of just exporting the charts to PDF, I also want my HTML content to be a part of the PDF. How can I achieve that? |
Currently, the only way would be to use a print PDF driver (like say PDF995). Since FusionCharts export component does not have access to anything that is contained in your browser window, it cannot export that as a PDF. |
The charts in my PDF look a bit larger than my actual charts. Why? |
The PDFs rendered by FusionCharts Export Handler is 72 DPI in PDF. The PDF viewer that you are using must have been set to a different Display Resolution (pixel/inch setting). A higher value would show the chart bigger and blurred while a smaller value would reduce the chart size. Please set the Resolution to 72 to see the correct chart size. |