Welcome Guest Search | Active Topics | Sign In | Register

HtmlToPdf and images Options
Dib Oglesby
Posted: Friday, August 12, 2011 9:08:26 AM
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
eo_support
Posted: Friday, August 12, 2011 9:11:26 AM
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!
Dib Oglesby
Posted: Friday, August 12, 2011 9:33:43 AM
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.
eo_support
Posted: Friday, August 12, 2011 9:36:45 AM
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.aspx

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.