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

AI-generated

Summary

Generate a document from a selected PDF Generator API template by merging in JSON data. Choose PDF or HTML and a response format; the operation returns the API response as JSON or attaches the generated document as binary data.

Inputs

  • Template (required) — Select a template from the list or enter its numeric ID.
  • Data (required) — JSON data to merge with the template; must be valid JSON.
  • Format — Generated document format: PDF (default) or HTML.
  • Output — Response format: Base64 (default), File, URL, or Viewer. File returns inline binary data; URL and Viewer store the document for 30 days.
  • Additional Fields — Optionally set an output name and enable testing mode. Testing mode does not count generation but adds a large PREVIEW stamp.

Output shape

One n8n item per input item, usually containing JSON response data; File output also includes the generated document as binary data.

JSON output includes success, filename, selected output format, and fields from the API response. File output includes success, filename, output format, and file size alongside the binary document. The filename uses the optional output name or defaults to document, followed by the selected document format.

Links

Discussion