How to Extract First and Last Pages from Multiple PDFs
Question details
The user needs a way to extract only the first and last pages from a batch of PDF documents while maintaining a strict file processing order.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Batch processing multiple PDF documents to extract specific page ranges (the first and the last pages).
- Observed behavior
- When utilizing the Action Wizard workflow for batch operations, the software does not preserve the custom or sequential processing order of the files if they are added as an entire folder.
Gather all the PDF files you intend to process into a single dedicated folder, and verify that none of the documents are password-protected against page extraction.
Use Acrobat Action Wizard with Sequential File Addition
Set up a custom action to automate page extraction and manually add files in the desired order to bypass the batch reordering issue.
Launch Adobe Acrobat, navigate to the 'Tools' tab, and select the 'Action Wizard' tool.
Click on 'New Action' from the top toolbar to begin setting up your custom extraction workflow.
Under the 'Pages' category on the left, select 'Extract' and add it to your action. Specify the page ranges you need (e.g., page 1 and the final page number).
Add a 'Save' step from the 'Save & Export' category to designate an output folder for your extracted pages.
Save the action. When running it, rather than selecting the entire folder, click 'Add Files' and add the documents one by one in your required sequence to preserve the processing order.

Use a Custom JavaScript for Batch Extraction
Execute a folder-level script that explicitly reads filenames in order and dynamically identifies the last page of each document.
Extract PDF Pages Effortlessly with WPS Office
If setting up scripts and complex Action Wizards feels too cumbersome, WPS Office provides a highly intuitive PDF editor. It allows you to split, merge, and extract specific pages from PDFs effortlessly while maintaining full compatibility with all standard PDF formats.
- 1. Open your PDF: 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 navigation ribbon.
- 3. Select Extract Page: Click the 'Extract Page' tool to open the extraction dialogue box.
- 4. Set the Custom Range: Choose 'Custom range' and type the numbers for the first and last pages (e.g., '1, 15').
- 5. Extract and Save: Click 'Extract' to immediately pull those pages into a new, separate PDF document.

Frequently Asked Questions
Can I extract pages from a secured or locked PDF?
No, you cannot extract pages from a PDF if it has editing, copying, or extraction restrictions enabled. You must first remove the security restrictions by entering the document's permissions password.
How do I extract pages without using Adobe Acrobat?
You can use alternative PDF editing software like WPS Office. Open your document, navigate to the 'Page' management tab, and select 'Extract Page' to easily pull out the specific pages you need and save them as a new file.
Why did Acrobat Action Wizard scramble my batch processing order?
When you add an entire folder to an Acrobat Action Wizard batch, the program processes the files based on its internal file-handling and queuing logic, which rarely matches the alphabetical or customized order you see in your file explorer. Adding files individually or using a sorting script bypasses this issue.




