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

Free Support Forum - aspose.com

Reading these privileges on PDF-file

Hi, I´m using the PdfFileSecurity-class of Aspose.PDF to set DocumentPrivileges on PDF-file. In PdfFileSecurity-class I can find the SetPrivilege-method. This works fine, but where can I find a method for reading these privileges on PDF-file?

Hi Marc,

Thanks for contacting support.

Once you have accessed PDF file using PdfFileSecurity class, you can use its properties to get information regarding PDF privileges. You may also consider following the instructions specified over How to - determine if the source PDF is password protected