tinypdf is a minimal PDF creation library for JavaScript/TypeScript that weighs only 3.3 KB with zero dependencies, approximately 70x smaller than jsPDF. It focuses on the core use case of putting text and images on pages, supporting basic features like text rendering (Helvetica font), shapes (rectangles and lines), JPEG images, multiple pages, and markdown-to-PDF conversion. The library intentionally excludes advanced features like custom fonts, PNG/SVG support, forms, encryption, and compression to maintain its minimal footprint. It's designed for common document generation tasks like invoices, receipts, reports, and certificates.

4m read timeFrom github.com
Post cover image
Table of contents
Why tinypdf?Quick startAPIFull exampleLicense

Sort: