Question 2 Replies 1595 Views × Close popover Wasim Pathan (WASIMKHAN) 3i infotech Ltd 3i infotech Ltd US View Profile Send Message WASIMKHAN Member since 2012 5 posts 3i infotech Ltd Posted: August 20, 2019 Last activity: August 21, 2019 Posted: 20 Aug 2019 17:36 EDT Last activity: 21 Aug 2019 0:55 EDT 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*** Security × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 1 year ago Posted: 20 Aug 2019 19:27 EDT × Close popover Susan Liu (SusanLiu_GCS) PEGA Principal Software Solutions Engineer Pegasystems Inc. US View Profile Send Message SusanLiu_GCS PEGA replied to WASIMKHAN 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" Posted: 1 year ago Posted: 20 Aug 2019 20:23 EDT × Close popover Wai-Kei Kwok (WaikeiKwok_GCS) PEGA Principal Software Solutions Engineer Pegasystems Inc. US View Profile Send Message WaikeiKwok_GCS PEGA replied to WASIMKHAN https://api.itextpdf.com/iText7/7.1.1/index.html?com/itextpdf/kernel/pdf/PdfReader.html PdfReader.isEncrypted() or PdfReader.isOpenedWithFullPermission() may be able to help.