BonniePDF:
A compliance-ready PDF generation library for .NET and TypeScript
BonniePDF is a zero-dependency layout engine for building complex, auto-paginating PDF documents. Generate
tagged PDF/UA and PDF/A output using familiar C# or TypeScript.
PDF/A and PDF/UA are document settings with no post-processing step.
Archival
PDF/A • ISO 19005 support
For documents that must stay readable for decades. PDF/A-3 is also the container format for Factur-X and ZUGFeRD e-invoices, and PDF/A-4f carries attached files on PDF 2.0.
Eight levels are supported, from PDF/A-1b to PDF/A-4f, and every font is embedded automatically.
PDF/A-1b
PDF/A-1a
PDF/A-2b
PDF/A-2a
PDF/A-3b
PDF/A-3a
PDF/A-4
PDF/A-4f
Accessibility
PDF/UA • ISO 14289 support
Headings, paragraphs, lists, tables, and figures are tagged from the element tree, in reading order, so a screen reader can navigate them. PDF/UA-1 writes PDF 1.7; PDF/UA-2 writes PDF 2.0 and pairs with PDF/A-4 or PDF/A-4f.
Whether a finished document is accessible still depends on its content, so it needs a human review.
PDF/UA-1
PDF/UA-2
Why BonniePDF
Solve the hard parts of PDF generation
Everything below ships in the core package, for both .NET and TypeScript, with no extra services.
Typography and scripts
Kerning, ligatures and OpenType features, Arabic and Hebrew text, and automatic font fallback.
Faithful vector SVG
Logos, icons and flags become native paths and gradients, identical in both languages.
PDF/A, PDF/UA and e-invoicing
PDF/A-1 to PDF/A-4 and tagged PDF/UA-1 and PDF/UA-2 are document settings, with Factur-X and ZUGFeRD
attachments.
JSON templates
Serialise any document to JSON, edit it anywhere and render it later, with strict validation.
Automatic pagination
Flow text and tables across pages, with repeating headers and widow and orphan control.
Charts and barcodes
Bar, line, area and donut charts, plus QR, Data Matrix and retail barcodes, drawn as vectors.
Nothing to install or run
No headless Chromium, native binary or WASM module. It runs wherever .NET or JavaScript runs.
Navigation and security
Bookmarks, tables of contents with resolved page numbers, and AES-256 encryption with permissions.
Shared specification
C# and TypeScript implement one specification, so both produce the same document.
Footprint
Small enough to ship anywhere
The same engine runs in the browser, Node, Bun, Deno, edge runtimes and .NET, with nothing extra to install.