PDF4me icon

PDF4me

PDF4me for n8n automates document workflows: AI-powered parsing, classification, and data extraction, plus PDF conversion, generation, merge/split, editing, forms, stamps, signatures, OCR, barcodes and Swiss QR, invoices, image processing, security, and Word tools.

Actions92

Merge & Split → Split PDF by Text

AI-generated

Summary

Split a PDF into separate files based on occurrences of specified text. Choose the PDF input source, enter the search text, and select whether each split occurs before or after the page containing the text.

Inputs

  • Input Data Type (required) — Choose Binary Data, Base64 String, or URL as the PDF source.
  • Binary Property Name (required) — When using Binary Data, name of the incoming binary property; defaults to data.
  • Base64 Content (required) — When using Base64 String, the PDF content encoded as base64.
  • PDF URL (required) — When using URL, the address of the PDF file.
  • Text to Search (required) — Text used to identify where the PDF should be split.
  • Split Text Page (required) — Choose whether the split is before or after the page containing the text; defaults to After.
  • File Naming (required) — Name split files by their order or by page; defaults to Name As Per Order.
  • Output Binary Field Name — Binary property name for output PDF files; defaults to data.
  • Advanced Options: Custom Profiles — Optional JSON profile settings for extra API properties.

Output shape

One or more items containing split PDF files as binary data.

The output binary property uses the configured Output Binary Field Name. File naming follows the selected convention; exact item count and behavior when the text is absent are not specified by the provided source view.

Examples

Example 1: Split a binary PDF after pages containing a marker phrase, naming each output by page number.

Set Input Data Type to Binary Data, provide the incoming binary property name, enter the marker in Text to Search, choose After, and select Name As Per Page.

Links

Discussion