Merge Multiple PDF Files
Merge & Split → Merge Multiple PDF Files
The Merge Multiple PDF Files API combines multiple PDFs into one. You send docContent (array of Base64 PDFs), docName (output file name), and optionally async. The API returns a single merged PDF with all pages in the order provided. Use the tester below to try it; more details are in the sections that follow.
Try the Merge Multiple PDF Files API
Endpoint: POST /api/v2/Merge · Required: api-key, docContent, docName
Use the form below to send your API key and an array of PDFs (Base64). The response is one merged PDF. No code required—fill the fields and click Send request.
Overview, parameters, and use cases
- Overview
- Parameters
- Use cases
What is Merge Multiple PDF Files?
This endpoint merges multiple PDFs into a single document. You provide docContent (array of Base64-encoded PDFs) and docName (output filename). Pages are combined in the order of the array. Use async for large or many PDFs.
Key features
- Array of PDFs – docContent is an array of Base64 PDF contents; order determines page order in the output.
- Single output – One merged PDF containing all pages from all inputs.
- Async – Use async for many or large files.
Use when combining reports, chapters, or multiple documents into one. For overlaying one PDF on another use Merge PDF Overlay; for splitting use Split PDF.
When to use Merge Multiple PDF Files
- Reports – Combine multiple report PDFs into one.
- Chapters – Merge chapter or section PDFs in order.
- Document assembly – Build one PDF from many (invoices, letters, appendices).
For request/response schemas and code samples, see Merge in the PDF4me API docs.
Prerequisites
Before using this endpoint, make sure you have:
- A valid PDF4me API key (Get your API Key)
- Multiple PDF files in Base64 format (as an array)
Response Format
The API returns a single merged PDF file containing all pages from the input PDFs in the order provided.