Welcome Guest Search | Active Topics | Sign In | Register

Generated report intermittently not the same look as the html page Options
fallen
Posted: Friday, January 29, 2016 7:17:47 AM
Rank: Newbie
Groups: Member

Joined: 6/25/2014
Posts: 4
Hi All,

We have a .pdf report generated, but the expected result was intermittently not the same as the look from the html report page. The EO.PDF was not stable getting the report page look.

Some things to note
1. We are using a licensed EO.pdf 2013 version.
2. Customized chart - a combination of a bar chart and a scatter/ XY plot - this is where the problem occurs, the scatter plot are sometimes cut or not visible at all, same goes for the bar chart.

Thanks!



eo_support
Posted: Friday, January 29, 2016 12:38:29 PM
Rank: Administration
Groups: Administration

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

This can be a combination of several different problems:

1. Your page uses JavaScript to create contents the converter did not wait long enough until your JavaScript is done. In this case you can either increase HtmlToPdf.Option.MinLoadWaitTime, or use manual trigger feature as described here:

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

2. Your page can have different content sizes and that would result in different scaling factors. To eliminate this problem, try to use a fixed size outer div to contain all the contents. The converter will be able to detect this div size and use it;

3. The converter uses an older version of the WebKit browser engine which itself has some bugs. We have a new build that uses a much newer browser engine which generally produces much better result, especially for complex chart. This new build is not released yet but will be soon, we can provide you internal test build for you to try it out if you are interested. However depending on when you purchased your previous license, you may need to renew your subscription or purchasing a new license in order to use the new version. The general rule is the first year upgrade is free, after the first the older your version, the more expensive the upgrade is. If you can provide your order number, we can find out the exact cost for you.

Thanks!
fallen
Posted: Tuesday, February 2, 2016 2:02:14 AM
Rank: Newbie
Groups: Member

Joined: 6/25/2014
Posts: 4
Hi,

First solution fixed our problem!

Actually added the code HtmlToPdf.Option.MinLoadWaitTime, the original has no code like that. Per testing - so far, the pdf report generated now is consistently good.

Thank you!
eo_support
Posted: Tuesday, February 2, 2016 10:34:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Great. Glad to hear that it's working for you! Please feel free to let us know if there is anything else.

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.