title: Customize PDFStamper using iTextSharp
body: <p>I'm using iTextSharp to sign PDFs. When signing, it stamps the document with 4 fields: who signed, when, reason and location. What I meant to do is to add a field below (or above, that doesn't matter) with custom information.</p>
  
  <p>Any Idea?</p>
  
  <p>Here's my code that is generating the stamp:</p>
  
  <pre><code>PdfStamper stp = PdfStamper.CreateSignature(reader, memoryOut, '\0');
          PdfSignatureAppearance sap = stp.SignatureAppearance;
  
          iTextSharp.text.Rectangle rectangle = new iTextSharp.text.Rectangle(100, 100, 500, 200);
  
          sap.SetVisibleSignature(rectangle, stp.Reader.NumberOfPages, null);
          sap.SignDate = DateTime.Now;
          sap.SetCrypto(null, chain, null, null);
          sap.Reason = ssReason;
          sap.Contact = ssContact;
          sap.Location = ssLocation;
  
          sap.Acro6Layers = true;
          //sap.SignatureGraphic = iTextSharp.text.Image.GetInstance(ssImageUrl);
          //sap.SignatureGraphic.ScaleToFit(131, 45);
          sap.Render = PdfSignatureAppearance.SignatureRender.Description;
  </code></pre>