Welcome Guest Search | Active Topics | Sign In | Register

Converting HTML Email (with embedded images) to PDF Options
glinkot
Posted: Wednesday, January 11, 2012 11:21:58 PM
Rank: Member
Groups: Member

Joined: 1/11/2012
Posts: 27
Hi have a .NET 'MailMessage' object, which consists of the Body html, but also some embedded images which are referred to by CID's in the markup (eg <img src="cid:myImage"...). Each of those are attached to the email with disposition of 'inline' so they are displayed nicely by outlook in the document, rather than appearing as attachments.

Is it possible to render the PDF and include these images? They currently display as little question marks.

Many thanks

Mark
eo_support
Posted: Thursday, January 12, 2012 9:20:07 AM
Rank: Administration
Groups: Administration

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

No. We do not support that yet. The best thing you can do for now is to write a simple parser to extract those images into temp files, then modify the img tag's src property (for example, using regular expression) to point to your temp files.

Thanks!
glinkot
Posted: Thursday, January 12, 2012 6:02:27 PM
Rank: Member
Groups: Member

Joined: 1/11/2012
Posts: 27
Thanks for that. I was actually thinking along those lines myself, it shouldn't be too hard. 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.