Hi i have written the below code but for test.pdf it returns true & for test2.pdf it is returning false even though both the documents have page extraction as not allowed. what could be the issue.
password for both the files is 123
boolean ExtractPageAllowed = (pdfDocument.getPermissions() & (Permissions.ExtractContent)) == Permissions.ExtractContent;