Inkspan › HTML to PDF API

HTML to PDF API

Turn any HTML string or full page into a pixel-faithful PDF. No Chromium in your container, no font installs, no scaling headaches — just POST your HTML and stream back a PDF.

Example

import requests
r = requests.post('https://api.inkspan.dev/v1/generate/html',
    headers={'X-API-Key': 'ink_live_...'},
    json={"html":"<h1>Hello</h1><p>Rendered to PDF via API.</p>"})
open('out.pdf','wb').write(r.content)

Why an API instead of building it

Get a free API key →