Convert HTML
AI-generatedSummary
Render supplied HTML and optional CSS as a PDF through the FileToPDF API. Configure page, print, scale, and PDF security or archival options as needed; the generated PDF is written to the chosen binary field.
Inputs
- HTML (required) — HTML markup to render; full documents and fragments are accepted. External images, fonts, and stylesheets referenced by absolute URL are loaded.
- CSS — Optional CSS injected into the document head.
- Options — Optional settings include landscape orientation, page margins and dimensions, page ranges, render scale, background graphics, and preference for CSS @page sizing. Can also set open and permissions passwords, PDF/A format, and PDF/UA accessibility output.
- Put Output File in Field (required) — Binary field name for the generated PDF; defaults to data.
Output shape
One output item per input item, containing JSON metadata and a PDF binary.
JSON metadata includes filename, pages, fileSize, creditsUsed, and creditsRemaining. The PDF binary is stored in the configured output field. With Continue On Fail enabled, an item-level error is returned in JSON instead.