How to Apply Sequential Bates Numbers to Odd Pages in PDF
Question details
The user needs to apply consecutive Bates numbers (e.g., 1, 2, 3...) exclusively to the odd-numbered pages of a PDF document without skipping numbers for the unselected even pages.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Applying legal or organizational Bates numbering to a document where only the odd pages require sequential marking, keeping the numbers consecutive without numerical gaps.
- Observed behavior
- Standard Bates numbering tools increment the sequence based on the physical page count. When applied to odd pages only, the tool skips numbers, resulting in a sequence of 1, 3, 5, 7 instead of 1, 2, 3, 4.
Before attempting to apply custom numbering, determine the exact prefix, suffix, and digit length needed for your Bates sequence, and ensure your PDF document is fully compiled since adding or deleting pages later will disrupt the sequence.
Use Custom JavaScript in Adobe Acrobat
Utilize a custom JavaScript action to programmatically loop through odd pages and insert consecutive numbers, bypassing the native Bates numbering limitations.
Because Acrobat's standard Bates Numbering tool automatically increments based on absolute page positions, a custom script is required to isolate odd pages while maintaining a true consecutive sequence (1, 2, 3).
Launch Adobe Acrobat and navigate to Tools > Action Wizard.
Click 'New Action' in the toolbar, then select 'More Tools' followed by 'Execute JavaScript' from the left panel.
Click the '+' icon to add the JavaScript tool to your action steps, and ensure you uncheck the 'Prompt user' box.
Click 'Specify Settings' and paste a custom JavaScript code designed to loop through odd pages (incrementing the page array by 2) and apply text fields containing the sequential numbers.
Save the Action with a recognizable name, open your target PDF, and click on your newly created Action to apply the numbers.

Extract, Number, and Recombine Pages
A manual but script-free workaround involves separating the odd pages into a new document, applying standard Bates numbering, and merging them back.
Apply Numbers Manually as Headers/Footers
For shorter PDF documents, you can manually insert text boxes or headers to achieve the exact numbering sequence required.
Manage PDF Pages and Headers with WPS Office
WPS Office provides powerful PDF editing tools that allow you to easily extract pages, add headers and footers, and organize documents. Use WPS PDF to quickly separate odd pages, apply your numbering, and merge documents back together seamlessly.
- 1. Open WPS PDF: Launch WPS Office and open your target PDF document.
- 2. Extract Odd Pages: Navigate to the 'Page' tab, select 'Extract Pages', and choose to extract only the odd pages into a new document.
- 3. Add Page Numbers: In the extracted document, go to the 'Insert' tab and click 'Header and Footer' to apply consecutive numbers to these contiguous pages.
- 4. Merge Documents: Use the 'Merge PDF' tool to combine the numbered odd pages with your original even pages, achieving the desired result.

Frequently Asked Questions
Why does native Bates numbering skip numbers on unselected pages?
By default, PDF editors like Acrobat link the Bates sequence to the absolute page index. If you apply numbers only to odd pages, the system still increments the counter for the unselected even pages in the background, resulting in numerical gaps.
Can I use third-party plugins to apply sequential numbers to odd pages?
Yes, several advanced PDF plugin tools and batch processing scripts are available online that extend Acrobat's native functionality, allowing for highly customized Bates numbering sequences without having to write your own JavaScript code.
How do I remove Bates numbers if I make a formatting mistake?
In most professional PDF editors, you can navigate to the Bates Numbering tool menu and select 'Remove'. This will clear all recognized Bates sequences from the document, allowing you to start over with a fresh sequence.




