Has anyone noticed that this example http://openlayers.org/en/latest/examples/export-pdf.html
hangs if you try to print more then once?
I am using the same code and does it for me as well. I have tried to figure out why it does it but no luck. The problem seems to arise when resetting the map to the original size and extent. For me if I omit that part it works but it keeps zooming out which I don't want.
Best Answer
you can use window.print() in javascript to print screen
or
Export PDF example .map { max-width: 566px; } Page size A0 (slow) A1 A2 A3 A4 A5 (fast) Resolution 72 dpi (fast) 150 dpi 300 dpi (slow) Export PDF var raster = new ol.layer.Tile({ source: new ol.source.OSM() });