Welcome Guest Search | Active Topics | Sign In | Register

Image is not getting transformed when HTML to PDF conversion Options
Arun Lal
Posted: Thursday, May 19, 2016 7:58:23 AM
Rank: Member
Groups: Member

Joined: 5/19/2016
Posts: 11
Hi

I am converting an a HTML file to PDF using EO.Pdf (Product/File version 4.0.54.2 and File Version) however except HTML page footer image rest all information is correctly appearing in the PDF.

Instead of complete footer image I am seeing a line. As I don't find any attachment option couldn't share the screen shot.

This is bit urgent , please do the needful.

Thanks
Arun Lal
eo_support
Posted: Thursday, May 19, 2016 11:57:58 AM
Rank: Administration
Groups: Administration

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

Generally you can not use local image files from HTML. You can try to use an Internet Url or data Url for your image and see if that works.

Thanks!
Arun Lal
Posted: Thursday, May 19, 2016 1:27:16 PM
Rank: Member
Groups: Member

Joined: 5/19/2016
Posts: 11
Hi

Please find the below c# conversion code and HTML . I have tried with various image types (jpg, gif ) as well, still no luck.

EO.Pdf.HtmlToPdf.ConvertHtml("HTML Code", "C:\\Test\\Test.PDF")


HTML Code

?<html xmlns:fo="http://www.w3.org/1999/XSL/Format"><head><meta charset="utf-8"></meta><meta name="viewport" content="width=device-width, initial-scale=1"></meta><meta http-equiv="X-UA-Compatible" content="IE=edge"></meta><<p class="body-navy">
<div class="col-1" style="height:500px"></div></div></div><footer class="footer"><section class="col-2"><img src="C:\test\lib\img\lgo-freddiemac.svg"></img></footer><script></body></html>


Thanks
Arun Lal
eo_support
Posted: Thursday, May 19, 2016 1:56:56 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Please read our last reply again. You can't just ignore our reply and keep repeating your questions. If you don't follow what we tell you, there is no point for us to answer your question at all.
Arun Lal
Posted: Friday, May 20, 2016 4:28:23 AM
Rank: Member
Groups: Member

Joined: 5/19/2016
Posts: 11
Hi

I do acknowledge your response, my intend was to give you more insight to the code and image type (.svg) .

I have tried relative path/internet path , still no luck , need to see the possibility on data link.

?<html xmlns:fo="http://www.w3.org/1999/XSL/Format"><head><meta charset="utf-8"></meta><meta name="viewport" content="width=device-width, initial-scale=1"></meta><meta http-equiv="X-UA-Compatible" content="IE=edge"></meta><<p class="body-navy">
<div class="col-1" style="height:500px"></div></div></div><footer class="footer"><section class="col-2"><img src="http://localhost/test/lib/img/lgo-freddiemac.svg"></img></footer><script></body></html>

eo_support
Posted: Friday, May 20, 2016 11:04:11 AM
Rank: Administration
Groups: Administration

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

We tested the latest build and it works fine. You can try to download the latest version from our download page and see if it works for you.

Thanks!
Arun Lal
Posted: Friday, May 20, 2016 2:13:54 PM
Rank: Member
Groups: Member

Joined: 5/19/2016
Posts: 11

Thank you issue got resolved now.


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.