How to find out if any PDF file is encrypted or not

Certified Senior Developer

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.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to manojtumulu
    We are specifically looking for Appian officially supported plugins

    Appian will be quick to tell you that essentially no plug-ins are "appian supported", even the ones published by Appian.  That just means they aren't liable to help you out via a support case if you have some error with one of them.  You and the client should understand that "officially supported" does not mean what you think it means, and should not require you to forego needed functionality in the name of "avoiding plug-ins", as it's just more painful for everyone.

Children
No Data