Skip to main content
Participant
July 26, 2022
Question

Simultaneously edit Document Javascripts across multiple PDFs

  • July 26, 2022
  • 1 reply
  • 484 views

I have multiple PDFs that all have a file upload section that has been coded in the Document Javascript section of each individual document, kudos to @try67 for helping put that code together, its wonderful.

(Heres the link to that code and solution: Solved: Add an "Attach File" button to a PDF form. - Adobe Support Community - 8812972)

 

I want to know if there is there a way that I edit the code in one place and have it update all of the Document Javascripts in the files, or do I need to go into each file individually and make the same changes.

 

Can I merge the files and then add things like buttons or actions to all of them at the same time, and then split them again? I need them split into separate PDFs because I have a Microsoft Power Automate workflow that requires their unique filenames. 

 

Thanks for any help

 

This topic has been closed for replies.

1 reply

Karl Heinz  Kremer
Community Expert
Community Expert
July 26, 2022

YOu can apply JavaScript programatically. If you can put the majority of your scripts into document level scripts, you can then run an action to update these scripts programatically. 

 

And yes, you can split PDF files from within Acrobat. You can even do that with JavaScript.