PDF Editing Issues

How to Split PDFs by Content and Use Form Data in File Names

Maira MehtabMaira Mehtab Oct 28, 2026 869 views

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.

How to Split PDFs by Content and Use Form Data in File Names
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.
Before you start

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.

Solution 1Recommended

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.

1
Access the Action Wizard

Open Adobe Acrobat Pro DC, navigate to the 'Tools' tab, and select 'Action Wizard' to create a new custom action.

2
Insert custom JavaScript

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.

3
Define the split logic

Code the logic to trigger the 'extractPages' method whenever the script detects a change in the targeted debtor number or identification string.

4
Construct output filenames

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.

Use Custom Acrobat JavaScript to Split and Rename PDFs
Custom Scripting Requirement: Adobe does not provide an out-of-the-box script for this exact scenario; you may need to consult Adobe Community forums or a developer to tailor the JavaScript to your specific document layout.

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. 1. Open your PDF in WPS Office: Launch WPS Office and open the bulk PDF file you need to separate.
  2. 2. Access the Split tool: Navigate to the 'Page' tab on the top ribbon and click on the 'Split PDF' button.
  3. 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. 4. Save the separated files: Select your desired output folder destination and click 'Split' to instantly generate the individual PDF files.
Easily split large PDFs by page ranges, fixed sizes, or equal partsFully compatible with standard PDF formats and Adobe Acrobat filesLightweight, fast, and features a user-friendly ribbon interfaceIncludes comprehensive PDF editing tools like OCR and page extraction
microsoft office alternative - wps office

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.