Question
2
Replies
1190
Views
Posted: August 20, 2019
Last activity: August 21, 2019
Closed
How to check file (Attachment) is password protected or not
We have requirement to check the attached file is password protected or not.
We have requirement to check the uploaded file PDF,doc extension (Attachment) is password protected or not. Need to display alert or message in screen if file is password projected.
***Edited by Moderator: Lochan to update platform capability tags; add content***
There is no OOTB rule to know whether it is password protected or not.
This would require a custom development effort to perform a method that would touch the suspect PDF, and determine if the PDF is password protected or not.
Example:
c# - checking if pdf is password protected using itextsharp - Stack Overflow
You can also do GOOGLE SEARCH TERMS:
"pdf detect if pdf is password protected howto"