Welcome Guest Search | Active Topics | Sign In | Register

Possible Image timeouts from image url when using HtmlToPdf.ConvertUrl Options
Nick Blanchard
Posted: Wednesday, February 4, 2015 5:09:49 AM
Rank: Newbie
Groups: Member

Joined: 2/4/2015
Posts: 1
Hi
We have an issue where by we have a html page which includes <img/> tags with the source set to a url.
we are using the following to convert the page into pdf.

Code: C#
EO.Pdf.HtmlToPdf.Options.MaxLoadWaitTime = 480000;
EO.Pdf.HtmlToPdf.Options.UserName = OrderPortalLogin;
EO.Pdf.HtmlToPdf.Options.Password = OrderPortalPassword;
EO.Pdf.HtmlToPdf.ConvertUrl(url, fs)


When the page appears in the pdf random images will be missing. This appears to be load related as if we render two pdf at the same time we are more likely to have missing images.

Are there any other timeouts we should be considering?
Are there any logs we should be looking at?

Thankyou.
eo_support
Posted: Wednesday, February 4, 2015 10:48:41 AM
Rank: Administration
Groups: Administration

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

There are two things you can try:

1. Check your server side log to see if you can see any error code. Sometimes the error code in your IIS log file would point you to the right direction immediately;
2. Run a network traffic monitor (fiddler would be a good one for this purpose) and see whether the requests are properly sent and responded. This would give you additional ideas such as amount of time your server takes to respond and even more detailed error information;

If your server is ASP.NET and your images are dynamically generated, you should also avoid calling ConvertUrl back to the same server. For example, if in Page1.aspx you tries to call ConvertUrl("Page2.aspx") with both pages are on the same server in the same application, then you will have problems (the root of the problem is ASP.NET's session lock). In that case you can try to use our ASPXToPDF control to convert the page.

Hope this helps. Please feel free to let us know if you still 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.