How to Add a PDF File Name Header and Link Text in Acrobat
Question details
The user wants to know how to automatically place the PDF file name into a header on every page and how to create hyperlinks connecting related titles or locations within the same document.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- Automating document formatting by inserting the file name into headers across all pages and setting up internal navigation links.
- Observed behavior
- The user needs a method to automate header insertion and create internal links that point to specific document locations.
Ensure you have Adobe Acrobat Pro installed, as the Action Wizard feature required to automate batch header insertion is not available in the free Adobe Acrobat Reader.
Use Action Wizard to Automate File Name Headers
Utilize Acrobat Pro's Action Wizard combined with a custom script or header settings to automatically apply the file name to every page.
The Action Wizard in Acrobat Pro allows you to run a series of commands on a single PDF or a batch of files. To insert a dynamic file name, a simple script is typically executed within the action.
Go to 'Tools' in Adobe Acrobat Pro and select 'Action Wizard' from the tool menu.
Click 'New Action' in the top toolbar to open the Create New Action dialog box.
Under 'Pages', select 'Add Header & Footer' and click the plus icon to add it to your action steps. Alternatively, add 'Execute JavaScript' if you are using a script to pull the exact file name dynamically.
Uncheck 'Prompt user' if you want the action to run automatically. Save the action, name it, and then click on it in the Actions List to run it on your open document.

Create Internal Links or Bookmarks
Connect related titles by creating internal document links that jump to specific pages or views.
Easily Add Headers, Footers, and Links with WPS PDF
WPS Office offers a robust PDF editor that simplifies document formatting. You can quickly add file names, page numbers, or custom text to headers and footers across all pages, and seamlessly create internal links without needing complex scripts or premium software.
- 1. Open Your PDF: Launch WPS Office and open your PDF document.
- 2. Insert Header and Footer: Go to the 'Insert' tab, select 'Header and Footer', and choose 'Add Header and Footer'.
- 3. Add Your File Name: Type your file name into the preferred header section (left, center, or right) and click 'OK' to apply it to all pages.
- 4. Add Internal Links: Navigate to 'Edit' > 'Link', draw a box over your title text, select 'Jump to Page', and enter the destination page number.

Frequently Asked Questions
Will the PDF header update automatically if I rename my file?
No, standard headers and footers inserted into a PDF are static text. If you rename the PDF file in your operating system later, the header will remain exactly as it was when you applied it.
Can I add the same header to multiple PDF files at once?
Yes. In Adobe Acrobat Pro, you can use the Action Wizard to batch process an entire folder of PDF files, applying the same header and footer configurations to all of them simultaneously.
Why is the Action Wizard missing from my Adobe Acrobat?
The Action Wizard is a premium automation feature exclusive to Adobe Acrobat Pro. It is not available in Acrobat Standard or the free Adobe Acrobat Reader.




