Skip to main content

Split PDF using n8n action

PDF4me Split PDF divides PDF documents into smaller files through n8n automation workflows. Process PDFs via n8n triggers, binary data, base64 strings, or public URLs to split by methods including split after page (divide at specific page), recurring split (every N pages), split sequence (multiple specific pages), or split ranges (extract specific page ranges) with flexible file naming options. This solution is ideal for document archiving, content distribution, chapter separation, batch processing, document segmentation, and automated PDF splitting workflows that require flexible splitting methods with preserved quality and seamless integration.

Setup

Add the PDF4me "Split PDF" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.

Prerequisites:

  • PDF4me API credentials
  • n8n workflow access

Configuration:

  1. Add PDF4me node to workflow
  2. Select "Split PDF" action
  3. Configure input parameters (see below)
Split PDF

Parameters

Complete list of parameters for the Split PDF action. Configure these parameters to control PDF splitting.

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

ParameterTypeDescriptionExample
Input Data Type***StringPDF Input Format Selection
• Choose the format of your PDF data input
• PDF4me supports multiple input types
• Options: Binary Data, Base64 String, or URL
Binary Data
Binary Property NameStringBinary PDF File Input (Required if Binary Data)
• Reference PDF file from previous n8n node or file upload
• PDF4me processes binary PDF files with automatic format detection
• Required when Input Data Type is "Binary Data"
data
Base64 Document ContentStringBase64 Encoded PDF Input (Required if Base64 String)
• Provide PDF data as base64 encoded string
• PDF4me automatically decodes and processes the PDF content
• Required when Input Data Type is "Base64 String"
UEsDBBQABgAI...
File URLStringPublic PDF URL Input (Required if URL)
• Provide a public/open permission URL to the PDF file
• PDF4me downloads and processes the file from URL
• Required when Input Data Type is "URL"
https://abc.com/sample.pdf
File Name***StringOutput Filename Specification
• Specify the base name for generated split PDF files
• Must include .pdf extension
• PDF4me ensures unique naming and format validation
output.pdf
Split Action***StringSplitting Method Selection
• Choose the method for dividing the PDF document
• Options: Split After Page, Recurring Split After Page, Split Sequence, Split Ranges
• Different strategies provide various levels of control
Split After Page
Split Action Number***StringSplitting Parameter
• Define splitting criteria based on selected split action
• For "Split After Page", specify page number; for "Recurring Split", specify interval
• For sequences and ranges, provide comma-separated values or ranges
1
File Naming***StringOutput File Naming Strategy
• Choose how generated split PDF files will be named
• Options: NameAsPerOrder (sequential), NameAsPerPage (with page numbers)
• Helps organize output files and maintain clear relationships
NameAsPerOrder
Output Binary Field Name***StringBinary Data Mapping
• Define the variable name for accessing generated split PDF data
• Used in subsequent workflow actions
• Essential for workflow data flow
data

Advanced Options

The following parameters are available in the Advanced Options section and are optional:

ParameterTypeDescriptionExample
Custom ProfilesStringCustom Configuration Profiles
• Set additional options using custom profiles
• JSON-like format containing predefined parameters
• Supports outputDataFormat, preserveMetadata, etc.
• Optional for specialized requirements
{ "outputDataFormat": "base64", "preserveMetadata": true, "optimizeForStorage": true }

Output

Output Parameters

ParameterTypeDescriptionExample
fileNameStringPDF4me generated split PDF filename - The complete filename of the successfully generated split PDF document with proper .pdf extension. PDF4me ensures unique naming and validates file format compliance for seamless integration with downstream processesoutput_1.pdf
mimeTypeStringPDF4me PDF MIME type - The MIME type of the generated split PDF file, indicating the file format for proper handling in web applications and file systemsapplication/pdf
fileSizeNumberPDF4me PDF file size in bytes - The exact size of the generated split PDF file in bytes, provided by PDF4me for storage planning, bandwidth optimization, and file transfer monitoring. Essential for enterprise document management and workflow automation245760
successBooleanPDF4me splitting status indicator - Boolean flag indicating the success or failure of the PDF splitting process. PDF4me returns true for successful splitting and false for any errors, enabling robust error handling in automated workflowstrue
messageStringPDF4me splitting status message - Human-readable status message providing details about the PDF splitting process result. Includes success confirmation or error details for troubleshootingPDF split successfully into 3 files
splitCountNumberPDF4me number of split files - Indicates how many files were created during the splitting process. Useful for workflow automation and verification of expected output quantity3
originalFileNameStringPDF4me source PDF reference - The original PDF filename that was processed by PDF4me's splitting engine. This reference is maintained for audit trails, debugging purposes, and tracking the source of generated split documents in enterprise workflowsdocument.pdf

N8N Action Response

The PDF4me Split PDF 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:

{
"fileName": "output_1.pdf",
"mimeType": "application/pdf",
"fileSize": 245760,
"success": true,
"message": "PDF split successfully into 3 files",
"splitCount": 3,
"originalFileName": "document.pdf"
}

Use Cases

Document Management and Archiving

  • Split large historical documents, research papers, and legal files into manageable sections for improved organization, faster retrieval, and easier navigation through document archives
  • Process multi-chapter reports, training manuals, and technical documentation by dividing them into logical sections that align with organizational structure and user access patterns
  • Automate the segmentation of scanned document collections and digitized archives to create searchable, categorized document libraries for enhanced information management

Content Distribution and Sharing

  • Extract specific chapters, sections, or pages from comprehensive reports and publications to create targeted content for different audiences, stakeholders, and departments
  • Split product catalogs, service guides, and marketing materials into focused documents that can be easily shared via email, social media, or client portals without overwhelming recipients
  • Process large presentation decks and training materials by creating modular content pieces that can be distributed individually or combined as needed for different training sessions and workshops

Automated Workflow Integration

  • Automate the processing of multi-tenant invoices, statements, and reports by splitting master documents into individual client-specific files for personalized distribution and automated billing workflows
  • Integrate PDF splitting with document processing pipelines to handle large batch operations, ensuring optimal file sizes for downstream systems, email delivery limits, and storage optimization
  • Process regulatory documents, compliance reports, and audit materials by creating segmented versions that align with specific reporting requirements, submission deadlines, and stakeholder needs

Get Help