[GIS] Integrate Leaflet map into PDF

htmlleafletpdf

I am current in the process of writing a thesis. Being in the field of GIS it obviously involves some maps ;). While the whole world switched to interactive online maps, Universities still require to hand in a PDF in the end. I am wondering if there are options to integrate a Leaflet map into a PDF. So basically I want to embed a HTML into a PDF.

I also asked a similar question here, but being a more GIS specific on GIS Stack Exchange.

Best Answer

You can embed html and run some javascript in PDF, but it appears that there is not enough support for Leaflet to run - there's no XmlHttpRequest which you would need to fetch your data. It might be possible with some hacking, since Adobe Javascript has its own net library, but it's not going to be easy.

Related Question