title: Allow more then 1 encryption permission itext
body: <p>I am trying to create a readable pdf that can be open with 2 different password(and is encrypted).
  I also want that the pdf have more than 1 permission : printing and screenreadears.</p>
  
  <p>How can I do this? I have tried with :</p>
  
  <pre><code>    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
      PdfWriter writer = PdfWriter.getInstance(document,byteArrayOutputStream);
      writer.setPdfVersion(PdfWriter.VERSION_1_7);
      writer.setEncryption(firstPass, secondPass, PdfWriter.ALLOW_PRINTING, PdfWriter.ENCRYPTION_AES_256);
      writer.setEncryption(firstPass, secondPass, PdfWriter.ALLOW_SCREENREADERS, PdfWriter.ENCRYPTION_AES_256)
  </code></pre>
  
  <p>But obviously it takes only the second permission, so what I have to do?</p>