title: .net, Itextsharp, how to flatten comments (specifically stamps)?
body: <p>In short, I'm having issues specifically "flattening" stamp comments in PDF's while using Itextsharp. The effect I'm looking for is identical to what you get when you "print to PDF" from Acrobat (the stamp can no longer be moved/edited/etc. but you can still select any text it might have). Using some very simple Javascript code also seems to work just fine (this.flattenPages). </p>
  
  <p>This problems seems to specifically pertain to stamps, which is the real trick of it. I've successfully used the pdfstamper class to flatten some other kinds of page comments and annotations (e.g. text boxes) using:</p>
  
  <pre><code>   stamper.FormFlattening = True 
     stamper.FreeTextFlattening = True
  </code></pre>
  
  <p>But this does NOT work for the any stamps I've tried (the default included in Acrobat or user created). The document just comes out on the other end with the same editable stamp. So... any ideas? And please let me know if there's any additional information I can provide. Thanks. </p>
  
  <p>Update: Obviously this is not the same as other annotations. For whatever it's worth, the stamps (specifically) show up as overcontents. How one would go about changing a flag or otherwise merging/flattening it onto the page is something else I can't find documentation for. </p>