Markdown to PDF
MarkdowntoPDFMarkdown to PDF: Markdown to PDF is a PDF generator API that converts markdown text into professionally formatted PDF documents and returns a temporary download URL for each file. Paid plans can set the paper size, orientation and margins, style the document with their own CSS, and print a header and footer with page numbers on every page. (Cost: 30 credits)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"markdown": "<markdown>"
},
"name": "MarkdowntoPDF"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Stylesheet applied to the rendered markdown, e.g. body { font-family: Georgia, serif } table { border-collapse: collapse } | |
| format | No | Paper size | A4 |
| markdown | Yes | Markdown text to convert (max 100,000 characters) | |
| landscape | No | Set to true for landscape orientation | |
| marginTop | No | The top margin in inches | |
| marginLeft | No | The left margin in inches | |
| marginRight | No | The right margin in inches | |
| marginBottom | No | The bottom margin in inches | |
| footerTemplate | No | HTML printed at the bottom of every page, with the same placeholders as headerTemplate, e.g. <span class="pageNumber"></span> of <span class="totalPages"></span> | |
| headerTemplate | No | HTML printed at the top of every page. Spans with class pageNumber, totalPages, date or title are filled in. Use inline styles with a font-size (Chromium defaults to a tiny font) and leave room with marginTop |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |