title: ITextSharp PdfCopy use examples
body: <p>I am trying to use <strong>PdfSmartCopy</strong> from <strong>ItextSharp</strong> but I cannot find any relevant examples in c#.</p>
  
  <p>The ideea is that I have a pdf containing form fields and the fields add <strong>700kb</strong> to the size of the pdf document. The original document without form fields was <strong>100kb</strong>.
  Any other sugestions are welcome, especially o reduce the pdf size consistently.</p>
  
  <p>(I optimised the generated PDF with adobe acrobat, and it reduced it to <strong>44kb</strong>. So there must be a glitch somewhere.)
  Is there any way to reduce the PDF size?</p>
  
  <p>Edit: FormFlatenning doesn't help. The pdf template file contains only text, lines and tables, no images.</p>
  
  <p>here's my code snippet</p>
  
  <pre><code>        PdfReader reader = new PdfReader(GetTemplateBytes());
          pst = new PdfStamper(reader, Response.OutputStream);
          var acroFields = pst.AcroFields;
  
          pst.FormFlattening = true;
          pst.FreeTextFlattening = true;
  
          SetFieldsInternal(acroFields);
  
          pst.Close();
  </code></pre>