ImageEn, unit iesettings

TIEGlobalSettings.AutoPromptForPassword

TIEGlobalSettings.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 OnPassword

Default: True


Examples

// Disable prompting for password
IEGlobalSettings().AutoPromptForPassword := False;
ImageEnView1.IO.LoadFromFilePDF( 'D:\doc.pdf' );