Render Markdown or HTML Document to Themed PDF
render_document_pdfCompiles Markdown (headings, bold/italic/code, lists, GFM tables, callouts, '---pagebreak---') or HTML into both print-ready themed HTML and a spec-compliant multi-page PDF 1.7 binary with running headers, 'Page X of Y' footers, repeated table headers across page breaks, optional watermark, and deterministic layoutDiagnostics. Pricing: $0.004 USD per rendered PDF document (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.
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": {
"content": "<content>"
},
"name": "render_document_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Corporate print styling theme ('executive', 'invoice', 'technical', or 'memo'). | executive |
| title | No | Optional document title rendered in the cover banner and stored in PDF /Title metadata. | |
| author | No | Optional author or organization name rendered in the cover banner and PDF /Author metadata. | |
| content | Yes | Markdown (headings, bold/italic/code, lists, GFM tables, callouts, '---pagebreak---') or raw HTML body to compile. | |
| pageSize | No | Paper size ('Letter', 'A4', or 'Legal'). | Letter |
| subtitle | No | Optional subtitle rendered below the title and stored in PDF /Subject metadata. | |
| headerText | No | Optional running header stamped at the top margin of every page. | |
| orientation | No | Page orientation ('portrait' or 'landscape'). | portrait |
| contentFormat | No | Input syntax format ('markdown' or 'html'). | markdown |
| watermarkText | No | Optional diagonal watermark text rendered across every page (e.g. 'CONFIDENTIAL' or 'DRAFT'). | |
| includePageNumbers | No | Include 'Page X of Y' running footers on every page. |