Copy link to clipboard
Copied
Hello!
I have a folder with a few hundred documents in it. These all have the same back page. We are updating some wording for the back page. Is there a way to target all of these files and apply a mass update to them all? I have played around a bit with the "Action Wizard" tool. This seems promising but I haven't been able to make it work quite right.
I'd like to: Delete current back page, Insert new back page, Save document in new folder.
Any help is greatly appreciated. Thank you!
Copy link to clipboard
Copied
Yes, by using a script. Let's say the path of the new back-page is C:\Files\NewBackPage.pdf .
Use an Action, as described above, but have it execute this JavaScript code instead of using the Replace Pages command:
this.replacePages(this.numPages-1, "/C/Files/NewBackPage.pdf");
Notice I used forwards-slashes in the file-path in the code, instead of the normal back-slashes. You must do the same!
Copy link to clipboard
Copied
Also, I am using Acrobat Pro 2020.
Copy link to clipboard
Copied
You can use the Action Wizard tool to replace page 2 of a PDF. Go to Tools> Action Wizard> New Action> Pages> Replace pages, click the plus sign (+) to add the action to the right side column. Scroll down to Save & Export> Save, add it to the right. Click on the settings of the added actions to complete the new action. When done, you can apply the action to a file, or a folder of files. Note, replace pages will retain any interactive features (like buttons or form fields) of the original PDF. If you need to replace those too, use the delete page and insert page actions instead.
Copy link to clipboard
Copied
That will only work if they all have the same number of pages.
Copy link to clipboard
Copied
Each document may have a different number of pages. Is there a work-around for this?
Copy link to clipboard
Copied
Yes, by using a script. Let's say the path of the new back-page is C:\Files\NewBackPage.pdf .
Use an Action, as described above, but have it execute this JavaScript code instead of using the Replace Pages command:
this.replacePages(this.numPages-1, "/C/Files/NewBackPage.pdf");
Notice I used forwards-slashes in the file-path in the code, instead of the normal back-slashes. You must do the same!
Copy link to clipboard
Copied
Thank you all so much. This worked out great and saved me probably a couple of days of insane boredom.
Thank you!

