can we check whether pdf is password protected or not?

  • 303 Views
  • Last Post 24 May 2016
Shridhar posted this 23 May 2016

Hi,

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

Oksana Serdyuk posted this 24 May 2016

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).

Close