« All posts

HTML-to-PDF API: A Simple Approach with Postgres and Chromium

In 2026, DocPenny offers a secure and efficient PDF generation solution using SvelteKit and PostgreSQL.

PDF generation in 2026 is being integrated with Puppeteer, LiquidJS, and S3. Document sizes range from 50 KB to hundreds of megabytes, with traffic arriving in bursts. Built around four constraints, DocPenny utilizes only SvelteKit, Hono, pg-boss, PostgreSQL, Chromium, and S3-compatible storage. This architecture emphasizes security measures and memory management.