Download and Merge Multiple PDFs from URLs with a Custom JS API
This n8n template demonstrates how to download multiple PDF files from public URLs and merge them into a single PDF using the PDF Toolkit from [www.customjs.space](https://www.customjs.space). [@custom-js/n8n-nodes-pdf-toolkit](https://www.npmjs.com/package/@custom-js/n8n-nodes-pdf-toolkit) ## What this workflow does - **Defines** an array of PDF URLs. - **Splits** the array to process each URL individually. - **Downloads** each PDF using an HTTP Request. - **Merges** all downloaded PDFs using the Merge PDF node from the @custom-js/n8n-nodes-pdf-toolkit. - **Writes** the final merged PDF to disk. ## Requirements A free CustomJS account. An API Key saved in n8n as credentials of type CustomJS account. ## Notice Community nodes can only be installed on self-hosted instances of n8n. ## Usage ### Get API key from [customJS](https://www.customjs.space) - Sign up to the customJS platform. - Navigate to your profile page. - Press the Show button to get your API key. ### Set Credentials for CustomJS API on n8n Copy and paste your API key generated from CustomJS here. ### Design workflow - A Manual trigger for starting the workflow. - A code node that returns URLs of PDF files as an array. - Split Out node for concurrent processing. - HTTP node for downloading PDF file locally. - Merge PDFs node for merging files. - Write to Disk node for saving the merged PDF file. You can replace the logic for triggering and returning results. For example, you can trigger this workflow by calling a webhook and get a result as a response from the webhook. Simply replace the Manual trigger and Write to Disk nodes. ## Perfect for - Bundling reports or invoices. - Generating document sets from external sources. - Automating PDF handling without writing custom code.
- Platform
- n8n
- Category
- File & Document Management
- Price
- $4.99
- Creator
- CustomJS
- code
- splitOut
- httpRequest
- manualTrigger
- readWriteFile
- mergePdfs
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related File & Document Management workflows
- Automate Invoice Data Extraction to Airtable with OCR and AI$14.99
- Automate PDF Invoice Creation from Google Sheets Using PDF.co$4.99
- Create Custom PDF Documents from Templates with Gemini & Google Drive$24.99
- Automatically Save and Organize Outlook Email Attachments in OneDrive Folders$9.99
- Automate Invoice Data Extraction from Google Drive to Google Sheets with Mistral OCR$14.99
- Convert Files to Markdown with Datalab.to API in n8n$9.99
More from CustomJS
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.