Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf - works false on first load and slow Options
Sabrina Mayr (Stadt Villach)
Posted: Monday, February 8, 2016 6:08:14 AM
Rank: Newbie
Groups: Member

Joined: 10/28/2015
Posts: 1
Hello!
We are using EO.PDF and on the first load there are usually missing some data that should be in the pdf.
for example:
having a bulleted text rendered to pdf - only bullets are there, but no text.
Some text and images tend to not be there. They are simply missing.
Doing multiple downloads fixes the issue, usually the second download of the file. So I found this while googling:
"Hi, This is a known issue and we are working on it.
The root of the problem is we load native code in memory instead of from a different native DLL.
The advantage of our method is that you only get one .NET dll and you do not have to have a different native DLL.
But the disadvantage is we load slower since when there is a native DLL, the OS loads that DLL and the OS loader is very well optimized at the OS kernel level.
We are working on this part trying to implement some optimizations strategy implemented by the OS loader so that we can load faster."
I'm wondering if this has something to do with this? If so, is anything done about it? (post was from 2014).
Thank You for Your time!
eo_support
Posted: Monday, February 8, 2016 10:56:48 AM
Rank: Administration
Groups: Administration

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

The issue that you are having does not seem to have anything to do with the loader optimization. The loader optimization has already been implemented in the current version. In that case the converter will not produce the wrong result, it only takes longer.

The problem is most likely because you use JavaScript to dynamically loads contents and the converter started conversion before your script has finished its work (since the converter does not know when your script has done updating the contents). The easiest way to avoid this problem is to increase HtmlToPdf.Options.MinLoadWaitTime (in ms).

If that resolves the problem but you do not want to wait for a fixed amount of time every conversion, you can use manual trigger. See here for more information:

http://www.essentialobjects.com/doc/pdf/htmltopdf/eo_js.aspx#manual_trigger

Hope this helps. Please feel free to let us know if you have any more questions.

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.