TemplateFox icon

TemplateFox

Generate PDFs from templates and manipulate PDFs using the TemplateFox API

Merge PDFs

AI-generated

Summary

Merge two or more PDFs into a single concatenated PDF file, specifying the order of concatenation.

Inputs

  • PDFs to Merge (required) — Provide at least two PDFs either via public HTTPS URLs or as Base64-encoded content, arranged in the order they should be merged.
  • Options — Configure how long the resulting PDF URL is valid (expiration in seconds, between 60 and 604800) and optionally specify a custom filename for the merged PDF (without .pdf extension).

Output shape

A JSON object containing the URL to the merged PDF file.

The node returns an object including a URL to download the merged PDF. The URL expires based on the specified expiration time. At least two PDFs must be provided; input validation will throw an error otherwise.

Examples

Example 1: Merging three PDFs provided as URLs in sequential order, with a custom filename and URL expiration set to 1 hour.

Set operation to 'Merge PDFs'. Under 'PDFs to Merge', add three items, selecting 'URL' input type each, and provide their public HTTPS URLs. Under 'Options', set 'Expiration' to 3600 and specify a 'Filename' without extension.

Links

Discussion