ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to get the Password entered by user for opening encrypted PDF files?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
736 Posts

Posted - Jul 25 2026 :  01:41:12  Show Profile  Reply
Hello,

ImageEnview is setup to auto prompt for password when opening encrypted PDF files.
IEGlobalSettings().AutoPromptForPassword


When user opens any locked/encrypted PDF file, ImageEnview auto prompts for password and opens the file.

After the file is successfully opened I want to retrieve the password and save it so in future when that same file is opened again the saved password will automatically get applied so user will not have to reenter the password.

How to do this?

Yogi Yang

xequte

39489 Posts

Posted - Jul 26 2026 :  21:23:00  Show Profile  Reply
Hi Yogi

Firstly, please note that in newer versions of ImageEn, IEGlobalSettings().AutoPromptForPassword is now:

ImageEnView1.IO.AutoPromptForPassword := True;

And the default is FALSE.

https://www.imageen.com/help/TImageEnIO.AutoPromptForPassword.html


In the current beta, the password the user supplied is available via: ImageEnView1.PdfViewer.Document.LastPassword


You can email me for the beta.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: