Welcome Guest Search | Active Topics | Sign In | Register

Missing some graphics on HtmlToPdf.ConvertUrl() Options
Broadridge
Posted: Thursday, December 15, 2011 3:56:31 PM
Rank: Newbie
Groups: Member

Joined: 9/7/2011
Posts: 3
I am converting webpages to PDF for historical archiving using HtmlToPdf.ConvertUrl() on our production server and the result has several missing graphics while others do appear. We are using Eo.pdf 3.0.84.2 within a DLL library that is executed by a windows service. For several test pages, the PDF is being generated. Access from the server to the website is via a proxy so we have added three domains (finlsite.com, foremostadvice.com, forefieldkt.com) to the host file so to bypass the proxy – as we learned we cannot set a proxy in EO.PDF. Graphics are appearing for only one (finlsite.com) of the three domains in the resultant PDF. The call I am making is: HtmlToPdf.ConvertUrl("http://www.finlsite.com/ThreeGraphics.htm", @"c:\\Forefield\PDF\ThreeGraphic.pdf"); When I make this call from outside the server, for example, on Essential Objects testing platform, the PDF is generated with all graphics appearing.

As mentioned, the sample page that I am scanning is http://www.finlsite.com/ThreeGraphics.htm - still hosted on our site for testing should you need to look at it. Two graphics hosted under finlsite are being represented in the PDF (one graphic path was local while the second was absolute). We have other graphics hosted on domains foremostadvice and forefieldkt that I'm referencing by http and https. Please note: when I open the html page using Internet Explorer while on the production server using the same credentials as that of the windows service, all of the graphics appear.

Before we re-engineer our application so all graphic resources are delivered via the one domain that works for the pdf conversion, is there a known issue with rendering graphics from three different domains even if those domains are listed in a host file and the windows service is running under permissions that allow this access? Is there something we should try?

I have posted the PDF that I generated from internal our server: http://www.finlsite.com/PDF/threegraphic.pdf

Thanks.
eo_support
Posted: Thursday, December 15, 2011 4:00:14 PM
Rank: Administration
Groups: Administration

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

No. There is no known issue on this. The code that handles images are pretty straight forward. It pulls the image through HTTP and if that succeed, then you will see the image. Otherwise you won't see the image. It shouldn't have anything to do with anything else.

I do recommend you to upgrade to build 3.0.95.2. This is a newer version that fixed a few handle leak issue. Such issue can be a problem when your app runs as a service continuously for a long time.

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.