Other PDF Issues

How to Remove the Space from Extracted PDF Page File Names in Adobe Acrobat

Camila MilosovichCamila Milosovich Nov 3, 2026 869 views

Question details

The user needs to remove the default space inserted before the sequential number in the file names of individual pages extracted from a PDF document.

How to Remove the Space from Extracted PDF Page File Names in Adobe Acrobat
Product
Adobe Acrobat X Pro
Device & OS
not provided
Scenario
Extracting pages from a multi-page PDF document and saving them as individual files with a continuous, space-free naming convention.
Observed behavior
Acrobat automatically names extracted pages using the original document name, a space, and a sequential number (e.g., 'The Local Book 1'), and lacks a built-in preference to change this format.
Before you start

Ensure you have access to the Action Wizard in Adobe Acrobat Pro, as modifying the default extraction naming convention requires running a custom JavaScript automation.

Solution 1Recommended

Use a Custom JavaScript Action to Extract and Rename Pages

Since Acrobat lacks a built-in UI preference for custom naming during extraction, you must use a JavaScript automation script to define the exact file names.

Adobe Acrobat does not natively support removing the space between the file name and the page number during standard extraction. Writing a brief JavaScript snippet allows you to fully customize the output file names, such as 'Document1.pdf' instead of 'Document 1.pdf'.

1
Open the Action Wizard

Launch Adobe Acrobat Pro, navigate to the 'Tools' pane on the right side of the screen, and select 'Action Wizard' to create a new custom action.

2
Create a New Action

Click 'Create New Action'. Under the 'Choose tools to add' panel, expand the 'More Tools' section and click 'Execute JavaScript' to add it to your action steps.

3
Write the Extraction Script

Click 'Specify Settings' on the JavaScript step and enter a custom script using the 'this.extractPages()' method. You will need to write a loop that constructs your desired file path, concatenating the document name and page number without adding a space string.

4
Save and Run the Action

Uncheck the 'Prompt user' box, save the action with a recognizable name like 'Extract Without Spaces', and run it on your target PDF document to process the extraction.

Use a Custom JavaScript Action to Extract and Rename Pages
Scripting Knowledge Required: You will need a basic understanding of the Acrobat JavaScript API to successfully write and implement the page extraction loop and file path parameters.
Efficient PDF Management Alternative

Easily Split and Extract PDF Pages with WPS Office

Skip the complicated JavaScript coding. WPS Office provides an intuitive PDF Split tool that allows you to easily extract pages and manage your PDF files without needing advanced technical skills.

  1. 1. Open the PDF in WPS Office: Launch WPS Office and open your multi-page PDF document using the built-in WPS PDF editor.
  2. 2. Access the Split Tool: Navigate to the 'Page' tab located on the top ribbon menu and click on the 'Split PDF' tool.
  3. 3. Configure Extraction Settings: Select the specific pages or page ranges you wish to extract, and specify your preferred output directory and naming logic.
  4. 4. Save the Extracted Pages: Click the 'Split' button to instantly save the selected pages as separate, organized PDF files.
Intuitive built-in PDF splitting and extraction toolsFully compatible with standard PDF formats and Adobe Acrobat filesLightweight application that handles PDFs, Word, Excel, and PowerPoint seamlesslyNo JavaScript or coding knowledge required for advanced PDF tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does Adobe Acrobat automatically add a space when extracting pages?

By default, Adobe Acrobat uses a hardcoded naming convention that appends a space and a sequential page number to the original file name. This is designed to ensure files have unique names and do not overwrite each other during batch extraction.

Can I change the default extraction naming format in Acrobat without using a script?

No, Acrobat X Pro and newer versions do not offer a standard built-in preference or settings menu to modify the default naming pattern (such as removing the space) for extracted pages.

Is there a simpler way to remove spaces from the file names after extraction?

Yes. If you prefer not to write JavaScript, you can extract the files using Acrobat's default method, and then use a bulk file renaming utility in your operating system (like PowerToys for Windows or Automator for Mac) to quickly find and remove the spaces from the generated file names.