These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

auto input password from server side scripts

patelpiyushb
Registered: Dec 2 2008
Posts: 10

i design a intranet site using ASP-VB Script with a locally stored pdf files. When user click on a created link to point a pdf file, pdf file is open in browser.

Now i want that user will only able to open a file within my intranet site, so i apply a password to open a pdf file and require that password is hard coded in website's ASP code and upon click on a link a script in ASP will input the password in password field of encrypted pdf document and document will open without need of user password input. So ultimately whole process is transparent to user if user is try to open pdf file within my website, but if user save a copy of pdf file and try to open it outside of my website, he is unable to open it because he does not know the user password of pdf file.

As im begginer in programming and specially in JavaScript, please tell me the exact code example, so im able to put this method in my website.

Regards,
PIYUSH PATEL.

My Product Information:
Acrobat Pro Extended 9.0, Windows
plevy
Expert
Registered: Jul 8 2008
Posts: 80
As far as I know, this isn't possible. There is also a security issue with your approach since the password (known on the server) would have to be sent to the client in clear text where the document was to be opened.