Markdown to PDF Converter API: Tables, Code & Footnotes avatar

Markdown to PDF Converter API: Tables, Code & Footnotes

Pricing

$4.00 / 1,000 pdf rendereds

Go to Apify Store
Markdown to PDF Converter API: Tables, Code & Footnotes

Markdown to PDF Converter API: Tables, Code & Footnotes

Markdown to PDF converter: turn Markdown into a clean PDF with GitHub-style tables, task lists, footnotes and syntax-highlighted code. Three themes and page numbers. Text, URL or base64 input. For n8n, Make and AI agents. $0.004 per PDF.

Pricing

$4.00 / 1,000 pdf rendereds

Rating

0.0

(0)

Developer

Ferrolark

Ferrolark

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Markdown to PDF API: GitHub-Style Tables, Code and Footnotes

Turn Markdown into a clean, printable PDF with one API call. Ideal for reports written by AI agents, READMEs and meeting notes.

  • GitHub-flavoured: tables, strikethrough, task lists, footnotes and front matter (stripped).
  • Syntax-highlighted code with Pygments for 500+ languages.
  • Three themes: GitHub (sans-serif), Serif and Compact, plus your own CSS.
  • Safe: JavaScript never runs; raw HTML is shown as text unless you allow it; remote images load only from public addresses.
  • Input as text, URLs (for example raw GitHub files) or base64 files.

Real example

A short report from text and the README of github/gitignore from its raw URL:

{
"markdownUrls": [
"https://raw.githubusercontent.com/github/gitignore/main/README.md"
],
"markdown": "# Weekly report\n\n| Metric | Value |\n|---|---|\n| Visitors | 1,204 |\n\n- [x] Ship pricing page\n\n```python\nprint(1)\n```\n",
"pageNumbers": true
}
  • Run time: 17.9 s on Apify at 1,024 MB.
  • Platform usage: $0.0013.
  • Your cost: 2 PDFs × $0.004 = $0.008.
OutputTitlePagesBytes
document.pdfWeekly report124,804
README.pdfA collection of .gitignore templates366,195

Price and limits

  • $0.004 per PDF.
  • Documents that fail are listed in OUTPUT.errors and not charged.
  • Limits: 20 documents per run, 5 MB of Markdown each.

Input

FieldDefaultWhat it does
markdownnoneMarkdown text.
markdownUrlsnonePublic .md files.
filesnone[{"base64": "...", "name": "notes.md"}].
themegithubgithub, serif or compact.
paperFormat, landscape, marginMm, pageNumbersA4, false, 10, falsePage setup.
titlefirst headingPDF title.
customCssnoneExtra CSS.
allowHtmlfalseRender raw HTML tags.
loadRemoteImagestrueLoad public images.
includeHtmlfalseAlso save the HTML (free).
createShareableUrlfalseAlso return signed links that work without an Apify token.

Call it from code, n8n or an AI agent

API (synchronous):

curl -X POST "https://api.apify.com/v2/acts/ferrolark~markdown-to-pdf/run-sync-get-dataset-items?maxTotalChargeUsd=0.1" \
-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"markdown": "# Hello\n\nSome **bold** text.", "theme": "serif"}'

n8n: paste this workflow on the canvas (Ctrl+V). Add a Header Auth credential with the name Authorization and the value Bearer <your Apify token>, and use it in both HTTP nodes. The second node downloads the PDF as an n8n binary.

{
"name": "Ferrolark markdown-to-pdf",
"nodes": [
{
"parameters": {},
"name": "When clicking Test workflow",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
0
]
},
{
"parameters": {
"method": "POST",
"url": "https://api.apify.com/v2/acts/ferrolark~markdown-to-pdf/run-sync-get-dataset-items?maxTotalChargeUsd=0.05",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\"markdown\": \"# Report\\n\\nGenerated by my workflow.\", \"pageNumbers\": true}",
"options": {
"timeout": 300000
}
},
"name": "Run Actor",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
220,
0
]
},
{
"parameters": {
"url": "={{ $json.downloadUrl }}",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"options": {
"response": {
"response": {
"responseFormat": "file"
}
}
}
},
"name": "Download file",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
440,
0
]
}
],
"connections": {
"When clicking Test workflow": {
"main": [
[
{
"node": "Run Actor",
"type": "main",
"index": 0
}
]
]
},
"Run Actor": {
"main": [
[
{
"node": "Download file",
"type": "main",
"index": 0
}
]
]
}
}
}

AI agents (MCP): add the Apify MCP server (https://mcp.apify.com) to Claude, Cursor or any MCP client and allow ferrolark/markdown-to-pdf. The agent gets a typed tool with the input above.

FAQ

Does it support Mermaid diagrams or math?

Not yet; JavaScript is disabled for safety. Render diagrams to images and link them.

Can I use my brand fonts and colours?

Yes, with customCss, for example h1 { color: #c2410c; }.

More Ferrolark tools

  • Brand Name Availability Checker: domains, GitHub, npm, PyPI and more in one report.
  • Domain Intelligence Report: WHOIS, DNS, email security, SSL and hosting for any domain.
  • Launch Asset Pack: favicons, PWA icons, OG image and head tags from one logo.
  • Live Deploy QA: meta tags, canonical, robots, OG image and favicon of your deployed routes, with diffs between deploys.
  • Sitemap Delta: new, removed and broken URLs in any sitemap since the last run.
  • RSS Delta: only new RSS, Atom and JSON Feed items, de-duplicated.
  • PDF Merge API: merge PDFs from URLs or base64 with page ranges and a SHA-256 manifest.
  • PDF Split API: split a PDF by page ranges or every N pages, or extract pages, with a ZIP and manifest.
  • Image Convert: PNG, JPG, WebP, AVIF and HEIC conversion (SVG input too) from URLs or base64.
  • Image Compress & Resize: resize images and compress them to a target size in KB, WebP or AVIF.
  • PDF to Image: PDF pages to PNG, JPG or WebP at the DPI you choose.
  • Image to PDF: JPG, PNG, HEIC and WebP images to one PDF, JPEGs embedded without recompression.
  • PDF Compress: smaller PDFs, lossless or with image downsampling; charged only when smaller.
  • HTML to PDF & URL to PDF: web pages or raw HTML to PDF with headless Chrome.
  • DOCX to PDF: Word, Excel, PowerPoint and ODT to PDF with LibreOffice.
  • Data Convert: CSV, JSON, NDJSON and Excel XLSX in any direction.

Built by Ferrolark.