Table of Contents

Method AddOwner

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

AddOwner(X509Certificate2)

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

public void AddOwner(X509Certificate2 ownerCertificate)

Parameters

ownerCertificate X509Certificate2

The owner certificate to use while encrypting data.

Remarks

An owner certificate allows full (owner) access to the document. This unlimited access includes the ability to change the document's encryption and access permissions.

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

AddOwner(string, string)

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

public void AddOwner(string ownerKeyStorePath, string password)

Parameters

ownerKeyStorePath string

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

password string

The password to read the key store file.

Remarks

The certificate in the keystore is assumed to be an owner certificate.

An owner certificate allows full (owner) access to the document. This unlimited access includes the ability to change the document's encryption and access permissions.

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

AddOwner(Stream, string)

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

public void AddOwner(Stream ownerKeyStoreStream, string password)

Parameters

ownerKeyStoreStream Stream

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

password string

The password to read the key store stream.

Remarks

The certificate in the keystore is assumed to be an owner certificate.

An owner certificate allows full (owner) access to the document. This unlimited access includes the ability to change the document's encryption and access permissions.

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