Click or drag to resize

IBrowserRequestPdfDocumentPasswordHandler Property

Gets or sets a handler that is used when the frame requests the password for an encrypted PDF document.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.0
Syntax
C#
IHandler<RequestPdfDocumentPasswordParameters, RequestPdfDocumentPasswordResponse> RequestPdfDocumentPasswordHandler { get; set; }

Property Value

Type: IHandlerRequestPdfDocumentPasswordParameters, RequestPdfDocumentPasswordResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
Remarks

Use the Password(String) method to provide the password for the encrypted PDF document.

Use theShowPasswordDialog method to invoke the default PDF viewer password dialog.

Use theCancel method to cancel the request.

If an exception occurs inside the handler implementation, the default behavior will be applied - the method Cancel will be used.

See Also