EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Detect password protected PDF

Posted: 09/08/2015 07:28:35
by Snorre Olimstad (Basic support level)
Joined: 09/08/2015
Posts: 1

How can you detect if a pdf-file is password protected, and if so send an error msg back to the user. (C#)


if (passwordProtected == true)
alert('This file is password protected.');

We do not want to sign password protected PDF-files.

Thanks for any help at all :)
Posted: 09/08/2015 07:33:24
by Vsevolod Ievgiienko (Team)

Thank you for contacting us.

You can use TElPDFDocument.Encrypted property to check if the document is encrypted: https://www.eldos.com/documentation/sb...ypted.html

If its 'true' then you can check the type of TElPDFDocument.EncryptionHandler property. It should be equal to TElPDFPasswordSecurityHandler for password protected files.

Also I’ve noticed there is no Support Access Ticket linked to your user account on EldoS site. Technical Support is provided to customers with the linked Support Access Ticket. You will find your Support Access Ticket together with all the details about how to use it in the registration e-mail that we’ve sent to you upon the purchase.

If you are evaluating the product and don't have a license yet, please let us know and then you can have support according to Basic support level. Basic support level includes answering basic technical questions that appear during product evaluation period. We also offer Premium support for a purchase from https://www.eldos.com/support/calc.php . You can use Premium Support to get higher level of assistance during your evaluation of our products.



Topic viewed 1149 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!