Callback triggered when the current PDF cannot be opened/decrypted without a password.
Use it to override the default library password prompt and implement your own UX: show a modal, request password from a secure source, etc.
The library will wait for the returned Promise to resolve.
Details about the password request (e.g., wrong password, password required).
Promise that resolves with the password string. Reject to indicate cancellation.
Callback triggered when the current PDF cannot be opened/decrypted without a password.
Use it to override the default library password prompt and implement your own UX: show a modal, request password from a secure source, etc.
The library will wait for the returned Promise to resolve.