c# - Javascript to automatically supply password -


i have application displays password protected pdfs using itextsharp.

pdfcopy.setencryption(true, "secretinfo", "secretinfo", 0);

if user saves pdf, saved copy of pdf password protected. great. problem prompts password before displaying pdf on browser. isn't good.

so i'm thinking maybe it's possible supply password using javascript display on browser. it's bad practice don't see have other choice. i'm no @ javascript. maybe here can me?

but hey if have idea of how best approach problem, please tell!

here's need happen:

display pdf on browser without prompting password. need saved copy password protected. no edit, print or copy. not view. unless user supplies password.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -