ImageEn, unit imageenio

TImageEnIO.AutoPromptForPassword

TImageEnIO.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 TImageEnIO.OnPassword or TImageEnView.OnPassword

Default: False

Examples

// Disable prompting for password
ImageEnView1.IO.AutoPromptForPassword := False;
ImageEnView1.IO.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.