Welcome Guest Search | Active Topics | Sign In | Register

Inconsistent output for the same html Options
Amir
Posted: Thursday, May 14, 2015 1:12:43 PM
Rank: Newbie
Groups: Member

Joined: 5/14/2015
Posts: 1
Hey there,
I'm considering to use EO.PDF in my project. In a test run, I see if I run the same page in a loop for 10 times, the result is not consistent which I expect it should be.
Please advise.
Thanks
eo_support
Posted: Thursday, May 14, 2015 1:28:47 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Try to increase HtmlToPdf.Options.MinLoadWaitTime and see if it helps. One reason that you do not get consistent output is when you have JavaScript in your page that creates/modify the output. The converter does not know when your JavaScript has finished done so (unless you use manual trigger to explicitly tell the converter). So it's possible that the converter starts conversion before your JavaScript has finished modifying the content. Since the exact moment of cut off time depends on the state of your JavaScript code, it can have different results through different runs. The easiest way to avoid this problem is to increase MinLoadWaitTime so that your script would have sufficient time to do what it needs to do. If you want to be precise, you can use the manual trigger feature:

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.