We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Check page extraction of pdf in java

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;

test.pdf (52.1 KB)
test2.pdf (52.3 KB)

@amitchakravarthy,

Thanks for sharing further details.

We have logged an investigation ticket as PDFJAVA-39411 in our issue tracking system. We will further look into details of it and keep you posted with the status of its resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.