Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Enabling Tools for Adobe Reader

Avatar

Level 3

I have finished a form that includes a large number of 'preSave' scripts. Once the form is 'signed' instructional information becomes hidden, and only completed fields remain. My problem is I need to save the form to enable rights for users with Adobe Reader. When I 'save as' all the information disappears. Is there any way around this? Pretty desperate for any help - thanks!!

1 Accepted Solution

Avatar

Correct answer by
Level 7

So I see the problem and I agree that the applying reader extension and saving then marks the file. Another option may be to do the action on a button. I would have the user fill in a field or fields assuming they are required. On pre-save you could write a script something like:

if(textfield1.rawValue != to null){

Button1.execEvent("click") // this would be a hidden button that would then perform your lock on the pre-save

}

its a bit more complex but could get you beyond your presave with reader extension issue.

View solution in original post

8 Replies

Avatar

Level 10

You may have to add a check into your preSave events, if the form has been already been Reader-enabled or not: so they will only be executed if so.

if (event.target.appRightsValidate({}, 1, false) === true ) {

    // add your preSave script here …

}

Avatar

Level 7

where did you reader enable the form. I save the form then open it in Adobe Acrobat and select File-> Save As Other -> Reader Extend PDF

Avatar

Level 3

That's how I tried to reader enable the form - that's when all actions in the preSave events executed.

Avatar

Level 7

that is sort of interesting. I would have thought that a pre-save function would be protected from a reader extension. What is the action  you are taking on the presave? Maybe there is another way to accomplish it.

Avatar

Level 10

To reader-enable a form means to add a special certificate that carries the additional rights for the reader and then saving it.

Avatar

Level 3

A person completes the form and saves a copy (this saved copy has certain fields still active for another user to complete). The form includes instructional information - I've used this.presence = "hidden" in preSave so this information disappears in the saved version.

Avatar

Correct answer by
Level 7

So I see the problem and I agree that the applying reader extension and saving then marks the file. Another option may be to do the action on a button. I would have the user fill in a field or fields assuming they are required. On pre-save you could write a script something like:

if(textfield1.rawValue != to null){

Button1.execEvent("click") // this would be a hidden button that would then perform your lock on the pre-save

}

its a bit more complex but could get you beyond your presave with reader extension issue.

Avatar

Level 3

Thanks for that - works for what I need. Has taken a while to make the changes but I finally have something I can use. Cheers!!!