cancel
Showing results for 
Search instead for 
Did you mean: 

Lock/Password in pdf of Adobe forms

Former Member
0 Kudos

Hi,

I want to include password /lock concept means when user run the program the pdf should be downloaded with password. so that only the person who runs the report can able to see the output using the password

Accepted Solutions (1)

Accepted Solutions (1)

vaibhav_tiwari
Contributor
0 Kudos

Hi Anurodh,

Just do the following:

1. Put all the subforms in a single subform your pdf form.

2. Create another subform to get password from user. On it create a password field and a button.

3. Now suppose in your pdf the main subform let 'A' contains subforms A1, A2, A3. A3 is password form.

4. Then write the following code in the form:ready event of the A:

$.A1.presence =  "hidden"
$.A2.presence =  "hidden"

5. Write the following code in the click event of the button on the subform for password i.e. A3.

if( PasswordField1.rawValue == "password" )
then
A.A1.presence = "visible"
A.A2.presence = "visible"
$.parent.presence = "hidden"
else
$host.messageBox("Wrong Password!!!!!")
endif

Hope it will help to create a password protected pdf form.

Regards,

Vaibhav Tiwari.

Answers (0)