FileToPDF icon

FileToPDF

Convert files, HTML and Markdown into polished PDFs

Convert Markdown

AI-generated

Summary

Convert Markdown content to a PDF using the FileToPDF API, with optional CSS styling and PDF rendering settings. Return the PDF as binary data and include conversion metadata in the output item.

Inputs

  • Markdown (required) — Markdown content to render. The node description declares support for CommonMark, tables, code blocks, and images.
  • CSS — Optional CSS applied to the rendered document; if omitted, the service applies its default stylesheet.
  • Options — Optional rendering and PDF settings: landscape orientation, page margins and dimensions, page ranges, scale, background graphics, CSS page size preference, PDF/A format, PDF/UA, and output open or permissions passwords.
  • Put Output File in Field (required) — Binary field name for the generated PDF; defaults to data. Requires FileToPDF API credentials.

Output shape

One output item per input item, with a PDF in the configured binary field and JSON metadata containing filename, pages, fileSize, creditsUsed, and creditsRemaining.

The PDF is decoded from the API's base64 response. API failures or a successful response without PDF data raise an error; with Continue On Fail enabled, the item instead contains a JSON error field.

Links

Discussion