Welcome Guest Search | Active Topics | Sign In | Register

How to convert HTML image links to pdf image link? Options
Sunil
Posted: Thursday, July 26, 2012 11:48:08 AM
Rank: Newbie
Groups: Member

Joined: 7/26/2012
Posts: 3
Hello,

We have a plan of purchasing your EO.PDF dll. So, I am evaluating your tool based on the features that needed for us.

I am using HtmlToPdf.ConvertHtml() method for converting html content to the pdf file. I have image link in my HTML content, when this data is passed to the ConvertHtml() method it did converted into the pdf but the link was not resolved in the pdf file.

Please have a look into the below html content that I used has a input:

<html>
<body>
<h2>Norwegian Mountain Trip</h2>
<img border="0" src="/images/pulpit.jpg" alt="dsfsdfdsfPulpit rock" width="304" height="228" />
<p>
<a href="http://en.wikipedia.org/wiki/File:Tipu_Sultan%27s_Palace.jpg"
title="&quot;Enlarge&quot; ">
<img border=0 width=15 height=11 id="Picture 2"
src="C:\\Users\sunils\Desktop\Image%20Link_files\image002.png"
alt="Description: http://bits.wikimedia.org/static-1.20wmf7/skins/common/images/magnify-clip.png">

</a>
</p>
</body>
</html>


Please provide a sample code in C# that converts HTML image links to the PDF image links.

On the other end, I also saw that images are not inserted correctly into the page. Please have a look into the below link there I have placed the image of the PDF content.
ImagePDF
Please help me on the above issue.

Thanks,
sunil
eo_support
Posted: Thursday, July 26, 2012 11:55:56 AM
Rank: Administration
Groups: Administration

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

You would use something like this:

src="file:///c://Users/....../image002.png"

Please let us know if that works for you.

Thanks!
Sunil
Posted: Friday, July 27, 2012 12:30:27 AM
Rank: Newbie
Groups: Member

Joined: 7/26/2012
Posts: 3
Hi,

Thanks for the reply....
I am able to see the image in the PDF, but the image link has not resolved. How to make this work?

Please help me on this...

Thanks,
Sunil
eo_support
Posted: Friday, July 27, 2012 5:40:55 PM
Rank: Administration
Groups: Administration

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

We have confirmed this to be a bug and posted a new build that should fix the problem. Please see your private message for the download location.

Thanks!
Sunil
Posted: Tuesday, July 31, 2012 4:41:26 AM
Rank: Newbie
Groups: Member

Joined: 7/26/2012
Posts: 3
Thanks for the quick fix.



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.