Guides
Generate PDFs from your data
Practical guides with complete code samples, from your first request to production. The full API reference is in the documentation.
- Tutorial
How to generate a PDF from JSON with a REST API
A step-by-step tutorial: send a JSON document to a REST API and get back a paginated PDF with tables, totals, headers and page numbers. Copy-paste cURL examples.
- Guide
Generate PDFs in .NET and ASP.NET Core
Create PDFs from C# with HttpClient and serve them from an ASP.NET Core endpoint, using a typed client and IHttpClientFactory. No native libraries or headless browser.
- Guide
Node.js PDF generation with a REST API
Generate PDFs in Node.js with fetch: a reusable helper with retries, and an Express route that streams a PDF to the browser. No Puppeteer, no Chromium.
- Guide
Python PDF generation with a REST API
Generate PDFs in Python with requests: a small helper with error handling, and a Flask route that returns a PDF download. No system packages to install.
- Use case
Invoice PDF generation API
Turn invoice data into professional, multi-page PDF invoices: line items, tax, totals, payment details and a logo, mapped from your own data model in one function.
- Comparison
PDF generation without Puppeteer: HTML to PDF vs JSON to PDF
When a headless browser is the right tool for PDFs, when it isn't, and how JSON to PDF compares on pagination, deployment, speed and maintenance.