How to Batch Add Filenames to PDF Headers in Acrobat
Question details
The user needs to automate the process of adding the corresponding document filename to the header of a large collection of PDF files.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Automating repetitive header modifications across multiple PDF files using a batch process or JavaScript.
- Observed behavior
- When attempting to import a downloaded filename stamping tool (.sequ file) into the Action Wizard, Acrobat displays an error stating the file is either not a supported file type or is damaged.
Verify that you are using Adobe Acrobat Pro, as the Action Wizard tool required for importing and running .sequ batch sequences is not available in Acrobat Standard or Adobe Reader.
Use Action Wizard to Batch Stamp Filenames
Import a valid Action Wizard sequence (.sequ) that utilizes JavaScript to automatically stamp filenames onto PDF headers across an entire folder.
To dynamically apply individual file names to headers across multiple files, static header tools are insufficient. You must use a JavaScript-driven sequence file specifically programmed for Acrobat's Action Wizard.
Download a trusted filename stamper .sequ file from an official Adobe developer forum or a reliable script repository.
Open Adobe Acrobat Pro. Navigate to the 'Tools' tab and select 'Action Wizard'.
Click 'Manage Actions' in the toolbar, then click the 'Import' button and select your downloaded .sequ file.
Select the newly imported action from the Action List. Choose the folder containing your target PDF files and click 'Start' to apply the filenames to all headers in bulk.

Resolve 'Damaged or Unsupported' .sequ File Errors
Fix issues where Acrobat rejects downloaded sequence files intended for batch processing.
Easily Manage PDF Headers and Footers with WPS Office
WPS Office features a comprehensive PDF editor that allows you to intuitively add, modify, and manage headers, footers, and page numbers across your documents without needing to troubleshoot complex sequence files or JavaScript errors.
- 1. Open Your PDF: Launch WPS Office and open your target PDF document.
- 2. Access Header Tools: Navigate to the 'Insert' tab on the top ribbon and select 'Header and Footer'.
- 3. Add Content: Click 'Add Header and Footer' to open the settings dialog. Type the filename or desired text into the appropriate header section.
- 4. Apply and Save: Adjust the font size and margins, apply the changes to your desired page range, and save the document.

Frequently Asked Questions
Why does Acrobat say my .sequ file is damaged?
This error typically occurs if the file was corrupted during download, incorrectly decoded from an email attachment, or if you attempt to open it by double-clicking rather than importing it directly through the Action Wizard interface in Acrobat Pro.
Can I batch add dynamic filenames to headers without JavaScript?
No, standard batch processing for headers and footers applies the exact same static text to all files. To dynamically read and insert the unique filename of each document into its own header, a JavaScript-based action sequence is required.
Is the Action Wizard available in Adobe Acrobat Standard?
No, the Action Wizard tool, which allows you to run automated batch sequences and import .sequ files, is a premium feature exclusively available in Adobe Acrobat Pro.




