Hey everyone,
I'm a .NET developer and I needed a simple way to convert HTML to PDF. Looked at existing options:
- Paid libraries - expensive licenses for a basic feature
- PuppeteerSharp directly - works, but lots of boilerplate (browser lifecycle, resource cleanup, pooling)
- wkhtmltopdf - outdated rendering engine, CSS issues
So I built Flavor - a free, open source wrapper that handles the boring parts.
var pdf = await new FlavorConverter().ConvertHtmlAsync("<h1>Hello</h1>");
What it does:
- HTML/URL to PDF (uses real Chrome via PuppeteerSharp)
- Full CSS3 support (flexbox, grid, media queries)
- Browser pool for concurrent requests
- PDF operations (merge, split, watermark, encrypt)
- ASP.NET Core integration with this.Pdf() extension
What it doesn't do:
- No magic - still needs Chromium
- Not for pixel-perfect reports from scratch
GitHub: Flavor
NuGet: dotnet add package Flavor
Looking for feedback. What's missing? What would make you actually use this?
Top comments (0)