How to Access Action Wizard and Split PDF Pages via JavaScript
Question details
The user needs to locate the missing Action Wizard tool or find an alternative method to split a multi-page PDF document into individual single-page files.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Attempting to extract or split every page of a PDF document into its own file, but the standard Action Wizard batch processing tool is missing from the interface.
- Observed behavior
- The Action Wizard is not visible in the More Tools menu, requiring the user to either restore the tool via customized settings or use a JavaScript execution workaround to perform the split.
Ensure you have full editing permissions for your PDF document, as restricted or secured files cannot be split using scripts or advanced tools.
Split PDF into Individual Pages Using JavaScript
Run a custom JavaScript command to automatically extract every page of your PDF into separate files.
If you cannot access the Action Wizard, executing a simple script is the fastest way to batch-extract all pages.
Navigate to the 'More Tools' menu in your PDF editor and select 'Execute JavaScript'.
Copy and paste the following code into the console window: var re = /.*\/|\.pdf$/ig; var filename = this.path.replace(re, ''); { for (var i = 0; i < this.numPages; i++) this.extractPages({ nStart: i, nEnd: i, cPath: filename + '_page_' + (i + 1) + '.pdf' }); }
Execute the script. The editor will automatically save each extracted page as a new PDF file (e.g., filename_page_1.pdf) in the same directory as the original document.

Locate Action Wizard via Custom Tools
Restore the missing Action Wizard tool by customizing your toolbars.
The Easiest Way to Split PDF Pages
Avoid complicated JavaScript codes and missing toolbars. WPS PDF features a built-in, user-friendly 'Split PDF' function that lets you extract individual pages or ranges in just a few clicks.
- 1. Open PDF in WPS Office: Launch WPS Office and open the multi-page PDF document you wish to split.
- 2. Navigate to the Page Tab: Click on the 'Page' tab located on the top navigation toolbar.
- 3. Select Split PDF: Click the 'Split PDF' button to open the document splitting dialog box.
- 4. Choose Split Method: Select 'Split by Page' and specify whether you want to extract every single page or a custom page range.
- 5. Extract and Save: Click 'Split' to instantly separate the document and save the individual PDF pages to your designated folder.

Frequently Asked Questions
Why is the Action Wizard missing from my Tools menu?
The Action Wizard is typically an advanced feature reserved for Pro or Premium versions of PDF editors. If you are using a standard or free reader version, this tool will remain hidden or inaccessible.
Can I split a PDF without writing or using JavaScript?
Yes. Modern comprehensive PDF editors, such as WPS Office, include a visual 'Split PDF' tool that allows you to divide documents into single pages or ranges using a simple graphical interface without any coding.
Where are my extracted files saved when using the JavaScript method?
The script provided saves the newly extracted individual pages directly into the exact same folder location as the original PDF file, automatically appending numerical suffixes to the file names.




