lundi 15 mai 2017

how to display map on pdf with wicked_pdf in rails?

I am using wicked_pdf for generating pdf in my rails application.

I need to display a map on pdf with iframe.

I used bellow code for the map.

%iframe{:frameborder => "0", :height => "200", :src => "http://ift.tt/1mEJKQl{spot_details.lat}, #{spot_details.lng}&hl=es;z=14&output=embed", :style => "border:0;width:100%;margin-bottom:20px"}

But it gives me simple frame without map like this http://ift.tt/2qk18CV

Anyone, please suggest me how to display map on wicked_pdf with rails application.

Aucun commentaire:

Enregistrer un commentaire