Question2Replies861Views WASIMKHAN Member since 2012 3 posts 3i infotech Ltd Posted: 1 year agoLast activity: 1 year 2 months ago 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 agoSusanLiu_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 agoWaikeiKwok_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.