Is it posible to check if pdf file is password protected using Telerik Tools?
All the best
1 Answer, 1 is accepted
0
Tanya
Telerik team
answered on 22 Apr 2021, 11:54 AM
Hello Zygmunt,
The import settings of the PdfFormatProvider class (used to import PDF documents in PdfProcessing) expose an event that is fired when the document is password-protected - UserPasswordNeeded. You can use that event to determine whether a password is needed for opening the document. For more details and examples on the matter, please check the Settings help topic for PdfFormatProvider.