PDF Editing Issues

How to Batch Add Footer Text Fields to PDF Files in Acrobat

Muhammad TalhaMuhammad Talha Nov 3, 2026 869 views

Question details

The user wants to learn how to automatically add three specific text fields to the footer of the first page across multiple invoice PDFs in a folder.

Product
Adobe Acrobat Pro
Device & OS
not provided
Scenario
Managing a large batch of PDF invoices that require standardized footer text fields for data entry or processing.
Observed behavior
Needs an automated scripting method via Action Wizard instead of manually opening and adding form fields to each individual PDF document.
Before you start

Ensure you have Adobe Acrobat Pro installed on your computer, as the Action Wizard and advanced JavaScript console required for batch processing are not available in the free Acrobat Reader version.

Solution 1Recommended

Use JavaScript and the Action Wizard in Acrobat Pro

Utilize a short JavaScript code to retrieve the exact coordinates of a manually placed text field, then apply those coordinates in a batch Action to automate the process.

Because standardizing form field locations across multiple files can be tedious, scripting provides a precise way to automate the addition. The trick is to identify the exact bounding box (rect) coordinates of your desired field location first.

1
Create a sample field

Open one sample PDF invoice in Acrobat Pro. Use the Prepare Form tool to manually add a text field (e.g., named "Text1") exactly where you want it in the footer.

2
Get field coordinates

Press Ctrl+J (Windows) or Cmd+J (Mac) to open the JavaScript Console. Type 'this.getField("Text1").rect;' and press Ctrl+Enter to run it. Note the four coordinate numbers printed.

3
Set up the Action Wizard

Go to Tools > Action Wizard and click "New Action". Choose the target folder containing all your invoice PDFs under the "Files to be Processed" section.

4
Add the JavaScript execution step

From the left panel, add "Execute JavaScript" to your action steps. Uncheck "Prompt User", open the settings, and paste: 'this.addField("Text1", "text", 0, [left, top, right, bottom]);' (replace the words in brackets with the exact coordinates you obtained).

5
Run the batch action

Save the Action, give it a descriptive name, and click "Start" to process all PDFs in the selected folder automatically.

Use JavaScript and the Action Wizard in Acrobat Pro
Coordinate Order and Pages: The coordinates returned by the rect property are in the order [left, top, right, bottom]. Additionally, the '0' in the command specifies the first page, as JavaScript in Acrobat uses zero-indexed page numbers.
Free Microsoft Office alternative

Easily Edit PDFs and Documents with WPS Office

While highly specialized JavaScript batch form processing requires expensive software like Adobe Acrobat Pro, WPS Office serves as a robust, comprehensive, and cost-effective alternative for all your standard PDF editing, form filling, and daily document management needs.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package for your PC or Mac.
  2. 2. Open your PDF: Launch WPS Office, click on "Open", and select the PDF document you wish to edit or fill out.
  3. 3. Edit and fill forms: Navigate to the "Edit" or "Form" tab to seamlessly insert text, add annotations, or fill out existing form fields.
Powerful built-in PDF editor for adding text, annotations, and standard form filling.Seamless and robust compatibility with Microsoft Word, Excel, and PowerPoint formats.Built-in batch processing tools for PDF conversions, merging, and splitting.Lightweight software designed for fast performance and a familiar user-friendly interface.
microsoft office alternative - wps office

Frequently Asked Questions

How do I add a field to every page instead of just the first page?

You would need to wrap the this.addField command inside a JavaScript 'for' loop that iterates through the this.numPages property, dynamically changing the page number parameter (the '0') in the command for each iteration.

Can I batch add multiple different fields at once?

Yes. You can find the coordinates for multiple different fields manually, then add multiple this.addField lines within the same JavaScript execution block in your Action Wizard to process them all simultaneously.

Why is the Action Wizard missing in my Acrobat software?

The Action Wizard is an exclusive feature of Adobe Acrobat Pro. If you are using Acrobat Standard or the free Adobe Acrobat Reader, this batch processing tool will not be available in your Tools menu.