Welcome Guest Search | Active Topics | Sign In | Register

HTML2PDF Options
Doom
Posted: Monday, January 14, 2013 10:26:48 AM
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


eo_support
Posted: Monday, January 14, 2013 10:33:36 AM
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_trigger

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.