Content is loading…
Render Markdown to a styled PDF (headings, tables, code, RTL support).
markdown_to_pdf#markdown to pdf#pdf generator#document export#rtl pdf#arabic pdfConverts Markdown text into a styled PDF document. Accepts markdown content along with layout options like pageSize, orientation, and styling fields like fontFamily or headingColor. Returns a URL to the generated PDF file that remains valid for 24 hours.
| Name | Type | Required | Description |
|---|---|---|---|
markdown | string | required | The Markdown source to render. Supports GFM tables, code blocks, lists, etc. |
pageSize | enum ("A4" | "LETTER" | "A3" | "LEGAL") | optional | Page size. Default A4. |
orientation | enum ("portrait" | "landscape") | optional | Page orientation. Default portrait. |
fontFamily | enum ("Helvetica" | "Times-Roman" | "Courier" | "Amiri" | "NotoSansArabic") | optional | Font family. Use Amiri or NotoSansArabic for Arabic/RTL content. Default Helvetica. |
fontSize | number | optional | Body font size in points (8-24). Default 11. |
direction | enum ("auto" | "ltr" | "rtl") | optional | Text direction: auto (detects), ltr, or rtl. Default auto. |
headingColor | string | optional | Hex color for headings (e.g. "#1e3a5f"). Default "#1e3a5f". |
textColor | string | optional | Hex color for body text. Default "#111111". |
docTitle | string | optional | PDF document title metadata (also shown in header if showTitleHeader). |
docAuthor | string | optional | PDF author metadata. |
showPageNumbers | boolean | optional | Show page numbers in footer. Default true. |
showTitleHeader | boolean | optional | Render docTitle as a styled header on each page. Default false. |
{
"markdown": "# Q4 Report\n\nHello world.",
"pageSize": "A4",
"docTitle": "Q4 Report"
}{
"markdown": "# السيرة الذاتية\n...",
"direction": "rtl",
"fontFamily": "Amiri"
}curl -X POST https://toolsy.my/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "markdown_to_pdf",
"arguments": {
"markdown": "# Q4 Report\n\nHello world.",
"pageSize": "A4",
"docTitle": "Q4 Report"
}
}
}'Generate a free API key or set up an OAuth connector for Claude.ai.