Copy link to clipboard
Copied
I have hundreds of PDF files edited as forms. The forms contain a button that is linked with javascript code. Is it possible to make a sweeping change in all the code of the files, without entering each file individually
It's actually called "Button1". It's important to use the correct field name.
If you have Acrobat Pro you can do it by running an Action on the files that executes the following JavaScript command:
this.getField("Button1").setAction("MouseUp", "NewCodeGoesHere");
Replace "NewCodeGoesHere" with a string representation of the new code to use.
Copy link to clipboard
Copied
Depends. What kind of change?
Copy link to clipboard
Copied
Hi,
Are you able to share a file so we can see the make up as it may or may not be possible? (It probably isn't going to be easy though)
Malcolm
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
OK, and what changes do you want to make to it?
Copy link to clipboard
Copied
there is a button called "botton1" which contain java script code,
i want to change the code in it
Copy link to clipboard
Copied
It's actually called "Button1". It's important to use the correct field name.
If you have Acrobat Pro you can do it by running an Action on the files that executes the following JavaScript command:
this.getField("Button1").setAction("MouseUp", "NewCodeGoesHere");
Replace "NewCodeGoesHere" with a string representation of the new code to use.
Copy link to clipboard
Copied
it works great.
another question:
what if i want to add to the action wizard the command that saves the document as "reader extended save"?
Copy link to clipboard
Copied
what if i want to add to the action wizard the command that saves the document as "reader extended save"?
Copy link to clipboard
Copied
Not possible.
Copy link to clipboard
Copied
isn't there a acript that can make this action?
Copy link to clipboard
Copied
No. Adobe didn't want users to be able to automate this task, as it's was selling a special server tool that does it. However, the Reader Rights are not needed any longer, if the users use Reader DC. In fact, they can actually cause issues, so it's better not to apply them.
Copy link to clipboard
Copied
So the best thing is not to do anything? Is it that easy to mess up everything?
Copy link to clipboard
Copied
Yes, it's best not to do anything. Just instruct your users to use the latest version of Reader, and it should work fine.