How to Batch Delete Specific Pages from Multiple PDFs using Adobe Acrobat
Question details
The user needs a method to automate the deletion of the second page across multiple PDF files using Acrobat's Action Wizard, without the software interactively prompting to save each file.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- The user is attempting to batch process a folder of PDF documents to quickly remove a specific page from every file.
- Observed behavior
- Including a JavaScript save command causes Acrobat to open and prompt for a manual save on each file individually, which interrupts the batch automation process.
Ensure you have Adobe Acrobat Pro installed, as the Action Wizard feature is not available in standard or free versions. It is also highly recommended to back up your folder of original PDFs before running any batch deletion scripts.
Use Action Wizard with a Built-in Save Command
Automate the deletion of page 2 across a folder of PDFs using Acrobat Pro's Action Wizard combined with a JavaScript command and built-in save steps to avoid interactive prompts.
The Action Wizard allows you to apply a series of routine commands to multiple files. By using the built-in Save step instead of coding a JavaScript save command, you can completely bypass the interactive save prompts and process the whole folder effortlessly.
Launch Adobe Acrobat Pro and navigate to 'Tools' > 'Action Wizard'.
Click 'New Action' to start creating your custom batch process.
Under 'Files to be Processed' on the right, click 'Add Folder' and select the folder containing the PDFs you want to modify.
From the 'Choose tools to add' pane on the left, expand 'More Tools', select 'Execute JavaScript', and click the '+' icon to add it to your action steps.
Click 'Specify Settings' on the JavaScript step and enter: `this.deletePages({nStart: 1, nEnd: 1});`. (Note: JavaScript page indexing is zero-based, meaning 1 targets the second page).
Expand 'Save & Export' from the left pane, add 'Save' to your action steps. Uncheck 'Prompt User' in the Save step configuration so the files save automatically without asking for permission.
Save the action with a recognizable name, then click on it from the Action List and select 'Start' to process all files in your folder.

Edit and Manage PDFs Easily with WPS Office
While Adobe Acrobat requires a premium Pro subscription to use the Action Wizard and execute JavaScript batch processes, WPS Office provides a lightweight, comprehensive suite for creating, editing, and managing your PDF files, completely compatible with standard formats.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for your specific operating system.
- 2. Install the Suite: Run the setup file and follow the straightforward on-screen instructions to complete the installation.
- 3. Start Managing PDFs: Open WPS Office, load your PDF file into the built-in PDF toolkit, and manage your pages seamlessly.

Frequently Asked Questions
Why does my Acrobat JavaScript action prompt me to save each file?
If you use the `app.execMenuItem('Save')` command within your JavaScript code, Acrobat treats it as a manual user action and prompts for confirmation. Using the Action Wizard's built-in Save step instead bypasses this prompt.
Can I delete multiple different pages using Acrobat JavaScript?
Yes, you can modify the `nStart` and `nEnd` values in the `this.deletePages()` function. For example, using `{nStart: 0, nEnd: 2}` will delete the first three pages. Remember that page numbers are zero-indexed.
Does Adobe Acrobat Reader support the Action Wizard?
No, the Action Wizard and advanced batch processing features are exclusive to Adobe Acrobat Pro. Free versions like Acrobat Reader cannot run batch JavaScript actions.




