Split PDF - Page-based Separator API
PDF4me Split PDF is a powerful enterprise-grade solution that splits PDF files into smaller files at specific pages through advanced API integration. This comprehensive PDF splitting service efficiently processes PDF documents, providing intelligent page-based splitting, automated document separation, precise page control, 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 page analysis technology and intelligent splitting algorithms for accurate document separation and professional PDF processing. With comprehensive support for page-based splitting, intelligent document separation, automated PDF processing, and professional document management, this solution is ideal for document management, automated processing, page-based splitting, and enterprise PDF workflows that require reliable document splitting with guaranteed accuracy and consistent output quality. Split PDF documents easily with API for advanced PDF processing and document management.
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
- Page-Based Splitting: Split PDF files at specific page numbers for precise document control
- Automated Processing: Split PDF documents based on page criteria and splitting rules
- Quality Preservation: Maintain PDF quality during splitting operations
- Professional Results: High-quality PDF splitting with accurate page separation
- 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 PDF splitting operations are performed through a single endpoint:
- Method: POST
- Endpoint:
/api/v2/SplitPDF
Supported PDF Splitting Features
The API provides comprehensive support for various PDF splitting and page processing capabilities:
Page Processing
- Page Analysis: Intelligent page analysis and identification for splitting operations
- Page Control: Precise control over page selection and splitting criteria
- Multiple Formats: Support for various PDF formats and page structures
- Professional Results: High-quality page analysis with accurate splitting
- Advanced Processing: Support for complex page structures and splitting requirements
Document Splitting
- Automated Splitting: Split PDF documents based on page criteria and splitting rules
- Page Separation: Separate pages into individual PDF documents for precise control
- Intelligent Processing: Smart document splitting with page-based 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 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.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| jobIdExt | Optional | Your own reference for this call. It is stored with the API call log so you can correlate calls with your jobs. Type: string. | |
| integrations | Optional | Integration identifiers, forwarded unchanged with the job's notification settings. Type: array. | |
| isAsync | Optional | Set 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. | |
| docName | Optional | Source 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 |
| docContent | Required | The 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... |
| docContentBytes | Optional | Alternative raw byte payload for the source file. Type: string. | |
| callBackUrl | Optional | Optional URL notified when an asynchronous job completes. Type: string. | |
| splitAction | Optional | How to split the document: `SplitAfterPage`, `RecurringSplitAfterPage`, `SplitSequence` or `SplitRanges`. Matched case-insensitively; an unrecognised value falls back to the first entry. Type: string. | RecurringSplitAfterPage |
| splitActionNumber | Optional | The page number used by SplitAfterPage and RecurringSplitAfterPage. Type: integer. | |
| splitSequence | Optional | The page numbers to split at, used by SplitSequence. Type: array. | |
| splitRanges | Optional | The page ranges to produce, used by SplitRanges. Type: string. | |
| fileNaming | Optional | Set to `NameAsPerOrder` to name each output document `<source name> <n>.pdf`. Type: string. | NameAsPerOrder |
Output
The PDF4me Split PDF REST API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:
- JSON
- Table
- Schema
- Binary
JSON Response Format
The raw JSON response from the API:
{
"splited Documents": "Splited documents array that contains documents list",
"File Name": "Output file name from the split action",
"File Content": "Output file content from the Split action"
}
Table View
Response data in a structured table format:
| Parameter | Value |
|---|---|
| splited Documents | Splited documents array that contains documents list |
| File Name | Output file name from the split action |
| File Content | Output file content from the Split action |
Schema View
The data structure and types of the response:
3 items
splited Documents: Array of Object Splited documents array that contains documents list
File Name: String Output file name from the split action
File Content: Binary Output file content from the Split action
Type Indicators:
Array of Object= Array of objectsString= Text dataBinary= Binary data
Binary Data View
The actual split PDF file data:
data
─────────────────────────────
splited Documents: Splited documents array that contains documents list
File Name: Output file name from the split action
File Content: Output file content from the Split action
Binary Data Access:
- PDF Content: Ready for download or further processing
- Split PDF: Complete PDF with page-based splitting applied
Request Example
Header
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",
"splitAction": "RecurringSplitAfterPage",
"splitActionNumber": 1,
"fileNaming": "NameAsPerOrder"
}
Code Samples
The PDF4me Split PDF REST API provides code samples in multiple programming languages. Choose the language that best fits your development environment:
- C#
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda
Google Script Sample
Google Apps Script implementation for Google Workspace integration:
PDF Splitting Features
Page Processing
- Page Analysis: Intelligent page analysis and identification for splitting operations
- Page Control: Precise control over page selection and splitting criteria
- Multiple Formats: Support for various PDF formats and page structures
- Professional Results: High-quality page analysis with accurate splitting
- Advanced Processing: Support for complex page structures and splitting requirements
Document Splitting
- Automated Splitting: Split PDF documents based on page criteria and splitting rules
- Page Separation: Separate pages into individual PDF documents for precise control
- Intelligent Processing: Smart document splitting with page-based 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
Use Cases
- Document Processing: Split large PDF documents into smaller files for easier management
- Page Management: Split PDFs by specific pages for targeted content delivery
- Report Processing: Split report PDFs by sections for automated content organization
- Invoice Processing: Split invoice PDFs by page ranges for automated accounting workflows
- Compliance: Split compliance documents by page sections for automated regulatory processing
- Workflow Automation: Automate PDF splitting workflows for enterprise operations
- Content Management: Split content documents by page ranges for automated organization
- Batch Processing: Process large volumes of documents with automated page-based splitting