PDF

Usage Instructions

Generate PDF documents from text or markdown content. Supports headers, bold text, bullet lists, page sizing, headers/footers, and page numbers.

Actions

Generate PDF

Generate a PDF document from text or markdown content

Input

ParameterTypeRequiredDescription
contentstringYesThe content to render in the PDF. Supports plain text with line breaks and basic markdown-style headers (# H1, ## H2, ### H3), bold (text), bullet lists (- item), and horizontal rules (---).
filenamestringNoThe filename for the generated PDF (without .pdf extension). Defaults to "document".
titlestringNoTitle displayed prominently at the top of the PDF document.
pageSizestringNoPage size: "a4", "letter", or "legal".
orientationstringNoPage orientation: "portrait" or "landscape".
marginnumberNoPage margin in points (1 inch = 72 points). Default is 50.
fontSizenumberNoFont size in points. Default is 12.
headerTextstringNoHeader text displayed at the top of each page.
footerTextstringNoFooter text displayed at the bottom of each page. Use {{page}} for page number and {{pages}} for total pages.
pageNumbersbooleanNoWhether to include page numbers in the footer (e.g., "Page 1 of 3").

Output

ParameterTypeDescription
successbooleanWhether the PDF generation succeeded
outputobjectGenerated PDF output
↳ filefileThe generated PDF file
↳ pageCountnumberNumber of pages in the generated PDF
↳ filenamestringThe filename of the generated PDF