OnPassword
Events, security, document management
Description
Fires after LoadFromFile, LoadFromStream or LoadFromString rejects a password
The initial password parameter is attempt one, so the first callback receives AttemptNumber=2
Set Password to the next credential and Retry=True to continue, or leave Retry=False to cancel with LastErrorCode 404
Each attempt uses fresh parser and decryption state and a load request is limited to sixteen total attempts
Syntax
Delphi
Property TPDFlib.OnPassword: TPDFlibPasswordEvent Read FOnPassword Write FOnPassword;