Want managed PDF generation? Use
client.generate() with pdfn Cloud — no infra or browser management needed.How it works
render()converts your React template to self-contained HTML- You pass that HTML to Puppeteer or Playwright to generate a PDF
Setup
- Puppeteer
- Playwright
Add
@pdfn/tailwind if your templates use Tailwind CSS. See Styling.Required PDF options
Always use these two options when callingpage.pdf():
Comparison
| pdfn Cloud | Self-Hosted | |
|---|---|---|
| Setup | Managed — no infra or browser setup | You manage infra and Chromium |
| Scaling | Auto-scales | You handle scaling |
| Compliance | PDF/A-1b, PDF/A-2b, PDF/A-3b | Not available |
| Cost | Usage-based pricing | Your infrastructure costs |