tinypdf: A 400-line, zero-dependency PDF library that's 70x smaller than jsPDF

tom_doerr · x · 2026-08-12

tinypdf is a minimal PDF creation library with under 400 lines of code and zero dependencies, weighing only 3.3KB—about 70x smaller than jsPDF. It focuses on core features like text, shapes, JPEG images, links, and multi-page support, and can convert Markdown to PDF. Ideal for invoices, receipts, labels, etc. The project has 1.9k stars on GitHub.

Original post →

More from coding & agent

coding & agent channel →