How to Add a Background Box to Bates Numbers in Adobe Acrobat
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.

- 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 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.
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.
Navigate to the 'Tools' menu in Adobe Acrobat and select 'Action Wizard'.
Click on 'New Action'. Under 'Choose tools to add', select 'More Tools', click on 'Execute JavaScript', and add it to your action steps.
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.
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.

Insert a Background Object Before Applying Bates Numbers
Manually add a solid background shape to your document's headers or footers before applying standard Bates numbering on top of it.
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. Open Your PDF in WPS: Launch WPS Office and open your PDF document using the built-in WPS PDF tool.
- 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. 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. Add Sequential Page Numbers: Use the 'Insert' > 'Page Number' feature to overlay your numbering sequence perfectly on top of the contrasting background shape.

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.




