Inkspan › 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.
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)