How to Automatically Extract the First Page of a PDF in Acrobat Pro
Question details
The user needs a method to automatically extract the first page of multiple PDF files and save each extracted page as a separate PDF in the original folder.

- Product
- Adobe Acrobat Pro DC
- Device & OS
- not provided
- Scenario
- Batch processing multiple PDF documents to isolate and save only their first pages efficiently.
- Observed behavior
- The goal is to automate the extraction process so that the first page of each selected PDF is automatically saved with a specific filename suffix without manual intervention for each file.
Ensure you have Adobe Acrobat Pro DC installed, as the standard version of Acrobat does not support the Action Wizard tool required for batch JavaScript processing.
Use Action Wizard and Custom JavaScript
Create an automated action in Acrobat Pro that runs a JavaScript snippet to batch extract the first page of selected PDFs and save them with a custom suffix.
Adobe Acrobat Pro's Action Wizard allows you to apply a series of commands to multiple files. By combining this feature with a specific JavaScript command, you can fully automate the extraction and saving of the first page for any number of documents.
Launch Adobe Acrobat Pro DC. Go to the 'Tools' tab and select 'Action Wizard' from the list of available utilities.
Click on 'New Action' in the Action Wizard toolbar to open the Create New Action dialog box.
In the left pane under 'Choose tools to add', expand 'More Tools' and click on 'Execute JavaScript'. Click the '+' icon in the middle to add it to your action steps on the right.
Click the 'Specify Settings' gear icon on the newly added Execute JavaScript step. Paste the following code into the window: this.extractPages(0, 0, this.path.replace(/\.pdf$/i, "_p1.pdf")); Then click 'OK'.
Uncheck the 'Prompt user' checkbox next to the Execute JavaScript step. This ensures the batch process will run automatically without asking for confirmation on every single file.
Click 'Save', name your action 'Extract First Page', and confirm. You can now select this action from the Action List, add the files or folders you want to process, and click 'Start'.

Extract Pages Easily with WPS PDF
If you need a straightforward way to extract pages from your PDF documents without writing custom JavaScript code, WPS Office provides an intuitive Extract Page feature. It is user-friendly, lightweight, and handles your PDF editing needs seamlessly without requiring complex batch scripting.
- 1. Open your PDF in WPS Office: Launch WPS Office and open the PDF document from which you want to extract pages.
- 2. Navigate to the Page tab: Click on the 'Page' tab located in the top menu bar to access the visual page management tools.
- 3. Select the Extract Page tool: Click the 'Extract Page' button. In the extraction dialog, you can manually click the first page thumbnail or choose 'Custom range' and enter '1'.
- 4. Confirm and Save: Choose whether to extract the page as a new PDF document or directly save it to your local drive, then click 'Extract'.

Frequently Asked Questions
Can I extract multiple pages using the same Acrobat JavaScript method?
Yes, you can modify the JavaScript parameters. The extractPages(start, end) function accepts a starting and ending page index. For example, changing the code to this.extractPages(0, 2, ...) will extract the first three pages instead of just the first.
Why did my Action Wizard script fail to save the new PDF?
This commonly occurs if Acrobat lacks write permissions for the destination folder, or if the JavaScript security settings restrict saving files. Ensure 'Enable Acrobat JavaScript' is checked in your preferences (Edit > Preferences > JavaScript) and that you are saving to a local directory rather than a restricted network drive.
Is there a way to extract the first page without using Acrobat Pro?
Yes. Most free PDF readers and web browsers allow you to select 'Print', choose 'Print to PDF' as the printer, and set the page range to '1'. Alternatively, you can use dedicated PDF editors like WPS Office PDF to extract pages using a graphical interface.
How do I extract pages from a password-protected PDF?
Before you can extract pages, you must remove the document's security restrictions. Open the PDF, enter the required permission password, go to the security properties, and change the security method to 'No Security'. Save the file, and then run your extraction process.




