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 Barcode

AI-generated

Summary

Splits a PDF into files at pages containing a matching barcode, with options to keep or remove the barcode page and combine consecutive pages with the same barcode.

Inputs

  • Input Data Type (required) — Choose the PDF source: binary data from a previous node, a base64 string, or a URL. Binary input uses the specified Binary Property (default data); base64 and URL inputs also require an Input File Name.
  • Input File Name (required) — For binary input, optionally set the filename; if omitted, the filename from the binary data is used. For base64 or URL input, provide the filename, including its extension.
  • Base64 Content (required) — Base64-encoded PDF content; shown when Base64 String is selected.
  • File URL (required) — URL of the PDF; shown when URL is selected.
  • Barcode String (required) — Text to match in detected barcodes.
  • Barcode Filter (required) — Choose whether the barcode must start with, end with, contain, or exactly match the supplied string.
  • Barcode Type (required) — Limit detection to any supported barcode type, Data Matrix, QR Code, or PDF417.
  • Split Barcode Page (required) — Choose to split after or before the matching barcode page, or remove that page.
  • Combine Pages With Same Consecutive Barcodes (required) — Choose whether consecutive pages with the same barcode are combined.
  • PDF Render DPI (required) — Rendering resolution for processing: 100, 150, 200, or 250 DPI.
  • File Naming (required) — Name split files by their order or by page.
  • Output Binary Field Name — Binary property name for output PDF files; defaults to data.
  • Custom Profiles — Optional JSON-formatted custom properties for the API call.

Output shape

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

The output binary property defaults to data and can be changed with Output Binary Field Name. The supplied source pack shows ZIP extraction support for this operation, but its function body is omitted, so the exact item and filename behavior is not available.

Links

Discussion