Community

can we check whether pdf is password protected or not?

Hi,

Is it possible to check whether PDF is password protected or not and level of encryption using finereder SD?

0

Comments

1 comment

  • Avatar
    Oksana Serdyuk

    There is not a separate method that allows to check whether a PDF file is password protected or not. But in case there is no password specified during the PDF file opening, when PDF is with password, then the appropriate exception will be thrown. For example, you can use this information in order to find out that the PDF file requires password. Also there is the IImagePasswordCallback interface, which is to be implemented on the customer's side (Help → API Reference → Image-Related Objects → IImagePasswordCallback).

    0

Please sign in to leave a comment.