Merge PDFs


The PDF Toolkit node allows you to merge multiple PDF files using n8n. In this way, you can automate document processing from multiple sources and streamline documents such as reports, invoices, and contracts.

Merge PDFs

  1. Open a new n8n workflow and add a Webhook node (or use Read/Write Files from Disk if you already have stored PDFs).
  2. Add the Merge PDF (customJS) node.
  3. Connect multiple PDF inputs into this node to combine them into a single file.
  4. Add a Read/Write Files from Disk node to store the merged PDF.
  5. Configure the path where the new PDF should be saved.
  6. (Optional) Add a Respond to Webhook node to immediately return the merged PDF to the requester.

n8n workflow template: Merge Multiple PDF Files

This workflow template:

  1. Downloads each PDF using an HTTP Request.
  2. Populates files into an array with Merge node from n8n.
  3. Merges all downloaded PDFs using the Merge PDF node from the @custom-js/n8n-nodes-pdf-toolkit.
  4. Writes the final merged PDF to disk.
Use this template