Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF ConvertUrl is missing first three images Options
Justin
Posted: Friday, January 23, 2015 8:54:05 AM
Rank: Newbie
Groups: Member

Joined: 1/23/2015
Posts: 1
Hi there,

We use EO.pdf to render conference badges, and on each badge is a barcode image. The html that is generated is essentially a div for each badge with the same content.

The image tag in question is:
Quote:
<img src="BarcodeGen.ashx?code=7107263^]Mr.^!Trowa^!Barton^Pilot^Heavy%20Arms^12629%20Riverside%20Dr^^Denver^Colorado^91607^United%20States^123-123-1234^^^22924&amp;&amp;barwidth=0.01&amp;cType=Auto&amp;ratio=2&amp;rows=0&amp;columns=0&amp;tMargin=0.01&amp;bMargin=0.01&amp;sym=Pdf417&amp;cTruncated=false&amp;width=2&amp;height=0.5&amp;dpi=72&amp;AspxAutoDetectCookieSupport=1&amp;encrypt=true" pdf417="">


Now this works fine after the first 3, but I cant seem to figure out why this is the case.

My render code is straitforward:

Quote:
HtmlToPdf.Options.NoScript = false;
HtmlToPdf.Options.MaxLoadWaitTime = Int32.MaxValue;

using (var ms = new MemoryStream())
{
HtmlToPdf.ConvertUrl(url, ms);
ms.Seek(0, SeekOrigin.Begin);
return ms.ToArray();
}


I've also tested the html and I am able to view the images properly for the entire document when I render it with chrome/firefox.

Thanks for your help!
eo_support
Posted: Friday, January 23, 2015 2:37:44 PM
Rank: Administration
Groups: Administration

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

Please check whether you are rendering pages on the same server. For example, if your application has two pages, Page1.aspx and Page2.aspx, and inside Page1.aspx (for example, when a button is clicked) you call ConvertUrl to convert Page2.aspx. In this case, you would be calling ConvertUrl back to the same server. This can easily run into ASP.NET session lock issue. If this is the case, please try to use ASPXToPDF to render the page.

If that's not the problem, then you can either check your IIS log or use a Web traffic monitor (for example, fiddler) to monitor the web traffic when this occurs. This should allow you to see whether an image was indeed returned by the web server, and if not, what's the error code. That might give you some pointers.

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