Open source · Apache-2.0
NetPdf
An HTML and CSS to PDF rendering engine, written in pure C#. No browser, no Chromium subprocess. It parses the page, runs its own layout engine, and writes the PDF directly.
- Block, inline, flexbox, grid, and table layout
- Paged media:
@page, running headers, page counters - HarfBuzz text shaping, including right-to-left and CJK
- Deterministic: the same input gives a byte-identical PDF
- Native AOT compatible
- 3-page invoice
- ≤ 200 ms
- Runtime
- .NET 10
- Install
- dotnet add package NetPdf














