title: Programmatically check if pdf is a Form with iTextSharp
body: <p>I'm trying to collect some metadata about pdf files on our server.  I'd like to know whether or not they are a form, and if so, if they can be saved or must be printed.  Does something like iTextSharp expose that kind of information?</p>
  
  <p>Here's a code sample where I can </p>
  
  <pre class="lang-vb prettyprint-override"><code>Private Sub GetPDFInfo(ByVal path As String)
      If File.Exists(path) Then
          Dim reader As New PdfReader(path)
          'sample metadata exposed
          Dim numberOfPages = reader.NumberOfPages
  
          'what to call to get form info?
  
      End If
  End Sub
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Here's what I mean by being able to save or not:
  <img src="https://i.imgur.com/LecozqA.png" alt="demo1">
  <img src="https://i.imgur.com/CFfBC9w.png" alt="demo2">
  I'm not sure where this information lives, but each form has some kind of indication of whether or not the form data can be saved locally.</p>