TImageEnMIO.AutoPromptForPassword
Declaration
property AutoPromptForPassword: Boolean;
Description
Specifies whether a password prompt is displayed when opening an encrypted PDF file using the
PDFium PlugIn or an encrypted ZIP file using the
SevenZip PlugIn (when no password or an invalid password has been specified).
When True, an input dialog will be displayed showing a localized prompt, such as "Specify the password for this PDF file".
When False, loading will fail (
Aborting will be True).
Note: You can specify your own password handling using
TImageEnMIO.OnPassword or
TImageEnMView.OnPassword
Default: False
Examples
// Disable prompting for password
ImageEnMView1.MIO.AutoPromptForPassword := False;
ImageEnMView1.MIO.LoadFromFilePDF( 'D:\doc.pdf' );
Compatibility Information
Prior to v15.1.0, a global property was used IEGlobalSettings().AutoPromptForPassword instead. The default was previously True. It is now False.