"Permissions check failed (invalid Perms value)."

Hi,

Getting this on the attached PDF (Password is the number 1)
PDF with Password.pdf (15.8 KB)

“Permissions check failed (invalid Perms value).”

" at #=qaw8tu9d3q8OTraPED5lcv4pSiXfOYU59e2jbgVrQw_w=.#=zybsaIbyK55pxQ5re_ehnAsh0W7mD(Object #=zggoX_hc=)\r\n at #=qaw8tu9d3q8OTraPED5lcv4pSiXfOYU59e2jbgVrQw_w=.#=zc4Y9PSfQc7wkjfpAYlMPeVy64vjx()\r\n at #=qaw8tu9d3q8OTraPED5lcv4pSiXfOYU59e2jbgVrQw_w=.#=zUekl5R1YWaaR1JU8veFWjWImNhlbZXYPOIR6Oz4=(Object #=zggoX_hc=, UInt32 #=z1Qmeufg=)\r\n at #=qaw8tu9d3q8OTraPED5lcv4pSiXfOYU59e2jbgVrQw_w=.#=zjxmvzTT1IyYWo77inK84w_0BluSm(Boolean #=zggoX_hc=)\r\n at #=qaw8tu9d3q8OTraPED5lcv4pSiXfOYU59e2jbgVrQw_w=.#=z0FjJYPhFNO580AtliaiywLTX5D_HpHetqYSxSfFUfevd()\r\n at #=qaw8tu9d3q8OTraPED5lcv4pSiXfOYU59e2jbgVrQw_w=.#=zGzlUtNtff8dh6uTg0q2G2j056UGMKT_G5Ca2UciY4yb0(Object[] #=zggoX_hc=, Type[] #=z1Qmeufg=, Type[] #=zjGWNr$Y=, Object[] #=z$$ISRSw=)\r\n at #=qaw8tu9d3q8OTraPED5lcv4pSiXfOYU59e2jbgVrQw_w=.#=z1or4m4FQdgi_6Y2W$o2E8MfQRK8xINMte89YMkc=(Stream #=zggoX_hc=, String #=z1Qmeufg=, Object[] #=zjGWNr$Y=, Type[] #=z$$ISRSw=, Type[] #=z7tTEBNw=, Object[] #=zUig3CKw=)\r\n at #=qaw8tu9d3q8OTraPED5lcv4pSiXfOYU59e2jbgVrQw_w=.#=zrhne4CR1AiloZ41MJSz3iz0=(Stream #=zggoX_hc=, String #=z1Qmeufg=, Object[] #=zjGWNr$Y=)\r\n at #=qaw8tu9d3q8OTraPED5lcv4pSiXfOYU59e2jbgVrQw_w=.#=zLD06QQ64P3Xbm7ebzWOKFPCsGkpK(Stream #=zggoX_hc=, String #=z1Qmeufg=, Object[] #=zjGWNr$Y=)\r\n at #=zMHZfRB8IF2PFe3JmdRv7j2NJX6w1A7jXRw==.#=znlurEsSJNyy6(StringBuilder #=z4wMEcWY=, #=zxn1vyKCx4VUjL9SPojAhVMNhjzd3NkTetyRHQbQ= #=zKLEhzQE=)\r\n at #=zMHZfRB8IF2PFe3JmdRv7j2NJX6w1A7jXRw==…ctor(Stream #=zwVQPcjk=, String #=z07y1Cj0=, Boolean #=z2Xm4Vs7gkliy)\r\n at #=zMHZfRB8IF2PFe3JmdRv7j2NJX6w1A7jXRw==…ctor(String #=zXOeIIWY=, String #=z07y1Cj0=)\r\n at #=zZO0x5RiO2Q50NQreSyqHh0pdIGS58$VEr5Y3CqY=.#=zmSlPxLk=(String #=zXOeIIWY=, String #=z07y1Cj0=)\r\n at #=zqkge6QF4H2XVokJj7yAqbVaCwCL7$jYByw==…ctor(String #=zXOeIIWY=, String #=z07y1Cj0=)\r\n at #=zZO0x5RiO2Q50NQreSyqHh0pdIGS58$VEr5Y3CqY=.#=zd9VBxfoxEF4Q(String #=zXOeIIWY=, String #=z07y1Cj0=)\r\n at #=zsEWxhfRwdVf1djN$MD3NVVbqKcMt.#=zMeF8JsA=(String #=zXOeIIWY=, String #=z07y1Cj0=)\r\n at #=zsEWxhfRwdVf1djN$MD3NVVbqKcMt…ctor(String #=zXOeIIWY=, String #=z07y1Cj0=)\r\n at Aspose.Pdf.Document.#=zVbdpm6w=(String #=zXOeIIWY=, String #=z07y1Cj0=)\r\n at Aspose.Pdf.Document…ctor(String filename, String password)"

Please advise

@GaryO

The error message “Permissions check failed (invalid Perms value)” typically occurs when attempting to open a PDF file that has certain restrictions or permissions set, and the provided password does not grant the necessary access rights.

In your case, it seems you are trying to open a password-protected PDF file using the password “1”. However, the error indicates that the permissions associated with the document are not valid or that the password provided does not match the expected permissions.

To resolve this issue, you can try the following steps:

  1. Verify the Password: Ensure that the password you are using is correct. If the password is indeed “1”, double-check for any leading or trailing spaces.

  2. Use the Correct Method: When opening a password-protected PDF, make sure you are using the appropriate method from the Aspose.PDF library. For example, in Java, you would typically use:

    Document pdfDoc = new Document("path/to/your/file.pdf", "1");
    
  3. Check Document Permissions: If you have access to the document’s permissions settings, verify that the permissions allow for the operations you are trying to perform (e.g., reading, editing).

  4. Test with Another PDF: If possible, try opening a different password-protected PDF file to see if the issue persists. This can help determine if the problem is specific to the document you are working with.

  5. Consult Documentation: For more detailed guidance on handling encrypted PDFs, refer to the Aspose documentation on setting privileges and decrypting PDF files. This documentation provides examples and best practices for managing PDF security.

If the problem continues after these steps, consider reaching out to Aspose support with the specific PDF file for further assistance.

Sources:
[1]: Error while open protected PDF file
[2]: Set Privileges, Encrypt and Decrypt PDF - Aspose Documentation

Please test with the document provided in original post. It can be opened in Acrobat

@GaryO

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-58222

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.