Everything You Need
for PDF Generation

Powered by Chromium via Playwright. The same engine that renders modern websites.

🌐

URL to PDF

Convert any public webpage to PDF. Full JavaScript execution, CSS3, web fonts, and dynamic content — just like a real browser.

📝

HTML to PDF

Send raw HTML with inline CSS and JavaScript. Perfect for invoices, reports, certificates, and dynamically generated documents.

⚙️

Merge, Split & Customize

Merge multiple PDFs into one or extract specific pages. Plus page format, margins, orientation, text & image watermarks, metadata, header/footer templates, and custom CSS injection.

🔒

Secure by Default

Password-protect PDFs with AES-256 encryption. SSRF protection blocks private networks. Security headers via Helmet. No data stored — PDFs stream directly to you.

Need website screenshots instead of PDFs? Try PageShot — capture pixel-perfect screenshots via API.

Up and Running in 3 Steps

No signup. No API keys. No setup. Just a simple POST request.

1. Prepare Your Content

Pass raw HTML or a public URL. Include any CSS, JavaScript, images, or web fonts your document needs.

2. Call the API

POST to /api/v1/pdf/from-html, /api/v1/pdf/from-url, /api/v1/pdf/merge, or /api/v1/pdf/split with your content and options.

3. Get Your PDF

Receive the PDF binary directly in the response. Save it, stream it, or serve it to your users.

Try the API

Enter a URL below and download the generated PDF.

curl command
# Click "Generate PDF" to convert a webpage
# The PDF will download automatically

curl -X POST "https://pdfspark.dev/api/v1/pdf/from-url" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}' \
  -o document.pdf

Start in Seconds

Copy, paste, and go. Works with any language.

terminal

          

MCP Integration

Connect directly to your AI assistant via the Model Context Protocol. Use PDFSpark tools in Claude, VS Code, Cursor, and any MCP-compatible client.

claude_desktop_config.json
{
  "mcpServers": {
    "pdfspark": {
      "command": "npx",
      "args": ["-y", "pdfspark-api"]
    }
  }
}

MCP Docs →

Generate PDFs Today

Completely free. No signup, no API keys. Just POST and get a PDF.

Read the Docs →
Part of the SoftVoyagers Ecosystem