mileszs / wicked_pdf

PDF generator (from HTML) plugin for Ruby on Rails
http://www.mileszs.com/wicked-pdf-plugin
MIT License
3.53k stars 644 forks source link

Not able to add the Google charts (Geomaps) in PDF #126

Open surabhisahay opened 12 years ago

surabhisahay commented 12 years ago

Need to include the Google Geomaps in the generated PDF but not able to do so. Any pointers how to do that?

sunnybogawat commented 12 years ago

I am also facing same problem, I am using gmaps4rails gem to generate maps which is displaying correctly on html page but the same map when i am trying to include for pdf it is not displaying. Do you have any idea how to show maps using wicked_pdf

TinNT commented 11 years ago

+1 I am facing the same issue, the iframe tag seems to not work either

jerryshen commented 11 years ago

I am facing the same issue with highcharts. any ideas?

unixmonkey commented 11 years ago

It appears that Highcharts can work with WickedPdf according to this post on StackOverflow:

http://stackoverflow.com/questions/14470055/highcharts-does-not-work-with-wicked-pdf

Please let me know if this helps or not!

jdanielnd commented 11 years ago

Have you tried setting javascript_delay: 3000? This will give time for the charts to render.

bhushangahire commented 10 years ago

I am using Plot graph. When I am seeing page with html in debug I am able to render the graphs but when I am exporting PDF its not executing javascript. I used jquery with wicked_pdf helpers.

jdanielnd : Where I can include javascript delay?

unixmonkey commented 10 years ago

@bhushangahire

render :pdf => 'mypdf', :javascript_delay => 3000
bhushangahire commented 10 years ago

Ok let me try that one.

Lyubomyr commented 9 years ago

Is any update here? Tried a bunch of different options and still can't see the charts.

Mkunz89 commented 9 years ago

I have the same issue and have not found a fix yet.

I've tried java-script delay and redirect-delay; also have tried turning off all the dynamic settings that come with google charts/maps such as :animation, :shadow, and :enablemoustracking. Still no luck

Lyubomyr commented 9 years ago

I solved this issue on my project. To do so, need to be aware of few things:

etozzato commented 6 years ago

Confirmed, it works with a 3000 ms delay!

It works on Heroku, too! this is the best day of my last 180 days.

https://sandiego.pharmlabscannabistesting.com/COA/29234.pdf