Step: Markdown to PDF
- Key:
markdown-to-pdf - Category: Utilities
- Description: Convert Markdown content from the flow context into a PDF and return it as base64.
Inputs
markdownKey(select, required): Context key containing Markdown content. If the value is an object, the runtime usesmarkdown, thencontent, then a JSON string representation.fileName(text, optional): Suggested file name. Defaults todocument.pdf;.pdfis appended when missing.title(text, optional): PDF document title metadata.
Outputs
base64(text): Generated PDF file content as a base64 string.mimeType(text): MIME type of the generated file.fileName(text): Suggested PDF file name.size(number): Generated file size in bytes.
Notes
- The runtime renders GitHub-flavored Markdown, sanitizes the generated HTML, and prints it to A4 PDF.
- External network requests from the generated document are blocked during rendering.
- Use
save-fileafter this step when you need a downloadable file link.
Example Use Case
- Use
ask-to-llmoragentto generate Markdown and store it asreport.markdown. - Use
markdown-to-pdfwithmarkdownKey = "report.markdown"andfileName = "weekly-report.pdf". - Return the
base64directly or save it with a file step.

