Skip to main content
New Participant
October 4, 2021
Answered

Replacing the back page of multiple documents

  • October 4, 2021
  • 2 replies
  • 2187 views

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!

This topic has been closed for replies.
Correct answer try67

Each document may have a different number of pages. Is there a work-around for this?


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!

2 replies

Luke Jennings3
Community Expert
October 4, 2021

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.

try67
Community Expert
October 4, 2021

That will only work if they all have the same number of pages.

James_NAuthor
New Participant
October 4, 2021

Each document may have a different number of pages. Is there a work-around for this?

James_NAuthor
New Participant
October 4, 2021

Also, I am using Acrobat Pro 2020.