PDF Editing Issues

How to Add a Background Box to Bates Numbers in Adobe Acrobat

John WilsonJohn Wilson Nov 3, 2026 868 views

Question details

The user wants to place a colored background or border behind Bates numbers in Adobe Acrobat so they remain readable on all pages.

How to Add a Background Box to Bates Numbers in Adobe Acrobat
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Applying Bates numbering to a PDF document with complex, dark, or colored backgrounds.
Observed behavior
Acrobat's built-in Bates numbering feature does not natively provide a background box, causing the numbers to blend into the existing page content.
Before you start

Before applying custom scripts or shapes, identify the exact coordinates on your PDF pages where the Bates numbers will be placed to ensure they do not obscure critical document text.

Solution 1Recommended

Use Custom JavaScript to Create Numbered Text Fields

Since Acrobat does not offer a native background box for Bates numbers, you can run a custom JavaScript to generate form text fields with a designated background color.

Acrobat's standard header, footer, and Bates numbering tools do not support background fill options. By utilizing Acrobat's Action Wizard and JavaScript API, you can generate custom form fields that act as readable Bates numbers with customized fill colors, borders, and text colors.

1
Open the Action Wizard

Navigate to the 'Tools' menu in Adobe Acrobat and select 'Action Wizard'.

2
Create a New Custom Action

Click on 'New Action'. Under 'Choose tools to add', select 'More Tools', click on 'Execute JavaScript', and add it to your action steps.

3
Insert the JavaScript Code

Click the gear icon next to 'Execute JavaScript' and paste a custom script designed to iterate through your document pages. Ensure the script includes instructions to add a text field at your desired coordinates and sets the fillColor property to white or another contrasting color.

4
Run the Action

Save the new Custom Action with a recognizable name. Open your target PDF files and run the action to automatically apply the custom numbered fields with backgrounds across your document.

Use Custom JavaScript to Create Numbered Text Fields
JavaScript API Knowledge: This method requires familiarity with the Acrobat JavaScript API to correctly configure the page coordinates, formatting, and auto-incrementing logic for the Bates numbers.
Efficient PDF Editing with WPS Office

Manage PDF Page Numbers and Backgrounds Easily with WPS Office

WPS Office provides an intuitive PDF editor that simplifies adding text, backgrounds, and page numbers to your documents. You can easily insert shapes, watermarks, or customized text boxes across pages to ensure your document numbers remain highly visible.

  1. 1. Open Your PDF in WPS: Launch WPS Office and open your PDF document using the built-in WPS PDF tool.
  2. 2. Insert a Background Shape: Navigate to the 'Insert' tab and add a rectangular shape with a solid fill color at your desired page location.
  3. 3. Apply Across the Document: Right-click the inserted shape to apply it across multiple pages, or utilize the Watermark tool to set a universal background block.
  4. 4. Add Sequential Page Numbers: Use the 'Insert' > 'Page Number' feature to overlay your numbering sequence perfectly on top of the contrasting background shape.
Easily add customizable text boxes with solid backgrounds to any PDF.Fully compatible with standard PDF formats and Adobe Acrobat files.Lightweight and user-friendly interface for seamless PDF editing and formatting.Free to use for basic PDF reading, merging, and standard annotation tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why do Bates numbers blend into the background in Adobe Acrobat?

By default, Acrobat inserts Bates numbers as transparent text layered over the existing page content. If the PDF contains dark images, dense text, or complex colored backgrounds, the numbering lacks contrast and becomes difficult to read.

Can I use the Watermark tool instead of Bates numbering?

Yes, you can create a custom watermark or header in Acrobat that includes a background color. However, standard watermarks do not automatically increment page by page like Bates numbers, making them unsuitable for legal document sequencing.

Are there third-party plugins for Acrobat that add background boxes to Bates numbers?

Yes, several third-party PDF plugins and specialized legal numbering tools are designed to integrate with Acrobat. These tools bypass the native limitations and allow you to configure fill colors, borders, and margins for your Bates stamps directly from a graphical interface.