Welcome Guest Search | Active Topics | Sign In | Register

EO PDF Intermittently Not Styling Output Correctly Options
Adam
Posted: Friday, February 19, 2016 8:36:48 AM
Rank: Member
Groups: Member

Joined: 5/8/2012
Posts: 13
We are using your AspxToPDF tool to generate a pdf of one of our web pages. Prior to generating, we are applying custom styles to the page, to get a better looking output.

The problem is, that every few times or so, the page isn't getting styled correctly. Rather than applying the style, it seems to take an exact screen print of the page. In addition to that, there are images that are displaying as broken images, in the pdf.

In the past, we found that anonymous authentication (in IIS) needs to be set on any style, image, or script folders that EO may need access to. In that case, it either works or it doesn't. In today's scenario, sometimes it works and sometimes it doesn't. We have checked that anonymous authentication is set, and the IIS Application Pool user does have the appropriate permissions to those folders.

We also recently updated to the EO.PDF version 15.2.61.0 and EO.Web version 9.0.45.2. We don't recall having the issue prior to that upgrade.

Thanks,
eo_support
Posted: Friday, February 19, 2016 11:29:42 AM
Rank: Administration
Groups: Administration

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

The only reason that can cause styles not render correctly is when they are not loaded correctly. If your code use JavaScript to load contents dynamically, then you can try to increase HtmlToPdf.Options.MinLoadWaitTime to give your JavaScript more time to run. If that does not resolve the issue, you will want to check your IIS logs to see why the styles faild to load.

Additionally, you should not have a version mismatch between EO.Pdf and EO.Web. So you may want to update them to the same version.

Thanks!
Adam
Posted: Tuesday, February 23, 2016 10:27:21 AM
Rank: Member
Groups: Member

Joined: 5/8/2012
Posts: 13
Setting the MinLoadWaitTime to 3000 seemed to fix the problem.

Thanks for your help and quick response!
eo_support
Posted: Tuesday, February 23, 2016 3:58:45 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Great. Glad to hear that it works for you. Please feel free to let us know if there is anything else.
Adam
Posted: Wednesday, March 23, 2016 7:54:12 AM
Rank: Member
Groups: Member

Joined: 5/8/2012
Posts: 13
Okay, so this issue is still occurring. I think we have tracked the issue back to the Load Balancer. When we take it out of the load balanced environment, it seems to work fine. I wonder if it may be related to the current Persistence Method, being used on that load balancer configuration. It's currently running as "COOKIEINSERT". Do you have any insight or recommendations on a different persistence method?
eo_support
Posted: Wednesday, March 23, 2016 3:48:36 PM
Rank: Administration
Groups: Administration

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

There isn't much we can tell you on this. This is definitely an issue on the network side, which is both beyond the scope of our support and the scope of our expertise. The root of the problem for such situation is usually your web server is not happy about something in the HTTP request thus refuses to send the correct response. So that might be where you want to look into.

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.