Hi ,
i want to insert an image into PDF dynamically.
I have a XML as input and used dtd for formatting it which and iam using XMLparser to parse the xml with hash table.
similar to this link has
http://www.ridgway.co.za/archive/2005/07/31/itextsharpxmltopdfexample.aspxHere is the code i had Document document = new Document();
MemoryStream m = new MemoryStream();
System.Collections.Hashtable tagmap = new Hashtable();
XmlPeer peer = new XmlPeer(ElementTags.CHUNK, "EmployeeName");
peer.Content = "CandidateFirstName ";
tagmap.Add(peer.Alias, peer);
XmlParser.Parse(document, HttpContext.Current.Server.MapPath("~/sample.xml"), tagmap);
Response.OutputStream.Write(m.GetBuffer(), 0, m.GetBuffer().Length);
Response.OutputStream.Flush();
Response.OutputStream.Close();
The above program is working perfectly and all i need is HOW to display images dynamically on the streamed PDF file.
Can you help me with this??
Thanks
Prashanth K