Get to your first PDF without digging through a long setup guide
These docs cover the happy path: authenticate with your API key, send HTML, and get back a production-ready PDF response your product can use immediately.
Quickstart
Everything you need to go from API key to a finished PDF request in just a few minutes.
Choose your request source
Send raw HTML from your product or reuse a saved template with merge fields for recurring business documents.
Authenticate with x-api-key
Pass your API key in the request header so DocRender can securely authorize and meter document generation.
Handle the response
Store the PDF file, stream it to a browser, or drop it into your own workflow once the render completes.
Your first request
Use the render endpoint with HTML and a couple of page options to produce a clean A4 PDF.
curl -X POST https://getdocrender.com/api/v1/render/pdf \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "html": "<h1>Invoice</h1><p>Total: £100</p>", "pageSize": "A4", "orientation": "portrait", "fileName": "invoice-100.pdf" }'
What to configure
Most teams only need a few request fields to ship dependable documents.
Authentication and payload
- x-api-key header for every request
- html for direct rendering from your app
- fileName to keep exported documents consistent
- pageSize and orientation for layout control
Document behaviour
- Print CSS for pagination and page breaks
- Headers, footers, page numbers, tables, images, and fonts
- Template-friendly content for invoices, reports, and contracts
- Predictable rendering designed for business workflows
Next steps
Once you have the quickstart working, use the API reference to wire DocRender into your product more confidently.
Read the API reference
Review request headers, JSON fields, response handling, and error behaviour on the dedicated API page.
Pick the right plan
Choose a pricing tier that matches your expected PDF volume, then move from test documents to production usage.
Need the reference details?
The API page breaks down the endpoint, headers, supported fields, and the response shape so your team can integrate faster.