How to Split PDF Files Automatically using Acrobat Action Wizard or JavaScript
Question details
The user wants to automatically split one or multiple PDF files based on specific formatting, content markers, or batch requirements.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- Automating the separation of large PDF documents or batch processing multiple PDFs based on specific formatting keys.
- Observed behavior
- The user needs to configure Action Wizard workflows or implement folder-level JavaScript to achieve automated PDF splitting without manual intervention.
Ensure you have Adobe Acrobat Pro installed, as standard versions do not support the Action Wizard or advanced custom scripting capabilities. It is highly recommended to duplicate your original PDF files into a separate test folder before running automated scripts.
Use the Action Wizard for Batch Processing
Utilize Acrobat Pro DC's built-in Action Wizard to create automated workflows for processing multiple PDF documents.
If you need to process multiple PDF files in a batch, the Action Wizard is the most efficient built-in tool. It allows you to chain commands together and run them across large sets of documents automatically.
Launch Acrobat Pro DC and navigate to the 'Tools' tab located at the top of the interface.
Scroll down to locate and click on 'Action Wizard' to open the workflow management options in the right pane.
Click 'New Action' in the toolbar, select the files or folders you want to process, and add the required document splitting or organizing commands from the left 'Choose tools to add' pane.
Save your newly created action with a descriptive name. Click on it in the Actions List and select 'Start' to run it automatically on your selected batch of PDFs.

Implement Folder-Level JavaScript for Custom Splitting
Use a custom folder-level script when a single PDF needs to be split based on specific text, formatting keys, or content patterns.
Split PDF Files Easily Without Scripts in WPS Office
If you want to avoid writing JavaScript or configuring complex Action Wizard workflows, WPS Office offers a user-friendly, built-in PDF splitting feature. You can easily extract and divide pages without any programming knowledge.
- 1. Open Your PDF: Launch WPS Office and open the PDF document you wish to split.
- 2. Navigate to the Page Tools: Click on the 'Page' tab located on the top navigation toolbar.
- 3. Select Split PDF: Click the 'Split PDF' button to open the extraction and separation dialog box.
- 4. Choose Splitting Method: Configure your splitting rules by choosing to split by custom page ranges, equal page counts, or specific bookmarks.
- 5. Execute the Split: Select an output directory for the new files and click 'Split' to generate your separated PDF documents instantly.

Frequently Asked Questions
Can I use the Action Wizard in Adobe Acrobat Reader?
No, the Action Wizard is a premium batch-processing feature exclusively available in Adobe Acrobat Pro DC. Standard Reader versions do not support automated batch workflows.
What is the best way to split a PDF by bookmarks without code?
Instead of writing complex JavaScript, you can use built-in tools. In Acrobat Pro, navigate to 'Organize Pages' > 'Split' and choose 'Top-level bookmarks'. Alternatively, WPS Office provides an easy built-in tool to split PDFs by bookmarks from the Page menu.
Where should I save my custom JavaScript files in Acrobat?
Custom folder-level scripts must be saved in the Acrobat application's JavaScripts directory. The exact path depends on your operating system and installation drive, but it is typically located within the Adobe program files under the 'JavaScripts' subfolder.
Will splitting a PDF via JavaScript overwrite my original file?
Generally, no. As long as your script uses page extraction methods (like 'extractPages') to generate new files, the original document remains intact. However, it is highly recommended to keep a secure backup of your original file before running any automation scripts.




