Developer Workflow · Zero Local Chromium

CLI, HTTP API & GitHub Action

Generate styled PDFs from your terminal, build scripts, or GitHub Actions in one command — with Mermaid, KaTeX, TOC, and 10 templates out of the box.

Open Browser Workspace
Configure Command
npx mdtopdf-cli README.md \
  -t github \
  --toc \
  --page-numbers \
  --footer "Acme Engineering" \
  -o output.pdf

Pipe from stdin

Run `cat notes.md | npx mdtopdf-cli -t report -o notes.pdf` right in any shell pipeline.

Zero 400 MB downloads

Skip local Puppeteer, Chrome binaries, and 4 GB TeX Live installs in CI containers.

Auto-build repo PDFs

Attach fresh PDF releases of your README, changelog, or API spec on every git push.

Stateless & private

Every conversion runs in memory with zero persistence and no-store headers.

POST https://www.mdtopdf.io/api/convert — Parameters

FieldType / ValuesDefault
markdownstring (required, max 2 MB)—
templatedefault | executiveBrief | report | academic | modern | github | resume | compact | manuscript | darkPrintdefault
paperSizea4 | letter | legala4
orientationportrait | landscapeportrait
marginPresetnarrow | normal | widenormal
densitycompact | normal | roomynormal
includeToc / includeCoverbooleanfalse
showPageNumbers / showLinkUrlsbooleanfalse
headerText / footerTextstring (optional)""

Frequently Asked Questions

Do I need to install Pandoc, LaTeX, or Chromium locally?

No. mdtopdf-cli is a lightweight zero-dependency Node script that streams your Markdown to our stateless rendering API and writes the resulting PDF directly to disk.

Is there an API key or signup required?

No API key is required for normal usage. The public POST /api/convert endpoint is free and rate-limited fairly per IP to prevent abuse.

Does the API support Mermaid diagrams, KaTeX math, and US Letter?

Yes. Pass template, paperSize ('a4' | 'letter' | 'legal'), orientation ('portrait' | 'landscape'), includeToc, includeCover, showPageNumbers, headerText, and footerText in the JSON body.

Are files sent through the CLI or API stored?

No. Documents are rendered in a short-lived worker, streamed back with Cache-Control: no-store, and discarded immediately.