PdfStandardEncryptionHandler Constructor

Creates a new instance of Standard Security encryption handler with the specified owner and user passwords.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfStandardEncryptionHandler(
	string ownerPassword,
	string userPassword
)
VB
Public Sub New ( 
	ownerPassword As String,
	userPassword As String
)

Parameters

ownerPassword
Type: System.String
The owner password to use while encrypting data.
userPassword
Type: System.String
The 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.

See Also