PdfLoadingEncryptedEventArgs Class
Represents data for an event that occurs when a PDF document is being loaded from an encrypted PDF file.
public sealed class PdfLoadingEncryptedEventArgs : EventArgsPublic NotInheritable Class PdfLoadingEncryptedEventArgs
Inherits EventArgs- Inheritance:
- System.ObjectSystem.EventArgsPdfLoadingEncryptedEventArgs
Properties
Encryption
Gets the encryption-related information for a PDF file from which a PDF document is being loaded.
public PdfEncryption Encryption { get; }Public ReadOnly Property Encryption As PdfEncryptionProperty Value
The encryption-related information for a PDF file from which a PDF document is being loaded.
Methods
SetPassword(String)
Sets the password used to load a PDF document from a password-encrypted PDF file and returns true if the password is correct.
public bool SetPassword(string password)Public Function SetPassword(password As String) As BooleanParameters
password- System.String
The password used to load a PDF document from a password-encrypted PDF file.
Returns
- System.Boolean
false if password is invalid; otherwise, true.
Exceptions
- System.ArgumentNullException
password is null.