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

Encrypt PDF using JavaScript before sumbitting via email

sse9175
Registered: Nov 10 2011
Posts: 1

I need to encrypt a PDF using a set password before the "Submit" finction is run. I have the sumbit button setup and want to add javascript to password protect before the pdf is part of an attachement of an email. This pdf form will be sent form outside users to a specific email address.

My Product Information:
Acrobat Pro 9.4.3, Windows
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
You can't.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Why not? Can't he use this.encryptUsingPolicy() if he has created the security policy he wants to use?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
He's talking about applying encryption on the client side, so (a) people will probably be using Reader; and (b) he can't define a policy on a remote system from a doc-level script even if they have Acrobat.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
If that's the case then it's indeed not possible.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
Acrobat.com uses a HTTPS protocol, secured… but not with a password.