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.pdfThanks.