title: Add Images dynamically in fillable pdf using iTextSharp
body: <p>I have an interactive PDF form. I can fill out this form, but I also want to add one image at bottom of the PDF dynamically. Images vary according to logged in user. </p>
  
  <p>How i can add an image?  I'm using following code to create a data table:</p>
  
  <pre><code>DataTable dt = new DataTable();
  String pdfPath1 = Server.MapPath("pdfs\\transmittal2.pdf");
  if (File.Exists(pdfPath1)) {
      dt = objClsTransmittal.GetTransmittal(jobid, cid);
      String comment = "Correspondence generated for " + dt.Rows[0]["Recipient"].ToString();
      var formfield = PDFHelper.GetFormFieldNames(pdfPath1);
      formfield["Enter Date"] = DateTime.Now.ToLongDateString();
      formfield["Contact Name"] = dt.Rows[0]["Recipient"].ToString();
      formfield["Enter Project Name"] = dt.Rows[0]"PropertyAddress"].ToString();
      formfield["Enter Project Number"] = dt.Rows[0]["JobID"].ToString();
      formfield["Company Name"] = dt.Rows[0]["Company"].ToString();
      formfield["Company address"] = dt.Rows[0]["Address1"].ToString();
      formfield["City State ZIP"] = dt.Rows[0]["address2"].ToString();
      formfield["User Name"] = dt.Rows[0]["Recipient"].ToString();
      formfield["Combo Box11"] = "Select from List";    
      var pdfcontent = PDFHelper.GeneratePDF(pdfPath1, formfield);
      PDFHelper.ReturnPDF(pdfcontent, "Transmittal.pdf");
  }
  </code></pre>
  
  <p>I'm looking forward to replies.</p>
  
  <p><strong>Editor's note:</strong> I've edited this question for language. Maybe I should also have removed the code snippet as it's an irrelevant part of the code. The relevant part is in the <code>GeneratePDF()</code> method that isn't shown anywhere. In my answer, I added a couple of lines that indicate what's probably done in <code>GeneratePDF()</code>. (Bruno Lowagie)</p>