from_markdown
Convert Markdown text into a PDF document, with optional title, author, theme, table of contents, numbered headings, headers, and footers.
Instructions
Convert Markdown text to a PDF and return metadata plus the inline file.
Args:
markdown: Markdown source (headings, paragraphs, lists, tables, code,
blockquotes, rules).
title: Document title; also names the default output file.
author: Document author. Defaults to the configured author setting.
theme: Theme name for the document.
toc: Insert a table of contents.
number_headings: Number section headings.
header: Running header text.
footer: Running footer text (supports {page} and {pages}).
out: Output PDF path. Defaults to <output_dir>/<title-slug>.pdf.
home: Data root. Defaults to $PDF_CREATOR_HOME or ~/.local/share/pdf-creator.
base_dir: Base for relative image/font paths. Defaults to the server cwd.
allow_remote: Allow fetching remote images referenced by the spec.
force: Overwrite an existing output file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | ||
| toc | No | ||
| home | No | ||
| force | No | ||
| theme | No | ||
| title | No | ||
| author | No | ||
| footer | No | ||
| header | No | ||
| base_dir | No | ||
| markdown | Yes | ||
| allow_remote | No | ||
| number_headings | No |