title: How do I programmatically hide and show parts of a PDF?
body: <p>I have a PDF with several form fields that I want to programatically create or remove, depending on what the user has inputted. For example, the form may need a collection of fields that represent a transaction, but the user may have more than one transaction that needs to be entered, or possibly none at all. How can I ensure that the PDF removes parts of the page that are unneeded, or inserts parts of the page when certain conditions are met? The current tools I can use are iTextSharp and Adobe Acrobat DC, but if those aren't viable options, I can use an alternative as long as it's free. Thank you.</p>
  
  <pre><code>// An example of what I'd like to do:
  for (int i = 0; i &lt; transactions.length; i++) 
  {
  // Insert title text (transaction i)
  // Insert transaction field
  // Insert transaction amount field
  }
  </code></pre>