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