# HTML & Markdown to PDF

One API call. Beautiful PDFs. Built-in invoice templates. No headless browser setup, no dependencies, no hassle.

View Docs
// Convert markdown to PDF in one call
curl -X POST https://docfast.dev/v1/convert/markdown \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"markdown": "# Invoice\\n\\nAmount: $500"}' \
-o invoice.pdf

## Why DocFast?

⚡

### Fast

Sub-second PDF generation. Persistent browser pool means no cold starts.

🎨

### Beautiful Output

Full CSS support. Custom fonts, colors, layouts. Your PDFs, your brand.

📄

### Templates

Built-in invoice and receipt templates. Pass data, get PDF. No HTML needed.

🔧

### Simple API

REST API with JSON in, PDF out. Works with any language. No SDKs required.

📐

### Flexible

A4, Letter, custom sizes. Portrait or landscape. Configurable margins.

🔒

### Secure

Your data is never stored. PDFs are generated and streamed — nothing hits disk.

## API Endpoints

POST /v1/convert/html
Convert raw HTML (with optional CSS) to PDF.
POST /v1/convert/markdown
Convert Markdown to styled PDF with syntax highlighting.
POST /v1/convert/url
Navigate to a URL and convert the page to PDF.
GET /v1/templates
List available document templates with field definitions.
POST /v1/templates/:id/render
Render a template (invoice, receipt) with your data to PDF.
GET /health
Health check — verify the API is running.

## Simple Pricing

No per-page fees. No hidden limits. Pay for what you use.

### Free

$0/mo

- 100 PDFs / month
- All endpoints
- All templates
- Community support

### Pro

$9/mo

- 10,000 PDFs / month
- All endpoints
- All templates
- Priority support
- Custom templates

## Get Your Free API Key

Enter your email and get an API key instantly. No credit card required.

## 🚀 You're in!

Here's your API key. Save it now — it won't be shown again.

Click to copy

100 free PDFs/month • All endpoints • View docs →