I built a minimal, zero-dependency PDF library for C# because I hate bloat
If you’ve been writing C# for a while, you know the drill. You need to generate a simple PDF—maybe an invoice, a quick report, or a receipt.
So, you open up NuGet, search for "PDF", and suddenly you are staring down the barrel of a 50MB dependency, a labyrinth of complex object models, and licensing terms that require a law degree to understand.
I’ve been a developer for 40 years. I mostly work on backend and integration software for the printing industry. I like keeping things close to the metal, and I generally despise pulling in massive frameworks when a pragmatic, lightweight solution will do the trick.
I didn't want a bloated library. I just wanted to draw some text, a few shapes, and maybe throw an image on a page.
So, I ported a minimal PDF generator to .NET 10. Meet tinypdf-csharp .
What is it?
It is a C# port of the original TypeScript tinypdf by Lulzx.…