Detecting if a PDF is Password-Protected (encrypted)

Greetings,

Some PDF documents we deal with are password-protected.

We require a way to detect if a PDF file is encrypted/password-protected.

This is required for us as we need access to the encrypted vector data.

Thanks for your time

Using DynaPDFMBS, I can achieve this by using DynaPDFMBS.GetInIsEncrypted with DynaPDFMBS.DecryptPDF

Great. Have fun with our plugin!

Thanks Christian