Introduction
doclinth turns structured data into pixel-perfect PDFs (invoices, receipts, statements) from a single API call. You design a template once, then POST a small JSON payload and get back a finished PDF in about two seconds.
How it works
- Author a template. Describe what you want in plain English and let AI generate the HTML/CSS, or start from a built-in starter and tweak it.
- Generate deterministically. Send your data to
POST /v1/generate. The generation path never calls an AI model, so output is fast and identical every time.
Next steps
- Quickstart: first PDF in under 5 minutes
- Authentication
- Generate a PDF: the API reference
- Template syntax
- Data contracts: every template is a typed API
- Document tests: break the layout before your customers do
For AI agents & machine consumers
- Using doclinth from an agent: MCP setup and tool-use examples
- /llms.txt: condensed, agent-readable index
- /llms-full.txt: full agent reference (endpoints, helpers, errors)
- /openapi.json: OpenAPI 3.1 machine-readable spec