Rank: Member Groups: Member
Joined: 7/19/2011 Posts: 14
|
Hello,
I am creating some HTML in my code, with an image saved on the local machine included. If I save the HTML to a file and load it in a browser, I see the image. But when I run HtmlToPdf.ConvertHtml, and then view the resulting PDF file, the image is not there. A box for the image exists, in the proper dimensions, but the image itself does not show.
Any ideas why?
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We can't think of any reason for that. Can you create a reproducing project and send it to us?
Thanks!
|
Rank: Member Groups: Member
Joined: 7/19/2011 Posts: 14
|
Looks like it had something to do with how the image was created and stored. Changed the code to save the HTML to a file, and then used .ConvertURL, and it worked as expected.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, That makes sense. See here for more details about the difference between ConvertHtml and ConvertUrl: http://www.essentialobjects.com/forum/postst5848_ConvertHtml-cannot-be-substituted-for-ConvertUrl.aspxThanks
|