Table of Contents

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

ownerPassword string

The owner password to use while encrypting data.

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