Ddisplay a password-protected PDF in the browser but to pass the User password via program.
The requirement is to display a password-protected PDF in the browser but to pass the User password programmatically.
I am using the MERN stack and used ADOBE API Tool to create and protect PDF. I want to know can I display this PDF within a webpage (using iframe or any other solution) without the user needing to input the password manually.
The moto here is to - while displaying in the browser, the user should not be prompted to key in the password and hence the password should be supplied by the application, However, if the user downloads the PDF and then tries to open it, he should be prompted to enter the password.
