Hello, we are seeing an issue with Apose.PDF 18.1 where if we try to get info for PDF file encrypted with 256 AES encryption: Following properties are not working as expected:
Scenario 1: PDF File has only User password:
- In this case, when we use the Aspose.Pdf.Facades.PdfFileInfo to check the properties of the file:
- HasEditPassword : Returned true, whereas it does not have an Owner password.
- PasswordType: Return ‘User’ correctly.
Scenario 2: PDF File has both User and Owner password: And owner password provided while opening the document:
- In this case, when we use the Aspose.Pdf.Facades.PdfFileInfo to check the properties of the file:
- HasEditPassword : Throws Invalid password exception.
- PasswordType: Inaccessible
- Does not open the document.
Scenario 3: PDF File has only Owner password: And owner password provided while opening the document:
- In this case, when we use the Aspose.Pdf.Facades.PdfFileInfo to check the properties of the file:
- HasEditPassword : Throws Invalid password exception.
- PasswordType: Inaccessible
- Does not open the document.test_open_change_pwd.pdf (27.5 KB)
Note: It is working correctly for pdf documents with 128 bit AES.
We would like to restrict document editing until the user provides correct ‘Owner’ password. This issue is a hindrance to achieve that goal. Please let us know if there is a workaround for that functionality.
Attaching sample pdf, the user password is: open and owner password is: change.
test_open_change_pwd.pdf (27.5 KB)