spipu / html2pdf

OFFICIAL PROJECT | HTML to PDF converter written in PHP
http://html2pdf.fr/en/default
Open Software License 3.0
1.67k stars 745 forks source link

Leaflet map in ob_start() #459

Open Feelwatt opened 5 years ago

Feelwatt commented 5 years ago

Hello, I'm trying to get a leaflet map in html2pdf export. The map is displayed on the page but when I run html2pdf, the map does not appear on the pdf. Has someone already tried (and succeeded) ? Thank you

Lukerayn3r commented 5 years ago

+1

lenamtl commented 5 years ago

+1

LittleBigFox commented 5 years ago

I think you have to save it before the generation: https://leafletjs.com/plugins.html#printexport

Regards, LBF