CustomJS (PDF & File Toolkit) icon

CustomJS (PDF & File Toolkit)

All-in-one toolkit for PDF, HTML, JSON and file conversions

PDF → Merge

AI-generated

Summary

Merge PDF files from either binary input fields across the incoming items or a comma-separated list of URLs. The merged PDF is returned as binary data in the data field with the configured output filename; binary mode processes all incoming items once and skips subsequent item executions.

Inputs

  • Input Type — Choose Binary (default) to merge PDFs from incoming items, or URL to merge files fetched from URLs.
  • Input Binary Field (required) — In Binary mode, the binary property name to read from each incoming item; defaults to data. Items without this field or with empty files are skipped.
  • URLs (required) — In URL mode, provide a comma-separated list of file URLs. The operation trims whitespace around each URL.
  • Output Filename — Filename for the merged PDF, including extension; defaults to output.pdf.

Output shape

A single n8n item containing a binary PDF in binary.data.

The output JSON is empty. In Binary mode, all valid matching binary files from the input items are merged into one PDF, and later per-item executions are skipped. URL mode passes the supplied URLs to the merge service.

Links

Discussion