PdfPublicKeyEncryptionHandler.AddRecipient Method (X509Certificate2, PdfPermissions)

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

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void AddRecipient(
	X509Certificate2 certificate,
	PdfPermissions permissions
)
VB
Public Sub AddRecipient ( 
	certificate As X509Certificate2,
	permissions As PdfPermissions
)

Parameters

certificate
Type: System.Security.Cryptography.X509Certificates.X509Certificate2
The certificate to use while encrypting data.
permissions
Type: BitMiracle.Docotic.Pdf.PdfPermissions
The permissions to grant for the recipient.

See Also