|
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
|
|
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!
|
|
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
|
|
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.
|
|
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>
|
|
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!
|
|
Rank: Member Groups: Member
Joined: 5/19/2016 Posts: 11
|
Thank you issue got resolved now.
|
|