generate_letter_pdf
Converts a Markdown cover letter into a clean A4 PDF. Accepts text input or a file path, returns the saved PDF path.
Instructions
Render a cover letter written in Markdown into a clean, classic A4 PDF.
Provide the letter either inline via text, or as an existing Markdown file via
letter_path — so the PDF can be produced from a letter that already exists,
without composing a new one. Uses the same local Chromium as the CV, so it works
on any machine without Word or extra system dependencies. Returns {"path"}.
Args:
text: the cover letter in Markdown. Blank lines separate paragraphs; a
top-level heading (# Subject: ...) is styled as the light-blue header.
letter_path: path to an existing Markdown letter to render instead of text.
output_path: where to save the PDF, e.g. output/Acme/backend-dev/cover-letter.pdf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| letter_path | No | ||
| output_path | No | cover-letter.pdf |