Use the window status switch "--windows-status XXXX". If you add this switch, the PDF component (wkhtmtopdf) will wait for the window status. As soon as the script installs a ready-made sataus window or anything specified in the wkhtmltopdf switch, start converting html to PDF.
What you need to do .... Try to find when your maps are loaded in the DOM and everything worked (ajax calls or any long running script was executed / successfully), then set window.sataus = "ready" (using java script)
add switch --wowow-status ready
wkhtmltopdf --window-status ready http://openlayers.org/en/v3.1.1/examples/moveend.html test.pdf
source share