Method Password
- Namespace
- DotNetBrowser.Browser.Handlers
- Assembly
- DotNetBrowser.dll
Password(string)
Creates a RequestPdfDocumentPasswordResponse that notifies the browser to
use the password password to load the encrypted PDF document.
public static RequestPdfDocumentPasswordResponse Password(string password)
Parameters
passwordstringThe password for the encrypted PDF document.
Returns
- RequestPdfDocumentPasswordResponse
The RequestPdfDocumentPasswordResponse instance that can be used as a return value in RequestPdfDocumentPasswordHandler implementation.
Remarks
If the provided password is incorrect, the browser will fail to load the frame with the PDF document.
Exceptions
- ArgumentException
The
passwordis null, empty, or contains only blank characters.