Click or drag to resize

RequestPdfDocumentPasswordResponsePassword Method

Creates a RequestPdfDocumentPasswordResponse that notifies the browser to use the password password to load the encrypted PDF document.

Namespace:  DotNetBrowser.Browser.Handlers
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.3
Syntax
C#
public static RequestPdfDocumentPasswordResponse Password(
	string password
)

Parameters

password
Type: SystemString
The password for the encrypted PDF document.

Return Value

Type: RequestPdfDocumentPasswordResponse
The RequestPdfDocumentPasswordResponse instance that can be used as a return value in RequestPdfDocumentPasswordHandler implementation.
Exceptions
ExceptionCondition
ArgumentException The password is null, empty, or contains only blank characters.
Remarks

If the provided password is incorrect, the browser will fail to load the frame with the PDF document.

See Also