Gotenberg - A small API that turns documents into PDFs
Generating PDFs in an app sounds simple until fonts, headers, and a browser engine enter the picture. Gotenberg wraps that messy job in a stateless HTTP API, so your backend posts HTML or office documents and gets a PDF back. It’s built around containers, which means you can scale it sideways and keep the document rendering out of your main service. I like it for invoices and reports where layout has to be predictable. It isn’t a document editor and won’t fill in your content for you; it does the conversion part and does it well.
Links
- Website: https://gotenberg.dev/
- GitHub: https://github.com/gotenberg/gotenberg
Alternatives
- WeasyPrint: A Python library that renders HTML and CSS to PDF in-process, with fewer moving parts.
- wkhtmltopdf: An older command-line converter that still works, though its engine shows its age.
- Puppeteer: A browser control library for custom printing flows; more code, more control.