Rank: Newbie Groups: Member
Joined: 1/14/2013 Posts: 1
|
Hi,
My question is, if html contains onload() script which changes the look of page when run (shows hidden div fo ex), does EO.Pdf executes it before creating pdf?
Thank you
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, It will but you may need to increase HtmlToPdf.Options.MaxLoadWaitTime. EO.Pdf will run all your JavaScript code the same way as a browser. However it does not know when your script has finished. For example, if you send an AJAX request to the server in your onload script, the converter does not know whether it should wait for the result or not. In such cases, you can either increase HtmlToPdf.Options.MaxLoadWaitTime, or use manual trigger to explicitly tell us that your page is ready for conversion: http://www.essentialobjects.com/doc/4/htmltopdf/eo_js.aspx#manual_triggerThanks!
|