Valtin
wrote on 2012-05-14:
Hi,
I have a printed page with several google maps.
All is ok except some background images not dowloaded.
Source : http://www.circuits-de-france.com/impression_2.php?langue=fr&id_circuit=7658&id_outil=
PDF : http://www.circuits-de-france.com/impression_pdf.php
It is possible to call a function to start generation of PDF when all background has dowloaded ? or other ?
Thank a lot for your job :-)
Valentin
support
wrote on 2012-05-15:
Valentin,
unlike the browser, we need to stop JavaScript at some point. We use some heuristics to decide when to abort JavaScript fired from onload. This mostly works, but if the code performs some I/O or if there is a delay in processing, it may sometimes happen that the script is aborted prematurely.
It often helps to do as much work as possible before the onload event (e.g. download all assets), but I'm not sure how much control do you have in this case.
Valtin
wrote on 2012-05-15:
Hi,
I will try to execute my code before the body onload but it not will be a good solution for all pages. I can have 3 google maps or 15. :-/
It's possible to creat an option in order to generate PDF begin when we call a JS function ? or to set a timeout after the body onload to generate PDF? :-)
Thank you
Valentin
support
wrote on 2012-05-16:
Valentin, unfortunately there is not such an option.
Valtin
wrote on 2012-05-17:
Ok, thank you :-)