Maybar Posted March 14 Share Posted March 14 Can I enter the password of the encrypted PDF file automatically with the code while uploading it and show it in UniPDFFrame. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 14 Share Posted March 14 Hello, Need to check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15 Share Posted March 15 15 hours ago, Maybar said: Can I enter the password of the encrypted PDF file automatically with the code while uploading it and show it in UniPDFFrame. Do you even manage to enter the password and open it? Quote Link to comment Share on other sites More sharing options...
Maybar Posted March 15 Author Share Posted March 15 thanks Sherzod, I don't want him to ask for a password. i know the password. i want to enter the automatic password at the opening. good luck. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15 Share Posted March 15 So you at least have a solution that asks for a password from the user, if I understood you correctly. Quote Link to comment Share on other sites More sharing options...
Maybar Posted March 22 Author Share Posted March 22 Thanks Sherzod, The system automatically gives a password when creating PDF files, and the system stores this password in the database. I don't want him to ask for the password when showing the PDF file to the user in the Internet browser. I want the system to automatically enter the password and show the PDF file to the user. The user does not know the password of the PDF file. good luck. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 23 Share Posted March 23 Ok @Maybar Don't know yet, I will try to analyze. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 25 Share Posted March 25 @Maybar I think you need to use the following solution. I think at the moment in your case I see two options. Either enter the password when opening and showing the file, or it is possible to pass the password as a parameter when opening the file (not sure). In both cases, the user will be able to find out and see the password. So, it seems to me that you should use the pdf library on the server (some kind of library, I can’t recommend any specific library), which creates a temporary file on the server, "removes the password" from the file, and send this file to the client for viewing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.