How to Add Custom Page Labels to Headers and Footers in PDFs
Question details
The user needs to apply custom page labels (such as A1, B1, G70) and use those specific labels as dynamic header or footer text across large PDF bundles.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Formatting and managing large PDF document bundles that require specific, section-based pagination to appear physically on the pages.
- Observed behavior
- Standard header and footer features in Adobe Acrobat do not automatically insert custom navigation page labels as dynamic text, necessitating specialized tools or custom automation.
Before modifying headers and footers, ensure your PDF document pages are fully compiled in the correct order, and make a backup copy of your original file to prevent accidental overwriting of existing physical page numbers.
Use Custom Automation or Third-Party Scripts in Acrobat
Since standard header and footer tools do not natively extract navigation page labels, utilizing custom JavaScript or specialized third-party plugins is required to pull the labels dynamically.
Adobe Acrobat allows you to create custom page labels for thumbnail navigation, but these are handled differently than the physical text placed via the 'Add Header & Footer' dialog. To bridge this gap, advanced users rely on scripts.
Open the Page Thumbnails panel in Acrobat, select the target pages, right-click, and choose 'Page Labels'. Define your custom prefixes (e.g., A, B) and starting numbers.
Install a specialized PDF pagination plugin (such as try67 tools) or use the Action Wizard to run a custom JavaScript that maps your defined 'Page Labels' into physical text fields on each page.
Scroll through the PDF to verify that the newly generated header or footer text accurately matches the navigation label displayed in the toolbar.

Utilize Bates Numbering for Custom Prefixes
If you do not strictly require dynamic extraction of navigation labels, Bates numbering provides a native, efficient way to add sequential custom prefixes (like A-01, B-01) to headers or footers.
Add Custom Headers, Footers, and Bates Numbers with WPS Office
WPS Office provides robust PDF editing capabilities, including intuitive header and footer customization and standard Bates numbering. Easily format large PDF bundles with custom text, page numbers, and prefixes without needing complicated external scripts.
- 1. Open Your PDF in WPS: Launch WPS Office and open your large PDF document bundle.
- 2. Access Header and Footer Tools: Navigate to the 'Edit' tab and click on 'Header and Footer' from the upper toolbar.
- 3. Add Custom Prefixes: Select 'Add Header and Footer'. In the dialog box, manually type your custom prefixes (e.g., A, B) next to the page number macro.
- 4. Apply Specific Page Ranges: Click on 'Page Range Options' to apply your specific custom label format (like A1, A2) to the exact section of your document bundle.

Frequently Asked Questions
Why doesn't my PDF editor automatically use page labels in headers?
Most PDF editors treat 'Page Labels' (used for software thumbnail navigation) and 'Headers/Footers' (physical text stamped on the page) as two entirely separate features. The standard variable for inserting a header only pulls the physical page count, not the software's customized navigation label.
Can I use Bates numbering instead of custom page labels?
Yes. Bates numbering is highly recommended for large bundles. It allows you to define custom prefixes, suffixes, and strict sequential numbering that places permanent text directly into the header or footer area natively without extra scripts.
How do I apply different page numbers to different sections of a PDF?
You can achieve this by using the 'Page Range' settings in the Header/Footer dialog box. Simply add your first custom label sequence and set it to apply only to pages 1-10, then add a second sequence formatted differently for pages 11-20.
Are there built-in ways to convert navigation labels to text without third-party plugins?
Currently, leading software like Adobe Acrobat does not feature a built-in toggle to print navigation labels into headers. You must either utilize custom JavaScript, buy a plugin, or manually type prefixes using standard header/footer tools.




