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

Free Support Forum - aspose.com

Checking if PDF is SECURED (by password)


Trying to check whether PDFs have any security before I process them through my .Net application - want to show warning message if Secured file.

Tried using SetPrivilege (DocumentPrivilege.Assembly) on a file I know to be secured by password - but that reports it returns true and blank output file produced.

What’s the best way to simply check if a PDF file is secured? Would looking at fileinfo work?


sorted it - using PdfFileInfo and checking BeEncrypted value.