Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.2k views
in Technique[技术] by (71.8m points)

using javascript to password protect pdf

How do I password protect a pdf using javascript? I know it's possible to apply a security policy to a pdf with javascript, but how can I get access to the login username and password?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can definitely use Javascript to manipulate your .pdf's ... as long as you're using Acrobat Reader. I've used it to do bookmarks; I imagine you can also support username/password operations.

Here's the official documentation:

http://partners.adobe.com/public/developer/pdf/topic_js.html

This link may (or may not) also be applicable:

http://acrobatusers.com/forum/forms-livecycle-designer/protect-field-javascript/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...