PeachBrackets 0.9.24

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package PeachBrackets --version 0.9.24
                    
NuGet\Install-Package PeachBrackets -Version 0.9.24
                    
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="PeachBrackets" Version="0.9.24" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PeachBrackets" Version="0.9.24" />
                    
Directory.Packages.props
<PackageReference Include="PeachBrackets" />
                    
Project file
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 PeachBrackets --version 0.9.24
                    
#r "nuget: PeachBrackets, 0.9.24"
                    
#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 PeachBrackets@0.9.24
                    
#: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=PeachBrackets&version=0.9.24
                    
Install as a Cake Addin
#tool nuget:?package=PeachBrackets&version=0.9.24
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.9.25-preview1 58 10/27/2026
0.9.24 1,030 10/23/2026