HerramientasTools
Entrar Crear cuenta

Fusionar PDFs

Fusionar PDFs es una API que junta varios PDFs en uno solo, en el orden que le mandes. Perfecto para juntar facturas, anexos o informes en un único archivo desde n8n, Make o Zapier, sin montar servidores.

Cómo funciona

Le mandas dos o más PDFs (codificados en base64, dentro de un JSON) y te devuelve un único PDF con todas las páginas de todos ellos, en el mismo orden en que los mandaste. No guarda nada: el PDF se genera al momento.

A diferencia del resto de herramientas de PDF, esta necesita varios archivos a la vez, así que solo admite el cuerpo en JSON (no hay modo "pega el PDF a pelo").

Lo único que necesitas

  • Tu API key. La creas en tu panel con "+ Crear llave". Se muestra una sola vez, así que cópiala y guárdala.
  • En tu plataforma de automatización, un paso de tipo "HTTP Request" / "Hacer una petición HTTP" (lo tienen n8n, Make, Zapier, Pipedream…).
  • Cada PDF convertido a base64 antes de mandarlo (ver el paso a paso de abajo).

Los PDFs viajan dentro de un JSON, así que entre todos los archivos que fusiones no pueden superar unos 4 MB combinados. Para PDFs más grandes, redúcelos antes o fusiona en varias tandas.

Cómo usarlo en n8n (paso a paso)

En el nodo HTTP Request:

  • Method: POST
  • URL: https://api.cofferdock.com/pdf-merge
  • Send Headers: actívalo y añade dos: x-api-key = tu llave, y Content-Type = application/json
  • Send Body: actívalo → Body Content Type: JSON{ "files": ["<base64 del primer PDF>", "<base64 del segundo PDF>"], "output": "binary" }
  • En Options → Response → Response Format: elige File (porque pediste output: "binary")

Si el PDF te llega como archivo binario de un paso anterior (por ejemplo de Google Drive o de un email), conviértelo a base64 con un nodo Code y la expresión {{'{{'}}$binary.data.toString('base64'){{'}}'}}, o con el nodo Move Binary Data en modo "Binary to Property".

En Make (módulo HTTP → Make a request): mismo método y URL, Headers las dos cabeceras, Body type: Raw, Content type: JSON (application/json), y en Request content el mismo JSON con el array files. El módulo "Get a file" de Make ya te da el contenido en base64 directamente.

En resumen: POST a …/pdf-merge, cabeceras x-api-key y Content-Type: application/json, cuerpo JSON con files (array de PDFs en base64) y output: "binary", Response Format en File.

Opciones (dentro del JSON)

OpciónPor defectoPara qué sirve
filesObligatorio. Array de 2 a 20 PDFs en base64, en el orden en que quieres fusionarlos.
outputjsonPon binary para recibir el PDF directamente en vez de en base64.

Lo que recibes

Por defecto, un JSON con el PDF fusionado en base64 y datos como el número total de páginas. Con "output": "binary" recibes el PDF directamente, listo para guardar o enviar.

Merge PDFs

Merge PDFs is an API that combines several PDFs into one, in the order you send them. Great for joining invoices, attachments or reports into a single file from n8n, Make or Zapier, with no servers to maintain.

How it works

You send two or more PDFs (base64-encoded, inside a JSON body) and get back a single PDF with every page from all of them, in the same order you sent them. Nothing is stored: the PDF is generated on the fly.

Unlike the other PDF tools, this one needs several files at once, so it only accepts a JSON body (there's no "paste the raw PDF" mode).

All you need

  • Your API key. Create it in your dashboard with "+ Create key". It's shown only once, so copy and save it.
  • In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream… all have one).
  • Each PDF converted to base64 before sending it (see the step-by-step below).

The PDFs travel inside a JSON body, so all the files you merge together can't add up to more than about 4 MB combined. For bigger PDFs, shrink them first or merge in batches.

How to use it in n8n (step by step)

In the HTTP Request node:

  • Method: POST
  • URL: https://api.cofferdock.com/pdf-merge
  • Send Headers: on → add two: x-api-key = your key, and Content-Type = application/json
  • Send Body: on → Body Content Type: JSON{ "files": ["<first PDF base64>", "<second PDF base64>"], "output": "binary" }
  • Under Options → Response → Response Format: choose File (since you asked for output: "binary")

If the PDF arrives as binary data from an earlier step (say, from Google Drive or an email), convert it to base64 with a Code node using {{'{{'}}$binary.data.toString('base64'){{'}}'}}, or with the Move Binary Data node in "Binary to Property" mode.

In Make (HTTP → Make a request module): same method and URL, Headers with the two headers, Body type: Raw, Content type: JSON (application/json), and the same JSON with the files array in Request content. Make's "Get a file" module already gives you base64 content directly.

In short: POST to …/pdf-merge, headers x-api-key and Content-Type: application/json, a JSON body with files (array of base64 PDFs) and output: "binary", Response Format as File.

Options (inside the JSON)

OptionDefaultWhat it does
filesRequired. Array of 2 to 20 base64 PDFs, in the order you want them merged.
outputjsonSet to binary to receive the PDF directly instead of base64.

What you get back

By default, a JSON object with the merged PDF in base64 plus data like the total page count. With "output": "binary" you get the PDF itself, ready to save or send.