Skip to content
Browse all functions

Merge PDFs

files/mergepdfs

mergepdfs (Merge PDFs) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/mergepdfs, 3 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

3 credits per callHTTP APIn8nMake

Merges up to three PDFs into a single PDF. The orientation of each merged PDF is preserved.

Use cases

  • Combine a cover letter, an offer and the terms into one PDF
  • Attach a delivery note to an invoice before sending it
  • Merge signed pages back into one document

Try it in the 1001fx app

Run mergepdfs in your browser with your API key – fill the form, click Run and get the answer or the file.

mergepdfs in the 1001fx app: the form with example values
Merge PDFs in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/files/mergepdfs
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
multipart/form-data

Parameters

  • file1filerequired

    PDF to merged.

  • file2filerequired

    PDF to be appended.

  • file3fileoptional

    PDF to be appended.

Examples

Merge 3

Merges 3 pdfs

Input

Expects 3 pdf files named as file parameter: files
{
  "files": [
    {
      "name": "file.pdf",
      "type": "",
      "path": "testdata/file.pdf"
    },
    {
      "name": "pdf-landscape.pdf",
      "type": "",
      "path": "testdata/pdf-landscape.pdf"
    },
    {
      "name": "file.pdf",
      "type": "",
      "path": "testdata/file.pdf"
    }
  ]
}

Output · HTTP 200

Result is a single file.
{
  "statusCode": 200,
  "headers": {
    "content-type": "application/pdf",
    "content-disposition": "attachment; filename=\"result.pdf\""
  }
}
Show curl command
curl -X POST 'https://api.1001fx.com/files/mergepdfs' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'file1=@file.pdf' \
  -F 'file2=@pdf-landscape.pdf' \
  -F 'file3=@file.pdf'

Frequently asked questions

How many PDFs can I merge in one call?
Up to three: file1, file2 and the optional file3. For more files, merge the result again with the next PDFs.
Are landscape pages kept?
Yes. The orientation of each merged PDF is preserved.

Use cases

Try mergepdfs now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.004.01.2023created
Ask 1001fx