Learn how to merge multiple PDF files using an n8n workflow template. This n8n node guide details downloading files, merging binary data, and writing the final PDF.
Download this n8n workflow template and start using it instantly.
Users who frequently need to combine reports, invoices, or external documents programmatically.
n8n automation specialists looking for advanced file manipulation n8n templates.
Developers needing to handle binary file operations and PDF processing within an n8n environment.
Anyone needing to implement a robust, scalable PDF merging solution without relying on manual steps.
Handling binary files and PDF documents is a common challenge in automation. This specific n8n workflow solves the problem of consolidating multiple external PDF files into one unified document. By leveraging the power of the CustomJS PDF Toolkit n8n node, this automation seamlessly downloads files using the HTTP Request n8n node, combines their data streams, and executes the merge operation. This provides a reusable n8n workflow template for any operation requiring PDF consolidation, dramatically improving efficiency when dealing with high volumes of documents.
This n8n workflow is designed to execute upon a manual n8n trigger for testing purposes, but can easily be adapted for any scheduled or webhook n8n trigger.
When clicking ‘Test workflow’ n8n trigger.HTTP Request n8n node instances run concurrently to download two distinct PDF files from specified public URLs.Merge n8n node receives the binary data output from both HTTP requests, combining them into a single item list, ensuring all PDF inputs are available for the next step.Merge PDF1 n8n node (from the CustomJS PDF Toolkit) receives the collection of binary PDF files and merges them sequentially into a new, single PDF file.Read/Write Files from Disk n8n node writes the resulting merged PDF binary data to the n8n environment's temporary storage, naming the file test.pdf.Read/Write Files from Disk4 n8n node then reads the newly created test.pdf back into the n8n workflow, making it ready for a subsequent action like uploading to cloud storage or emailing.To use this powerful n8n workflow template, follow these steps:
@custom-js/n8n-nodes-pdf-toolkit.Merge PDF1 n8n node requires CustomJS API credentials. You must create and configure these credentials within n8n before running the n8n workflow.HTTP Request n8n nodes are valid, or replace them with expressions pointing to dynamic file URLs relevant to your use case.test.pdf file is created successfully.This n8n workflow utilizes several key n8n node types for file handling and processing:
When clicking ‘Test workflow’ (Manual Trigger): Acts as the starting n8n trigger for testing the automation flow.
HTTP Request / HTTP Request2: These n8n nodes are configured to download external files. In this n8n template, they fetch two sample PDF files using their respective URLs. The output is binary data.
Merge (n8n node): Essential for flow control, this n8n node combines the independent data streams from the two HTTP requests into a single data item array suitable for the subsequent processing node.
Merge PDF1 (PDF Toolkit n8n node): The core of the operation. Using CustomJS credentials, this n8n node accepts multiple PDF binaries and outputs a single, merged PDF file.
Read/Write Files from Disk (n8n node): Configured for the write operation, this n8n node takes the merged PDF binary output and saves it locally as test.pdf.
Read/Write Files from Disk4 (n8n node): Configured for the read operation, this n8n node fetches the newly written test.pdf, confirming the file operation and making the file available for subsequent n8n nodes.
An essential n8n workflow for merging multiple local Excel files into a single multi-sheet document, including a dynamic summary sheet using the custom Code n8n node and the 'xlsx' library.

Automate Meraki network monitoring using this efficient n8n workflow. Detect critical uplink packet loss or latency issues, calculate 5-minute averages, and send deduplicated alerts to Microsoft Teams. Download this powerful n8n template for reliable network management.

Use this powerful n8n workflow to manage event registrations via a custom form and run an interactive, privacy-protected giveaway app using PostgreSQL data. Deploy quickly using our n8n templates.

Automate PDF merging tasks using this robust n8n workflow. Download multiple remote files, use the ConvertAPI service, and save the resulting document automatically. Leverage this powerful n8n node integration.

Use this powerful n8n workflow to merge multiple RSS feeds, clean data using regex, filter for recent content (48 hours), and broadcast the curated list as Markdown messages via Telegram. A prime example of effective n8n templates.








































