PeachBrackets 0.9.26
dotnet add package PeachBrackets --version 0.9.26
NuGet\Install-Package PeachBrackets -Version 0.9.26
<PackageReference Include="PeachBrackets" Version="0.9.26" />
<PackageVersion Include="PeachBrackets" Version="0.9.26" />
<PackageReference Include="PeachBrackets" />
paket add PeachBrackets --version 0.9.26
#r "nuget: PeachBrackets, 0.9.26"
#:package PeachBrackets@0.9.26
#addin nuget:?package=PeachBrackets&version=0.9.26
#tool nuget:?package=PeachBrackets&version=0.9.26
PeachBrackets
The HTML, CSS, SVG and MathML engine behind PeachPDF, as a library of its own. It parses a document,
resolves the cascade, lays it out into pages and paints each page onto any
PeachDrawing.Core Canvas: a PDF, a bitmap, or one you implement. It
runs in-process in pure .NET, with no browser and no external tool, and it does not depend on the PDF writer.
using var document = await HtmlDocument.LoadAsync(html, renderContext, new HtmlDocumentOptions());
await document.LayoutAsync(measuringCanvas);
for (var i = 0; i < document.Pages.Count; i++)
{
await document.PaintPageAsync(i, canvasForPage);
}
The links, outline, form controls, logical structure and the words that were clipped are available alongside the pixels, so a
consumer that writes a format with those concepts can carry them over. A tree built in code (not parsed from HTML) is
supported through PeachBrackets.Building.
dotnet add package PeachBrackets
See the PeachBrackets guide for the pipeline, the options and the extension seams. To render HTML to a PDF file, use PeachPDF, which drives this package for you.
| 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. net11.0 is compatible. |
-
net10.0
- MimeKit (>= 4.18.2)
- PeachDrawing (>= 0.9.26)
- PeachDrawing.Core (>= 0.9.26)
- PeachDrawing.Text (>= 0.9.26)
- PeachImage (>= 0.7.3)
- System.Security.Cryptography.Pkcs (>= 10.0.14)
-
net11.0
- MimeKit (>= 4.18.2)
- PeachDrawing (>= 0.9.26)
- PeachDrawing.Core (>= 0.9.26)
- PeachDrawing.Text (>= 0.9.26)
- PeachImage (>= 0.7.3)
- System.Security.Cryptography.Pkcs (>= 10.0.14)
-
net8.0
- MimeKit (>= 4.18.2)
- PeachDrawing (>= 0.9.26)
- PeachDrawing.Core (>= 0.9.26)
- PeachDrawing.Text (>= 0.9.26)
- PeachImage (>= 0.7.3)
- System.IO.Pipelines (>= 10.0.14)
- System.Security.Cryptography.Pkcs (>= 10.0.14)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on PeachBrackets:
| Package | Downloads |
|---|---|
|
PeachPDF
Renders HTML and CSS to PDF in pure .NET, with no browser or external process: HTML parsing, the CSS cascade, layout, SVG, MathML and the PDF writer all run in-process. |
|
|
PeachBrackets.WinUI
A WinUI 3 control that shows an HTML document laid out by PeachBrackets: scrolling, zoom, links, text selection and copy, find, and the CSS cursor, hover and touch behaviour the document asks for. |
|
|
PeachBrackets.Android
A .NET for Android view that shows an HTML document laid out by PeachBrackets: touch scrolling, fling and pinch zoom, links, text selection and copy, and the CSS cursor, hover and touch-action behaviour the document asks for. |
|
|
PeachBrackets.Apple
A macOS (AppKit) and iOS (UIKit) view that shows an HTML document laid out by PeachBrackets: GPU-composited scrolling and zoom, mouse, trackpad, touch and pointer input, links, text selection and copy, and the CSS cursor, hover and touch-action behaviour the document asks for. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.26 | 41 | 11/6/2026 |
| 0.9.26-preview1 | 87 | 11/3/2026 |
| 0.9.25 | 1,639 | 10/31/2026 |
| 0.9.25-preview1 | 116 | 10/27/2026 |
| 0.9.24 | 4,173 | 10/23/2026 |