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.