PDF Editing Issues

How to Access Action Wizard and Split PDF Pages via JavaScript

Bushra ParveenBushra Parveen Nov 5, 2026 870 views

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.

How to Access Action Wizard and Split PDF Pages
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.
Before you start

Ensure you have full editing permissions for your PDF document, as restricted or secured files cannot be split using scripts or advanced tools.

Solution 1Recommended

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.

1
Open the JavaScript Console

Navigate to the 'More Tools' menu in your PDF editor and select 'Execute JavaScript'.

2
Paste the Extraction Script

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' }); }

3
Run the Code

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.

Split PDF into Individual Pages Using JavaScript
Files Saved Successfully: The split files will automatically generate in your source folder without requiring you to manually save each one.
Split PDFs Easily with WPS Office

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. 1. Open PDF in WPS Office: Launch WPS Office and open the multi-page PDF document you wish to split.
  2. 2. Navigate to the Page Tab: Click on the 'Page' tab located on the top navigation toolbar.
  3. 3. Select Split PDF: Click the 'Split PDF' button to open the document splitting dialog box.
  4. 4. Choose Split Method: Select 'Split by Page' and specify whether you want to extract every single page or a custom page range.
  5. 5. Extract and Save: Click 'Split' to instantly separate the document and save the individual PDF pages to your designated folder.
No coding or JavaScript required to split PDF pages nativelyHighly compatible with standard PDF, Microsoft Word, Excel, and PowerPoint formatsFree to download, lightweight, and fast to installFamiliar interface makes managing and editing documents effortless
microsoft office alternative - wps office

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.