Help me... how to convert amchart to pdf


I need help… I want to making 1 controller for covert html to pdf… But that html have amchart (swf). When I tried convert, the swf not loadded…

Any body can help me Please???


I need help… I want to making 1 controller for covert html to pdf…
Try using prawn gem ( and prawnto plugin ( They create PDF files “on the fly”. Prawn is able to render images. (But, let me admit that, I have never tried rendering swf files :slight_smile: ).

There is an easy-to-follow example on GitHub (

But that html have amchart (swf). When I tried convert, the swf not loadded…
Your statement sounds not complete, sorry I did not understand you cleariy on this.


I have 1 page… that page have flash(swf)… and have one button to “export to pdf”

When I clicked that button, I want to exporting that page into pdf… But the flash(swf) can be exported. it blank in pdf…

Could u help me please???


I have 1 page… that page have flash(swf)… and have one button to “export to pdf”

What technology are you using to “export to PDF”? I hope there should be a way of rendering the swf file (though it will be motionless :slight_smile: ).

Let’s be frank here: the chances of an SWF file being rendered by any PDF generator are slim to none. PrinceXML doesn’t support it, Prawn doesn’t either, you might be lucky with wkhtmltopdf with the --enable-plugins option, unless you are on linux, then apparently it doesn’t work either.

The best way to achieve what you want is just switch from Flash charts to a more open standard, i.e. something that is able to render charts as either a bitmap or an SVG image (although I believe if you want to render SVG in your PDF, Prawn won’t work either).

Best regards

Peter De Berdt

Thank all.
I’m using wkhtmltopdf and the amchart.

Thank you for the logic. But amchart can;t convert into image. May be I must change the chart…

do any body have another idea??Or only that way???

Thank you

It is practically impossible to imagine any dashboard without graphs and
charts. They present complex statistics quickly and effectively.
Additionally, a good chart also enhances the overall design of our
website. In this article, I will show you 3 best JavaScript chart
libraries: Fusioncharts, VanCharts and Highcharts.These Javascript
charts will help us create beautiful and customizable charts for our
projects. This article will compare 3 best JavaScript charts libraries.

Fusioncharts is delightful JavaScript charts for web and mobile
applications. VanCharts is JavaScript Charts library for Web, Mobile &
Apps. Highcharts is Interactive JavaScript charts for your web projects.

Charts rendered in
Fusioncharts use SVG and VML to render charts. VanCharts use canvas and
VML. Highcharts are rendered using SVG and VML.

Fusioncharts provides data parsing through both JSON and XML. VanCharts
provides data parsing through JSON, Excel and built-in dataset.
Highcharts provides data parsing through only JSON.

Fusioncharts VanCharts and Highcharts are all highly compatible with
older browsers like Internet Explorer 6. They support almost all other

Chart types
These 3 JavaScript charts libraries provide all the major chart types
like pie, column, bar, area, geo, timeline, and multiple series.
Fusioncharts provides 30+ chart types. VanCharts provides 25+ charts and
maps in both 2D and 3D. Highcharts provides 25+ chart types.

Chart Maker
VanCharts JS chart maker is a offline tool aimed at reducing code amount
and enhancing work efficiency for its user. Via this chart maker, user
can save and preview chart design files with file extension .crt in
local storage and may also export them as JavaScript to insert into Web
pages. Highcharts has a online maker. Fusioncharts doesn’t have one.

Fusioncharts and Highcharts only support html. VanCharts supports two
ways of integration in mobile terminals: web and native. Aside from JS
chart library, VanCharts also supplies IOS and Android native charts
library for users to integrate into native apps.

Fusioncharts development and testing licenses are free. Non watermarked
product version free for non commercial use. Deployment licenses start
at $399. Per-developer licensing fee starts $390 per developer.
VanCharts can free download and use all products for study, research or
any non-profit project. Deployment licenses start at $90. Purchase a
commercial license. Highcharts website licenses at $90 and
non-commercial usage is free.

VanCharts can support free for 1 year or unlimited. Fusioncharts and
Highcharts all need pay for it.