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
certificateX509Certificate2The certificate to use while encrypting data.
permissionsPdfPermissionsThe 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
keyStorePathstringThe path to the PFX / PKCS #12 key store file.
passwordstringThe password to read the key store file.
permissionsPdfPermissionsThe 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
keyStoreStreamStreamThe stream with the PFX / PKCS #12 key store contents.
passwordstringThe password to read the key store stream.
permissionsPdfPermissionsThe permissions to grant for the recipient.
Remarks
The Encrypt PDF documents in C# and VB.NET article describes how to encrypt PDF documents.