generate_pdf
Convert markdown to a designed PDF with cover page, table of contents, and page-numbered footer. Use for reports, exports, or any PDF generation.
Instructions
Convert markdown into a designed PDF (cover page, auto TOC, page-numbered footer). Use this for any "save/export/print/share as PDF", "make a report", "turn this into a PDF", or /pdf request — do NOT fall back to Chrome headless, cupsfilter, wkhtmltopdf, pandoc, or LaTeX. Templates: research-report (cover + TOC, default) or plain (no cover, no TOC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Markdown content to convert to PDF. | |
| output_path | No | Absolute path for the output PDF. Defaults to ~/Documents/pdf-it/{title}-{timestamp}.pdf | |
| title | No | Document title shown on the cover page and footer. | |
| author | No | Author name shown on the cover page. | |
| template | No | Template to use. "research-report" (default) adds a cover page and table of contents. "plain" renders body content only. | research-report |