Skip to main content
Known Participant
July 19, 2023
Question

Password Protect PDF with Button JavaScript

  • July 19, 2023
  • 1 reply
  • 479 views

Just like the title suggests, I want to create a custom button. Once the user clicks on the button, they'll have the choice to enter their own password (or I can set one in the code.) Then, when someone tries to open the document, they'll be asked to enter the password they either picked or that I set in the code. If the password is wrong, no access to the PDF will be granted. Do you think this can be done?

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
July 19, 2023

NO

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often