title: I want add digital signature in my dynamic pdf with using itext sharp and in signature insert acrofield
body: <p>I was trying to insert textfield in digtal signature with using itextsharp but not able to insert that text in esignature.</p>
  <p>My code please check Also I want verify that signature still not able to do this code any suggestion would be appriciate..</p>
  <p><a href="https://imgur.com/SF11oH1" rel="nofollow noreferrer">https://imgur.com/SF11oH1</a></p>
  <pre><code>public void Sign(string SigReason, string SigContact, string SigLocation, bool visible)
  {
      string password = @&quot;123&quot;;
      PdfReader reader = new PdfReader(this.inputPDF,new System.Text.ASCIIEncoding().GetBytes(password));
      //Activate MultiSignatures
      PdfStamper st = PdfStamper.CreateSignature(reader, new FileStream(this.outputPDF, FileMode.Create, FileAccess.Write), '\0', null, true);
      //To disable Multi signatures uncomment this line : every new signature will invalidate older ones !
      //PdfStamper st = PdfStamper.CreateSignature(reader, new FileStream(this.outputPDF, FileMode.Create, FileAccess.Write), '\0'); 
      //string pdfTemplate = Server.MapPath(&quot;~/Data/PADForm.pdf&quot;);
      //string newFile = Server.MapPath(&quot;~/Data/newFile.pdf&quot;);
  
      //signPdfFile(sourceDocument, destinationPath, stream, &quot;123&quot;, &quot;testing&quot;, &quot;testing&quot;);
      //PdfReader pdfReader = new PdfReader(pdfTemplate, new System.Text.ASCIIEncoding().GetBytes(password));
      //PdfStamper pdfStamper = new PdfStamper(reader, new FileStream(this.outputPDF, FileMode.Create));
      string imageURL = @&quot;C:\Users\amitrs\Desktop\FSI SS\204-25.png&quot;;
      iTextSharp.text.Image jpg = iTextSharp.text.Image.GetInstance(imageURL);
     // Resize image depend upon your need
      jpg.ScaleToFit(140f, 120f);
      //Give space before image
  
      jpg.SpacingBefore = 10f;
  
      //Give some space after the image
  
      jpg.SpacingAfter = 1f;
  
      jpg.Alignment = Element.ALIGN_LEFT;
      AcroFields pdfFormFields = st.AcroFields;
      pdfFormFields.SetField(&quot;DigitalSignature&quot;, &quot;Amit&quot;);
      pdfFormFields.SetField(&quot;Signature&quot;, &quot;Amit Saini&quot;);
      st.MoreInfo = this.metadata.getMetaData();
      st.XmpMetadata = this.metadata.getStreamedMetaData();
      PdfSignatureAppearance sap = st.SignatureAppearance;
     
      
      sap.SetCrypto(this.myCert.Akp, this.myCert.Chain, null, PdfSignatureAppearance.VERISIGN_SIGNED);
      sap.Reason = SigReason;
      sap.Contact = SigContact;
      sap.Location = SigLocation;            
      if (visible)
          sap.SetVisibleSignature(new iTextSharp.text.Rectangle(100, 100, 250, 300), 1, null);
      
      st.Close();
  }
  </code></pre>