Jump to content

showing the encrypted pdf file


Maybar

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...