Bulk Extract and Save PDF Pages with an Adobe Acrobat Action
Question details
Extract a specified page from multiple PDFs and save each extracted page as a separate PDF in a chosen folder.

- 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.
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.
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.
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.
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.
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.
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.

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.

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.




