Skip to main content

Merge Multiple PDFs using n8n action

PDF4me Merge Multiple PDFs combines multiple PDF documents into a single unified PDF file through n8n automation workflows. Process PDFs via n8n triggers, binary data, base64 strings, or public URLs to merge documents in specified order with preserved formatting, maintained page structure, bookmarks retention, and seamless consolidation of all content. This solution is ideal for document consolidation, report compilation, multi-source document combining, contract bundling, archive creation, and automated PDF merging workflows that require reliable multi-document combination with preserved quality and seamless integration.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog →

Setup​

Add the PDF4me "Merge Multiple PDFs" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.

Prerequisites:

  • PDF4me API credentials
  • n8n workflow access

Configuration:

  1. Add PDF4me node to workflow
  2. Select "Merge Multiple PDFs" action
  3. Configure input parameters (see below)
Merge Multiple PDF files into Single PDF

Parameters​

Complete list of parameters for the Merge Multiple PDF files into Single PDF action. Configure these parameters to control PDF merging.

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.

ParameterRequiredWhat it doesExample
PDF Input SourceOptionalHow to provide the PDF files to merge. Options: Add Manually, From Array, All Input Items. Default is `Add Manually`.Add Manually
PDF FilesConditionalAdd multiple PDF files to merge. Each file can use a different input type. Shown when PDF Input Source is Add Manually.Array of PDFs
PDF ArrayConditionalExpression that returns an array of PDFs. Use base64 strings or URLs. E.g. {{ $JSON.pdfArray }}. Shown when PDF Input Source is From Array.
Array Content TypeConditionalWhat each element in the array contains. Shown when PDF Input Source is From Array. Options: URLs, Base64 Strings, Objects with URL or Base64. Default is `URLs`.URLs
Binary Property NameConditionalName of the binary property containing the PDF on each input item. Shown when PDF Input Source is All Input Items. Default is `data`.data
Output File NameOptionalName for the output merged PDF file. Default is `merged_output.pdf`.merged_output.pdf
Document NameOptionalName of the output document for reference. Default is `merged_output`.merged_output
Advanced OptionsOptionalOptional settings, collapsed behind Add Option.Add Option
Custom ProfilesOptionalUse "JSON" to adjust custom properties. Review Profiles at https://dev.pdf4me.com/apiv2/documentation/ to set extra options for API calls.{ "outputDataFormat": "base64", "preserveMetadata": true, "optimizeForPrinting": false, "compressionLevel": "medium" }
Binary Data Output NameOptionalCustom name for the binary data in n8n output. Default is `data`.data

Output​

Output Parameters​

FieldTypeWhat it contains
fileNameStringFile name of the resulting file.
mimeTypeStringMIME type of the resulting file, for example `application/pdf`.
fileSizeNumberSize of the resulting file in bytes.
successBooleanTrue when the operation succeeded.
inputFileCountNumberNumber of PDF files that were merged.
dataBinaryThe merged PDF. With PDF Input Source All Input Items, the node merges all input items and returns a single item.

N8N Action Response​

The PDF4me Merge Multiple PDFs API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:

JSON Response Format

The raw JSON response from the API:

[
{
"fileName": "merged_output.pdf",
"mimeType": "application/pdf",
"fileSize": 5417,
"success": true,
"inputFileCount": 2
}
]

Use Cases​

Document Consolidation and Archiving​

  • Combine multiple related PDF documents into a single comprehensive file for easier storage and management
  • Merge quarterly reports, invoices, or contracts into organized collections for archival purposes
  • Consolidate scattered documents from different sources into unified project files

Report Generation and Compilation​

  • Automatically merge individual report sections from different team members into a complete final report
  • Combine data exports, charts, and analysis documents into comprehensive business reports
  • Create unified documentation packages by merging related technical specifications and user guides

Workflow Automation and Batch Processing​

  • Automate the merging of daily, weekly, or monthly document batches in enterprise workflows
  • Combine multiple form submissions or applications into consolidated processing files
  • Merge related documents from different departments or systems into unified records for compliance and auditing

Get Help​