Table of Contents

Method AddRecipient

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

AddRecipient(X509Certificate2, PdfPermissions)

Adds a new recipient with the specified permissions using the specified certificate.

public void AddRecipient(X509Certificate2 certificate, PdfPermissions permissions)

Parameters

certificate X509Certificate2

The certificate to use while encrypting data.

permissions PdfPermissions

The permissions to grant for the recipient.

Remarks

The Encrypt PDF documents in C# and VB.NET article describes how to encrypt PDF documents.

AddRecipient(string, string, PdfPermissions)

Adds a new recipient with the specified permissions using the specified key store file.

public void AddRecipient(string keyStorePath, string password, PdfPermissions permissions)

Parameters

keyStorePath string

The path to the PFX / PKCS #12 key store file.

password string

The password to read the key store file.

permissions PdfPermissions

The permissions to grant for the recipient.

Remarks

The Encrypt PDF documents in C# and VB.NET article describes how to encrypt PDF documents.

AddRecipient(Stream, string, PdfPermissions)

Adds a new recipient with the specified permissions using the specified stream with key store contents.

public void AddRecipient(Stream keyStoreStream, string password, PdfPermissions permissions)

Parameters

keyStoreStream Stream

The stream with the PFX / PKCS #12 key store contents.

password string

The password to read the key store stream.

permissions PdfPermissions

The permissions to grant for the recipient.

Remarks

The Encrypt PDF documents in C# and VB.NET article describes how to encrypt PDF documents.