An article about working with images and iTextSharp:
It's about putting images at certain positions in a pdf with C#.
But couldn't you have found it using Google?
http://www.mikesdotnetting.com/Article/87/iTextSharp-Working-with-images[
^]
About the other question you had: this pdf doc should not open or prompt for download, but should be sent to an email address of the user logged in; I show a couple of examples, your task is to pick the right pieces out of it to get it working.
-- Sending Email --
Simple SMTP E-Mail Sender in C#… Console application[
^]
the SmtpClient is in the System.Net.Mail namespace.
An example can be found here:
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx[
^]
-- Sending Email with pdf --
http://msdn.microsoft.com/en-us/library/system.net.mail.attachment.aspx[
^]
and here
MailAddress from = new MailAddress(froma);
MailAddress to = new MailAddress(email);
MailMessage message = new MailMessage(from,to);
SmtpClient client = new SmtpClient();
message.Subject = this.txtSubject.Text;
message.IsBodyHtml = true;
string attachmentPath = pdffile;
System.Net.Mail.Attachment inline = new System.Net.Mail.Attachment(attachmentPath, MediaTypeNames.Application.Pdf);
inline.ContentDisposition.Inline = true;
inline.ContentDisposition.DispositionType = DispositionTypeNames.Inline;
inline.ContentType.MediaType = MediaTypeNames.Application.Pdf;
inline.ContentType.Name = Path.GetFileName(attachmentPath);
message.Attachments.Add(inline);
client.Host = Session["smtp"].ToString();
client.Port = Convert.ToInt32(Session["port"].ToString());
client.Send(message);