Skip to main content

Split PDF by Text - Content Splitter API

PDF4me Split PDF by Text is a powerful enterprise-grade solution that splits PDF documents by searching for specific text patterns through advanced API integration. This comprehensive PDF splitting service efficiently processes PDF documents with text content, providing intelligent text recognition, automated page filtering, precise document splitting, and advanced PDF processing capabilities for enhanced document management and automated processing workflows. The API processes PDF splitting by receiving source PDF documents through REST API calls, utilizing advanced text recognition technology and intelligent filtering algorithms for accurate document splitting and professional PDF processing. With comprehensive support for text recognition, intelligent page filtering, automated document splitting, and professional PDF processing, this solution is ideal for document management, automated processing, text-based splitting, and enterprise PDF workflows that require reliable document splitting with guaranteed accuracy and consistent output quality. Split PDF by Text documents easily with API for advanced PDF processing and document management.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog →

Authenticating Your API Request​

To access the PDF4me REST API, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user of the REST API.

Key Features​

  • Text Recognition: Intelligent text recognition and pattern matching from PDF documents
  • Automated Splitting: Split PDF documents based on specific text patterns and filtering criteria
  • Page Filtering: Filter pages using text content for precise document splitting
  • Quality Preservation: Maintain PDF quality during splitting operations
  • Professional Results: High-quality PDF splitting with accurate text recognition
  • Seamless API Integration: RESTful API designed for automated PDF processing workflows and enterprise system integration

REST API Endpoint​

The PDF4me REST API uses standard HTTP methods to interact with resources. All text-based PDF splitting operations are performed through a single endpoint:

  • Method: POST
  • Endpoint: /api/v2/SplitByText

Supported PDF Splitting Features​

The API provides comprehensive support for various PDF splitting and text processing capabilities:

Text Processing​

  • Text Recognition: Intelligent text recognition and pattern matching from PDF documents
  • Pattern Matching: Search for specific text patterns and content for filtering and splitting operations
  • Multiple Formats: Support for various text formats and content types
  • Professional Results: High-quality text recognition with accurate pattern matching
  • Advanced Processing: Support for complex text structures and recognition requirements

Document Splitting​

  • Automated Splitting: Split PDF documents based on specific text patterns and filtering criteria
  • Page Filtering: Filter pages using text content for precise document splitting
  • Intelligent Processing: Smart document splitting with text-based page identification
  • Professional Results: High-quality PDF splitting with accurate page separation
  • Advanced Processing: Support for complex document structures and splitting requirements

Content Processing​

  • Quality Preservation: Maintain PDF quality during splitting operations
  • Format Support: Support for various PDF formats and document types
  • Professional Enhancement: High-quality PDF processing with accurate splitting
  • Flexible Options: Customizable processing parameters for specific requirements

REST API Parameters​

Complete list of parameters for the Split PDF by Text REST API. Parameters are organized by category for better understanding and implementation.

Important: Parameters marked with an asterisk (*) are required and must be provided for the API to function correctly.

ParameterRequiredWhat it doesExample
jobIdExtOptionalYour own reference for this call. It is stored with the API call log so you can correlate calls with your jobs. Type: string.
integrationsOptionalIntegration identifiers, forwarded unchanged with the job's notification settings. Type: array.
isAsyncOptionalSet to `true` to process the action asynchronously and get a job to poll at `/api/v2/GetActionStatus`. Only honoured by actions that support asynchronous processing. Type: boolean.
docNameOptionalSource file name including its extension. Several actions dispatch on the extension, so it should always be set; when omitted a per-action default is used. Type: string.document.pdf
docContentRequiredThe source file. Accepts the base64-encoded file content, a `pdf4meblobid://<id>` reference to a previously uploaded blob, or an `https` URL to the source document. Required: an empty value fails with `File is empty`. Type: string.JVBERi...
docContentBytesOptionalAlternative raw byte payload for the source file. Type: string.
callBackUrlOptionalOptional URL notified when an asynchronous job completes. Type: string.
textOptionalRequired. The text to split the document on. Type: string.Chapter 1
splitTextPageOptionalAn unrecognised value is rejected with 400. Type: string.After
fileNamingOptionalSet to `NameAsPerOrder` to number the output documents; a `docName` containing `{pageText}` is replaced with the matched text. Type: string.document_part_{page}

Output​

The PDF4me Split PDF by Text REST API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:

JSON Response Format

The raw JSON response from the API:

{
"File Content": "Output file content from the PDF4me action",
"File Name": "Output file name from the PDF4me action"
}

Request Example​

Content-Type: application/json
Authorization: YOUR_API_KEY

Note: Get your API key from the PDF4me Dashboard

Payload​

{
"docContent": "Please put PDF base64 content",
"docName": "output.pdf",
"text": "Nadal, who officially turned professional in 2001",
"splitTextPage": "before",
"fileNaming": "NameAsPerOrder"
}

Code Samples​

The PDF4me Split PDF by Text REST API provides code samples in multiple programming languages. Choose the language that best fits your development environment:

C# (CSharp) Sample

Complete C# implementation for PDF splitting by text:

PDF Splitting Features​

Text Processing​

  • Text Recognition: Intelligent text recognition and pattern matching from PDF documents
  • Pattern Matching: Search for specific text patterns and content for filtering and splitting operations
  • Multiple Formats: Support for various text formats and content types
  • Professional Results: High-quality text recognition with accurate pattern matching
  • Advanced Processing: Support for complex text structures and recognition requirements

Document Splitting​

  • Automated Splitting: Split PDF documents based on specific text patterns and filtering criteria
  • Page Filtering: Filter pages using text content for precise document splitting
  • Intelligent Processing: Smart document splitting with text-based page identification
  • Professional Results: High-quality PDF splitting with accurate page separation
  • Advanced Processing: Support for complex document structures and splitting requirements

Content Processing​

  • Quality Preservation: Maintain PDF quality during splitting operations
  • Format Support: Support for various PDF formats and document types
  • Professional Enhancement: High-quality PDF processing with accurate splitting
  • Flexible Options: Customizable processing parameters for specific requirements

Industry Use Cases & Applications​

Use Cases

  • Document Processing: Split large PDF documents based on text identifiers for automated processing
  • Chapter Processing: Split book or document PDFs by chapter headings for automated content management
  • Invoice Processing: Split invoice PDFs by text patterns for automated accounting workflows
  • Report Processing: Split report PDFs by section headers for automated content organization
  • Compliance: Split compliance documents by text identifiers for automated regulatory processing
  • Workflow Automation: Automate PDF splitting workflows for enterprise operations
  • Content Management: Split content documents by text categories for automated organization
  • Batch Processing: Process large volumes of documents with automated text-based splitting

Get Help​