Convert Markdown to beautifully styled PDF documents. Free API — no signup needed. Supports headings, lists, code blocks, bold, italic, links, and more.
# Send Markdown as plain text
curl -X POST https://documint.anethoth.com/api/v1/markdown-to-pdf \
-H "Content-Type: text/plain" \
-d '# Hello World
This is a **test** document.' \
-o document.pdf
# JSON with options
curl -X POST https://documint.anethoth.com/api/v1/markdown-to-pdf \
-H "Content-Type: application/json" \
-d '{"markdown": "# Report\n\n## Summary\n\nQ1 revenue: **$45,000**", "page_size": "Letter"}' \
-o report.pdf
import requests
md = """# Monthly Report
## Highlights
- Revenue up **23%**
- 150 new signups
- Shipped 3 features
## Next Steps
1. Launch v2.0
2. Expand to EU market
"""
resp = requests.post(
"https://documint.anethoth.com/api/v1/markdown-to-pdf",
json={"markdown": md, "page_size": "A4"}
)
with open("report.pdf", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://documint.anethoth.com/api/v1/markdown-to-pdf", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
markdown: "# Hello World\n\nThis is **bold** and *italic*.",
page_size: "A4"
})
});
const pdf = await resp.arrayBuffer();
fs.writeFileSync("output.pdf", Buffer.from(pdf));
Headings, bold, italic, lists, numbered lists, code blocks, blockquotes, links, horizontal rules — all rendered beautifully.
Clean typography with proper heading hierarchy, syntax-highlighted code blocks, and tasteful color accents.
No Pandoc, no LaTeX, no local tools needed. Just a single API call from any language.
Generate PDF reports from Markdown templates. Ideal for automated reporting pipelines, CI/CD docs, and changelogs.
POST /api/v1/markdown-to-pdf
| markdown | string (required) | Markdown text to convert |
| page_size | string | A4, Letter, Legal (default: A4) |
| filename | string | Output filename (default: document.pdf) |
Rate limit: 10 requests/minute per IP. Max input: 500KB.