Split PDF into Pages

The Split PDF into Pages node splits a PDF into individual single-page PDFs and returns one n8n item per page. This makes it easy to process each page separately in downstream nodes — for example OCR, renaming, or storing each page individually.

How it works

  1. The node first determines the total number of pages in the PDF.
  2. It then extracts each page in parallel as a separate single-page PDF.
  3. The node outputs N items — one per page — each with:
    • A binary field (data) containing the single-page PDF.
    • A JSON field page with the page number (starting at 1).
    • A JSON field totalPages with the total number of pages.

Split a PDF into individual pages

  1. Open a new n8n workflow and add a node that provides a PDF (e.g. HTTP Request, Read Binary File, or Webhook).
  2. Add the PDF Toolkit node and select Resource: PDF → Operation: Split Pages.
  3. Choose your input type:
    • Binary: select the binary field that holds the PDF (default: data).
    • URL: paste the URL of the PDF file.
  4. Optionally set an Output Filename Prefix (default: page) — output files will be named page_1.pdf, page_2.pdf, etc.
  5. Execute the workflow — you will receive one item per page downstream.

Example output (3-page PDF)

ItempagetotalPagesBinary (data)
113page_1.pdf
223page_2.pdf
333page_3.pdf