Convert to PDF (Unlimited) icon

Convert to PDF (Unlimited)

Take diverse input (HTML, text, tables, JSON, lists) and produce a PDF. Free and unlimited!

Convert to PDF (Unlimited)

AI-generated

Summary

Convert HTML or JSON content into a PDF document with customizable options for input source, filtering fields, PDF formatting, and output type.

Inputs

  • Input Source (required) — Selects content origin: either HTML from a previous node's specified field or manual HTML input.
  • Input Field (required) — When using 'From Previous Node', specifies the JSON field name containing HTML/text content to convert to PDF.
  • HTML Content (required) — When using 'Manual Input', provides the raw HTML content (supports expressions) to convert to PDF.
  • File name (required) — Specifies the default filename for the generated PDF file.
  • Page format (required) — Sets the PDF page format, either A4 or Letter, used during HTML rendering.
  • Output Type (required) — Determines how the PDF is output: as a binary file, a temporary URL, or both.
  • Exclude Fields — Comma-separated fields to exclude if filtering JSON content for PDF generation.
  • Include Only Fields — Comma-separated list of fields to include exclusively in the PDF if JSON input is used.
  • PDF Title — Custom title for the PDF document; auto-generated if left empty.
  • Use HTML Template — Enable to generate PDF using a custom HTML template with placeholders.
  • HTML Template — Custom HTML template for PDF rendering. Supports placeholders like {{title}}, {{date}}, {{content}}, {{json}}, and {{data.fieldName}}.

Output shape

A list of items each containing the original JSON plus the generated PDF either as binary file attachment (in a 'pdf' binary property), as a JSON property with a temporary URL, or both.

Output depends on 'Output Type' parameter: 'binary' includes the PDF as binary data, 'url' includes a temporary upload link, and 'both' includes both forms. If PDF generation fails for an item, an error is thrown and workflow execution may stop. Field filtering applies only when input is JSON and no full HTML input is provided. The node uses multiple fallback PDF rendering methods for best compatibility.

Examples

Example 1: Convert HTML from a previous node's 'output' field to a PDF named 'report.pdf' with A4 page format and binary output.

Input Source: From Previous Node; Input Field: output; File name: report.pdf; Page format: A4; Output Type: Binary

Example 2: Manually input custom HTML with a template for PDF generation, outputting both binary and URL.

Input Source: Manual Input; HTML Content: ; Use HTML Template: true; HTML Template: custom template with placeholders; Output Type: Both

Discussion