How to Number Only Odd Pages Sequentially in an Acrobat PDF
Question details
The user needs to insert sequential page numbers (1, 2, 3...) exclusively on the odd pages (1, 3, 5...) of a PDF document without numbering the even pages.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Formatting a PDF document where only the odd-numbered pages require a distinct, sequential numeric count.
- Observed behavior
- The built-in Headers and Footers tool inserts the original document page number (e.g., stamping '3' on page 3) instead of maintaining a separate sequential count (e.g., stamping '2' on page 3).
Ensure your PDF document is finalized before adding custom page numbers, as inserting or deleting pages later will disrupt your custom numbering sequence.
Apply a Custom JavaScript in Adobe Acrobat
Use a custom JavaScript routine to mathematically calculate and stamp sequential numbers strictly on odd pages.
Because the built-in Headers and Footers command uses standard document page tokens, a custom script is necessary to evaluate the page index independently.
For a document, the script calculates the displayed number as (page index + 1) / 2 for odd page indexes, stamping the appropriate sequential value directly onto each selected page.
In Adobe Acrobat, go to the 'Tools' menu, select 'Action Wizard' or 'JavaScript', and choose 'Document JavaScripts' or create a custom action.
Enter a script that loops through the document's pages, verifies if the current page number is odd, and calculates the new sequential number using the (page index + 1) / 2 formula.
Run the script to automatically generate and place custom text fields containing the calculated sequential numbers at your designated header or footer coordinates.

Add Page Number Text Manually
For shorter documents, manually inserting text boxes on odd pages is a straightforward and effective workaround.
Manage PDF Pages and Headers with WPS Office
WPS Office provides a lightweight, comprehensive PDF editor that allows you to effortlessly manage pages, insert text, and apply custom headers or footers without complicated setup.
- 1. Open PDF in WPS Office: Launch WPS Office and open your PDF document using the WPS PDF editing tool.
- 2. Navigate to Header and Footer: Go to the 'Insert' tab on the ribbon, click on 'Header and Footer', and select 'Add Header and Footer'.
- 3. Set Page Range: In the settings dialog, specify your desired page range and select the option to apply formatting exclusively to odd pages.
- 4. Insert Custom Numbers: For specialized sequential numbering, utilize the 'Add Text' feature to quickly place custom numbers exactly where you need them on your odd pages.

Frequently Asked Questions
Why doesn't the default header tool sequence my odd pages correctly?
Default header and footer tools reference the physical page indices of the document. When you restrict numbering to odd pages, the tool simply pulls the actual page numbers (1, 3, 5) rather than creating an independent sequential count (1, 2, 3).
Can I format odd and even pages differently?
Yes, most advanced PDF editors allow you to configure separate header and footer profiles for odd and even pages. However, applying a totally independent sequence to just one subset still generally requires scripting or manual entry.
How do I remove existing page numbers from a PDF?
In your PDF editor, navigate to the Header and Footer tool and select 'Remove' or 'Delete' to clear any existing page number formatting before you apply your new custom sequence.
Is there a way to sequence odd pages without writing JavaScript?
If you cannot use JavaScript, the best alternatives are manually inserting text boxes on the odd pages, or splitting the document to extract the odd pages, numbering them normally, and recombining them with the even pages.




