PDF Editing Issues

Bulk Extract and Save PDF Pages with an Adobe Acrobat Action

Bushra ParveenBushra Parveen Nov 18, 2026 869 views

Question details

Extract a specified page from multiple PDFs and save each extracted page as a separate PDF in a chosen folder.

Bulk Extract and Save PDF Pages with an Acrobat Action
Product
Adobe Acrobat Pro
Device & OS
not provided
Scenario
The user wants to automate page extraction across a batch of PDF files.
Observed behavior
Each source PDF should produce an individually named PDF containing the selected page.
Before you start

Confirm that Acrobat Pro has Action Wizard and JavaScript enabled, and choose an existing output folder. Check that every source PDF contains the requested page and permits page extraction.

Solution 1Recommended

Create an Acrobat action that extracts one page per PDF

Use this workflow to extract the same page from each source PDF and save the results under names derived from the original files.

The example extracts the first page. Acrobat JavaScript uses zero-based page indexes, so page 1 is index 0 and page 2 is index 1.

Saving to a specified path requires a privileged JavaScript context. The example uses a trusted function installed as a folder-level script; only install scripts you understand and trust.

1
Create the output folder

Create an empty output folder using your file manager. In the example below, replace /C/Users/YourName/Documents/Extracted/ with the folder's Acrobat device-independent path, retaining the trailing slash.

2
Install the trusted function

Create a plain-text .js file in Acrobat's user JavaScript folder and add: var extractPageToFolder = app.trustedFunction(function(doc, outputPath) { app.beginPriv(); try { doc.extractPages({nStart: 0, nEnd: 0, cPath: outputPath}); } finally { app.endPriv(); } }); Restart Acrobat so it loads the folder-level script. Consult Adobe's Acrobat JavaScript documentation for the user JavaScript folder location on your system.

3
Add JavaScript to an action

In Acrobat Pro, open Tools > Action Wizard > New Action. Add Execute JavaScript to the action, open its script editor, and enter: var name = this.documentFileName.replace(/\.pdf$/i, '') + '-page-1.pdf'; extractPageToFolder(this, '/C/Users/YourName/Documents/Extracted/' + name); Replace the example path with your output folder path.

4
Save and run the action

Save the action, open it from Action Wizard, add the source PDFs or their folder, and select Start. Check the output folder for one extracted PDF per source file.

Create an Acrobat action that extracts one page per PDF
Adjust the page and filename: For another page, change both nStart and nEnd to its zero-based index and update the filename suffix. Use unique source filenames and an empty output folder to avoid filename conflicts.
Free Microsoft Office alternative

Edit PDFs and Office files with WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move between applications. Its PDF tools can help with individual files, but they do not replace the Acrobat JavaScript action described above; some PDF features may require a subscription.

Work with PDF pages using WPS PDF tools, subject to feature availability.Open and edit Microsoft Office formats including DOCX, XLSX, and PPTX.Use a familiar interface to transition from other Office applications.Keep document, spreadsheet, presentation, and PDF tools in one lightweight suite.
microsoft office alternative - wps office

Frequently Asked Questions

Can Acrobat Reader run this Action Wizard workflow?

No. The workflow requires Acrobat Pro's Action Wizard and a trusted JavaScript function; Acrobat Reader does not provide Action Wizard.

How do I extract the third page instead of the first?

In the folder-level script, change both nStart and nEnd from 0 to 2. Update the action's filename suffix to reflect page 3, then restart Acrobat and run the action again.

What happens if a PDF does not contain the requested page?

Extraction cannot produce that page from the affected file. Check the page counts before running the action, or modify the script to handle documents that are too short.

Why can't the script save to my chosen folder?

Check that the folder exists, the Acrobat path is correct, and your account can write to it. Also confirm that Acrobat loaded the trusted function after restarting and that its security settings permit the operation.