PDF Generator API icon

PDF Generator API

Generate PDFs, manage templates, convert HTML/URLs to PDF, and perform PDF operations like watermarking, encryption, and optimization

Document → Generate (Batch + Async)

AI-generated

Summary

Submits multiple template-and-data pairs to PDF Generator API for asynchronous document generation. Use it when a workflow needs to generate a batch without waiting for the files in the same request.

Inputs

  • Templates (required) — Add one or more entries, each with a required template selected from the list or entered by numeric ID, and required JSON data to merge with that template.
  • Format — Choose PDF or HTML; defaults to PDF.
  • Output — Choose Base64, URL, or Viewer; defaults to Base64. URL and Viewer outputs store the document for 30 days.
  • Callback Options — Optionally provide a callback URL and JSON custom headers for the completion callback. Headers are included only when a callback URL is set.
  • Additional Fields — Optionally set an output name and enable testing mode. Testing mode does not count the generation but adds a large PREVIEW stamp.

Output shape

A single n8n item per input item containing the API's asynchronous batch response as JSON.

The node submits the batch and returns the API response; it does not wait for generated files. With Continue On Fail enabled, an input item that errors returns an item with an error field.

Links

Discussion