title: Show/Hide AcroFields in iTextSharp
body: <p>I have the following code:</p>
  
  <pre><code>PdfStamper pst = null;
          try
          {
              PdfReader reader = new PdfReader(GetTemplateBytes());
              pst = new PdfStamper(reader, Response.OutputStream);
              var acroFields = pst.AcroFields;
  
              pst.FormFlattening = true;
              pst.FreeTextFlattening = true;
              pst.SetFullCompression();
  
              SetFieldsInternal(acroFields);
              pst.Close();
          }
  
  protected override void SetFieldsInternal(iTextSharp.text.pdf.AcroFields acroFields)
  {
      acroFields.SetFieldProperty("txtForOffer", "setflags", PdfAnnotation.FLAGS_PRINT, null);
  }
  </code></pre>
  
  <p>How do I <strong>show / hide</strong> the acrofields in the SetFieldsInternal function ?</p>
  
  <p>The point is that the user may want to download 2 versions of the PDF, one with some text showing, one without text showing.</p>
  
  <p>The template PDF is generated using OpenOffice. I just fill in the acrofields.</p>