AutomationFlowsGeneral › Merge PDFs with n8n Workflow

Merge PDFs with n8n Workflow

Original n8n title: Merge

Merge. Uses manualTrigger, readWriteFile, stickyNote, httpRequest. Event-driven trigger; 6 nodes.

Event trigger★★★★☆ complexity6 nodesRead Write FileHTTP Request
General Trigger: Event Nodes: 6 Complexity: ★★★★☆ Added:

This workflow follows the HTTP Request → Readwritefile recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "do4h6jnTGWDjCXV7",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Merge",
  "tags": [],
  "nodes": [
    {
      "id": "513658bc-f898-431c-a005-973013fb12a3",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -840,
        -200
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5ba22d17-af12-4665-85c5-f704835f71a4",
      "name": "Write Result File to Disk",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        -100,
        -200
      ],
      "parameters": {
        "options": {},
        "fileName": "document.pdf",
        "operation": "write",
        "dataPropertyName": "=data1"
      },
      "typeVersion": 1
    },
    {
      "id": "2bf6b07f-068d-4bbd-8d59-93768118c07c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -340
      ],
      "parameters": {
        "width": 218,
        "height": 132,
        "content": "## Authentication\nConversion requests must be authenticated. Please create \n[ConvertAPI account to get authentication secret](https://www.convertapi.com/a/signin)"
      },
      "typeVersion": 1
    },
    {
      "id": "e1f7f9b3-6806-42e6-83f8-cdd3f45f236e",
      "name": "Download first remote PDF File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -640,
        -200
      ],
      "parameters": {
        "url": "https://cdn.convertapi.com/public/files/demo.pdf",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file",
              "outputPropertyName": "data1"
            }
          }
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "00acf3e1-1bb8-4dc0-826a-a2c58f5d82d5",
      "name": "Download second PDF File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -460,
        -200
      ],
      "parameters": {
        "url": "https://cdn.convertapi.com/public/files/demo2.pdf",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file",
              "outputPropertyName": "data2"
            }
          }
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "6c2a428e-e0af-485b-bdde-70785bc0d508",
      "name": "PDF merge API HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -280,
        -200
      ],
      "parameters": {
        "url": "https://v2.convertapi.com/convert/pdf/to/merge",
        "method": "POST",
        "options": {
          "response": {
            "response": {
              "neverError": "=",
              "responseFormat": "file",
              "outputPropertyName": "=data"
            }
          }
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "files[0]",
              "parameterType": "formBinaryData",
              "inputDataFieldName": "data1"
            },
            {
              "name": "files[1]",
              "parameterType": "formBinaryData",
              "inputDataFieldName": "data2"
            }
          ]
        },
        "genericAuthType": "httpQueryAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/octet-stream"
            }
          ]
        }
      },
      "credentials": {
        "httpQueryAuth": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "22a14e07-f11e-46e4-a238-ecdb9f1a8f81",
  "connections": {
    "Download second PDF File": {
      "main": [
        [
          {
            "node": "PDF merge API HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDF merge API HTTP Request": {
      "main": [
        [
          {
            "node": "Write Result File to Disk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download first remote PDF File": {
      "main": [
        [
          {
            "node": "Download second PDF File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Download first remote PDF File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Merge. Uses manualTrigger, readWriteFile, stickyNote, httpRequest. Event-driven trigger; 6 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

AutoQoutesV2_template. Uses manualTrigger, httpRequest, stickyNote, googleSheets. Event-driven trigger; 28 nodes.

HTTP Request, Google Sheets, Google Drive +2
General

AutoClip – Automatically Generate Video Clips and Upload to YouTube. Uses manualTrigger, googleSheets, googleDrive, stickyNote. Event-driven trigger; 23 nodes.

Google Sheets, Google Drive, Read Write File +2
General

Credentials Transfer. Uses form, httpRequest, executeCommand, readWriteFile. Event-driven trigger; 22 nodes.

Form, HTTP Request, Execute Command +2
General

Structured Bulk Data Extract with Bright Data Web Scraper. Uses manualTrigger, httpRequest, stickyNote, readWriteFile. Event-driven trigger; 16 nodes.

HTTP Request, Read Write File
General

Merge PDFs. Uses manualTrigger, httpRequest, @custom-js/n8n-nodes-pdf-toolkit, readWriteFile. Event-driven trigger; 7 nodes.

HTTP Request, @Custom Js/N8N Nodes Pdf Toolkit, Read Write File