Szpadel / chrome-headless-render-pdf

223 stars 67 forks source link

leaflet maps are missing in the pdf #54

Open 1kastner opened 5 years ago

1kastner commented 5 years ago

I tried to turn a Jupyter Notebook including a leaflet map (through folium) into a PDF. As an example https://python-visualization.github.io/folium/quickstart.htm can serve. I realized that when printing the Jupyter Notebook in a browser, I had to activate background pictures in order to see the map tiles. Anyhow, the command --include-background did not help me to get the maps.

1kastner commented 5 years ago

I tried to discuss it here: https://superuser.com/questions/1463819/print-pdf-of-website-with-chrome-in-headless-mode -- maybe it could be the matter that some tiles are not yet loaded at the point of printing.