SimpleSign.HtmlToPdf
0.11.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SimpleSign.HtmlToPdf --version 0.11.0
NuGet\Install-Package SimpleSign.HtmlToPdf -Version 0.11.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimpleSign.HtmlToPdf" Version="0.11.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleSign.HtmlToPdf" Version="0.11.0" />
<PackageReference Include="SimpleSign.HtmlToPdf" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SimpleSign.HtmlToPdf --version 0.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimpleSign.HtmlToPdf, 0.11.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SimpleSign.HtmlToPdf@0.11.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SimpleSign.HtmlToPdf&version=0.11.0
#tool nuget:?package=SimpleSign.HtmlToPdf&version=0.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SimpleSign.HtmlToPdf
Dependency-free HTML → PDF for .NET. A managed layout engine for documents — contracts, reports, invoices, editor content — with no browser or native runtime, AOT-friendly.
- CSS cascade with complex selectors,
!important,var(),@media print,@page,@font-face - Block/inline flow, floats, positioning, inline-block, flexbox, grid, lists, justification
- Tables with content-based column sizing, colspan/rowspan, collapsed borders, and pagination that
repeats
<thead>on every page - Embedded, subset TrueType/OpenType fonts with Unicode text extraction, per-glyph fallback, and synthesized bold/italic
- Backgrounds, gradients, opacity, shadows, transforms,
calc(), CSS counters,@pagemargin boxes (page numbers), and multi-column layout - SVG (inline,
<img>, backgrounds) drawn as vector graphics - OpenType shaping (kerning, ligatures, Arabic, Devanagari), right-to-left text, and hyphenation
- PNG (incl. alpha), JPEG and SVG images from data URIs, a base directory, or your own loader
- PDF/A-2b output for archiving and long-term signatures
Quickstart
using SimpleSign.HtmlToPdf;
byte[] pdf = await HtmlToPdfConverter
.Html("<h1>Hello, SimpleSign</h1><p>A paragraph of text.</p>")
.WithFooter("Page {page} of {pages}")
.ConvertAsync();
File.WriteAllBytes("output.pdf", pdf);
// Unicode text: register fonts (regular + bold) and use them from CSS.
byte[] unicodePdf = HtmlToPdfConverter
.Html("<p class='u'>Olá — Καλημέρα — <b>Привет</b></p>")
.WithFontFile("Noto Sans", "fonts/NotoSans-Regular.ttf")
.WithFontFile("Noto Sans", "fonts/NotoSans-Bold.ttf", FontVariant.Bold)
.WithStylesheet(".u { font-family: 'Noto Sans', sans-serif; }")
.WithPdfA()
.Convert();
Relative images/stylesheets are only read when you opt in with WithBaseDirectory(...) or
WithResourceLoader(...); the library never accesses the network on its own.
More (CSS support matrix, fonts, PDF/A, CLI) at github.com/eupassarin/SimpleSign and the docs. MIT licensed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.16.0 | 0 | 11/24/2026 |
| 0.15.0 | 72 | 11/19/2026 |
| 0.14.0 | 74 | 11/19/2026 |
| 0.13.0 | 85 | 11/18/2026 |
| 0.12.0 | 89 | 11/16/2026 |
| 0.11.1 | 83 | 11/16/2026 |
| 0.11.0 | 94 | 11/16/2026 |
| 0.10.1 | 102 | 11/4/2026 |
| 0.10.0 | 96 | 11/4/2026 |
| 0.9.3 | 105 | 11/1/2026 |
| 0.9.2 | 111 | 10/14/2026 |
| 0.9.1 | 98 | 10/14/2026 |
| 0.9.0 | 115 | 9/30/2026 |
| 0.8.0 | 133 | 9/1/2026 |
| 0.7.1 | 135 | 7/28/2026 |
| 0.7.0 | 158 | 6/30/2026 |
| 0.6.0 | 134 | 6/19/2026 |
| 0.5.0 | 145 | 6/18/2026 |
| 0.4.0 | 142 | 6/11/2026 |
| 0.3.2 | 142 | 6/8/2026 |
Loading failed