Constructor PdfStandardEncryptionHandler
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
PdfStandardEncryptionHandler(string, string)
Creates a new instance of Standard Security encryption handler with the specified owner and user passwords.
public PdfStandardEncryptionHandler(string ownerPassword, string userPassword)
Parameters
ownerPasswordstringThe owner password to use while encrypting data.
userPasswordstringThe user password to use while encrypting data.
Remarks
If userPassword is null or empty string, then users of the
encrypted document will be able to open it without a password.
If both ownerPassword and userPassword are
null or empty string, an instance of the PdfException will be
thrown.
Read the Encrypt PDF documents in C# and VB.NET article for examples of using this constructor.