Welcome Guest Search | Active Topics | Sign In | Register

Images not Displaying when using HtmlToPdf.ConvertUrl Options
DT
Posted: Wednesday, October 2, 2013 7:09:43 AM
Rank: Newbie
Groups: Member

Joined: 10/2/2013
Posts: 1
Hi,

I have been using HtmlToPdf.ConvertUrl to create a PDF document from my page.

everything is working fine apart from there are no images (regular / background) appearing in the PDF

Is there any way to get these images to display?

Ps. I seem to recall reading somewhere that when using the ConvertUrl that the baseURL option is ignored.

Thanks,
eo_support
Posted: Wednesday, October 2, 2013 1:08:13 PM
Rank: Administration
Groups: Administration

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

Most of the time when you do not see image its because you use ConvertHtml without setting BaseUrl. However BaseUrl does not matter when you use ConvertUrl. However there are scenarios when the image will not be rendered. For example, if your image requires login but you did not login through the converter, then it won't work. To find out exactly why it's not working, you will want to check your web server log to see:

1. Whether the correct Url is sent to your web server;
2. If the Url is correct, whether your web server has responded with the image;

If both are fine, then you should see the images in your PDF file.

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.