title: pdfbox 2.0.16 , setCanFillInForm not working
body: <p>I prepared a template with form fields. Using my java code i fill the template with data as needed and save as another pdf.
  I dont want form fields to be edited after my program fills the data.
  I tried following code and it is not working:</p>
  <pre><code>    AccessPermission ap = new AccessPermission();
      ap.setCanModify(false);
      ap.setCanFillInForm(false);
      ap.setReadOnly();
      StandardProtectionPolicy spp = new StandardProtectionPolicy(&quot;owner-password&quot;, &quot;&quot;, ap);
      spp.setEncryptionKeyLength(128);
      pDDocument.protect(spp);
  </code></pre>
  <p>Also, directly setting accesspermission:</p>
  <pre><code>pDDocument.getCurrentAccessPermission().setCanFillInForm(false);
  pDDocument.getCurrentAccessPermission().setCanModify(false);
  pDDocument.getCurrentAccessPermission().setReadOnly();
  </code></pre>
  <p>Both options didnt work. I am able to edit the form field. Can someone please help</p>