How to Split PDFs by Content and Use Form Data in File Names
Question details
The user needs a way to automatically split PDF documents whenever a specific content field changes and use that extracted text to name the resulting output files.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Processing bulk PDF documents where each recipient requires their own customized file, named according to their specific identification number.
- Observed behavior
- The native 'PDF Content Splitter' feature available in older software versions is missing in newer updates, leaving no direct UI option to perform automated, content-based splitting and renaming.
Ensure you have a representative sample PDF to test your splitting logic, and verify that the target data is selectable text rather than flattened images.
Use Custom Acrobat JavaScript to Split and Rename PDFs
Implement a custom JavaScript in Adobe Acrobat to detect text changes, extract data, and save separated files automatically.
Since the native PDF Content Splitter was removed from Adobe Acrobat DC, complex workflows require custom scripting. A script can iterate through pages to detect when debtor numbers change, pinpointing where each new section begins.
Developing this solution requires basic JavaScript knowledge and an understanding of Adobe Acrobat's API. Always test the script on a duplicate sample file first to ensure the extraction accurately targets the right text coordinates.
Open Adobe Acrobat Pro DC, navigate to the 'Tools' tab, and select 'Action Wizard' to create a new custom action.
Add a 'Execute JavaScript' step to your action. In the console, write a script utilizing methods like 'getPageNthWord' to scan pages and locate the target text.
Code the logic to trigger the 'extractPages' method whenever the script detects a change in the targeted debtor number or identification string.
Set the output naming parameter in your script to combine fixed text with the dynamically extracted form data, then run the action on your document.

Utilize a Dedicated PDF Content Splitter Tool
Use third-party PDF splitting utilities designed specifically for content-based extraction if custom scripting is too complex.
Efficiently Manage and Split PDFs with WPS Office
While content-based splitting using variables requires custom scripts, WPS Office offers a highly intuitive and powerful interface for splitting, merging, and extracting PDF pages effortlessly, making overall bulk document management much simpler.
- 1. Open your PDF in WPS Office: Launch WPS Office and open the bulk PDF file you need to separate.
- 2. Access the Split tool: Navigate to the 'Page' tab on the top ribbon and click on the 'Split PDF' button.
- 3. Set split criteria: In the dialog box, choose your preferred splitting method, such as custom page ranges or an even number of pages per file.
- 4. Save the separated files: Select your desired output folder destination and click 'Split' to instantly generate the individual PDF files.

Frequently Asked Questions
Can I split PDFs based on bookmarks instead of text content?
Yes, many modern PDF editors, including WPS Office, allow you to split documents automatically based on top-level bookmarks. This is often an easier alternative if your document is already structured with bookmarks for each section.
Why was the PDF Content Splitter removed from newer Adobe Acrobat versions?
As software evolves, some legacy plugins and highly specific native extraction tools are often deprecated in favor of scalable, script-based API solutions or more streamlined interfaces.
Do I need programming skills to split PDFs dynamically by form data?
Yes, natively handling dynamic variables like changing ID numbers in Acrobat requires JavaScript knowledge. If you lack programming experience, using a third-party graphical PDF splitting application is highly recommended.
How can I ensure my script correctly reads the target text?
The target text must be fully searchable and ideally placed in consistent coordinates across all pages. You can verify text searchability by simply attempting to highlight and copy the text using your cursor before running the script.




