Question2Replies1190Views×Close popoverWasim Pathan (WASIMKHAN) 3i infotech Ltd 3i infotech Ltd US View Profile WASIMKHAN Member since 2012 3 posts 3i infotech Ltd Posted: August 20, 2019Last activity: August 21, 2019Posted: 20 Aug 2019 17:36 EDTLast activity: 21 Aug 2019 0:55 EDT Closed How to check file (Attachment) is password protected or notWe 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 popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post 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 agoPosted: 20 Aug 2019 19:27 EDT×Close popoverSusan Liu (SusanLiu_GCS) PEGA Principal Software Solutions Engineer Pegasystems Inc. US View ProfileSusanLiu_GCS PEGA replied to WASIMKHANThere 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 agoPosted: 20 Aug 2019 20:23 EDT×Close popoverWai-Kei Kwok (WaikeiKwok_GCS) PEGA Principal Software Solutions Engineer Pegasystems Inc. US View ProfileWaikeiKwok_GCS PEGA replied to WASIMKHANhttps://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.