Question
How to find out if any PDF file is encrypted or not
Hello
I have a requirement to read text from PDF so we have used getpdftext but if the user uploads password protected PDF file , the function getpdftext is throwing the below error-
Expression evaluation error at function 'getpdftext': Cannot decrypt PDF, the password is incorrect
If the file is password protected, I need to by pass the flow which is going to getpdftext, So Before only I need to check if the file is password protected or NOT. Can any one please suggest how to achieve this.
