Skip to content

PDFMancer Docs

PDFMancer is an API-first system for generating PDFs from JSON templates and data.

Quick start

Render with a raw template:

bash
curl -X POST http://localhost:8000/api/public/render \
  -H "Content-Type: application/json" \
  -H "X-API-Key: <api_key>" \
  -d '{
    "elements": [
      { "type": "text", "value": "Hello **PDFMancer**!" }
    ]
  }'

Render with a saved template + data:

bash
curl -X POST http://localhost:8000/api/public/render \
  -H "Content-Type: application/json" \
  -H "X-API-Key: <api_key>" \
  -d '{
    "template_id": "<template_id>",
    "data": { "customer": { "name": "ACME" }, "total": 123.45 }
  }'

Next: