Skip to content

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 20:17
· 42 commits to main since this release
f3184c9

PeachPDF 0.10.0 Release Notes

Release date: November 13, 2026
Full changelog: v0.9.26...v0.10.0
Release tag: v0.10.0

This is the first 0.10 release, and it drops .NET 8. Every package now targets net10.0 and net11.0, and building from source needs the .NET 11 SDK. The 0.9.x series is now in maintenance: fixes for security vulnerabilities and crashes only, on desktop and server operating systems only. See the support policy. 0.9.x remains the series to use on .NET 8.

0.10.0 is a layout-correctness release. It adds a web-platform-tests reftest runner for PeachBrackets that gates CI, and fixes what the runner and real-world pages turned up in tables, floats, multi-column, flexbox, grid and line layout. It also adds a large set of CSS features, makes the built-in stylesheet match browsers (default margins, heading sizes, table cell padding, border width keywords), and speeds up the rasterizer and the WinUI view. About 75 commits since 0.9.26 are included.

Install with dotnet add package PeachPDF --version 0.10.0.

Deployed size. A framework-dependent publish of an app that references PeachPDF deploys 11.8 MB of DLLs on .NET 10 and 11.5 MB on .NET 11 (Release, all dependencies included, measured from the published output folder). That is PeachBrackets (4.7 MB on .NET 10, 4.4 MB on .NET 11), PeachImage (2.0 MB), MimeKit.Core (1.6 MB), PeachDrawing.Text.Data (1.4 MB), PeachDrawing.Text (0.9 MB), PeachDrawing.PDF (0.7 MB), and about 0.5 MB for PeachPDF, PeachDrawing, PeachDrawing.Core and System.IO.Hashing together.

Upgrading from 0.9.26

Platform

  • .NET 8 is no longer supported. Packages ship net10.0 and net11.0 assets only. Stay on 0.9.x if you need .NET 8.
  • Building PeachPDF needs the .NET 11 SDK (global.json pins it). Package consumers are unaffected. The net11.0 assets are compiled with runtime-async.
  • RUri is gone; System.Uri replaces it. RNetworkLoader.GetResourceStream(Uri), RNetworkLoader.BaseUri, RenderContext.GetResourceStream(Uri), RenderContext.BaseUri, AddFontFamilyFromUrl(..., Uri baseUri) and HostResourceLoader.LoadAsync(Uri, ...) take a System.Uri. Uri.AbsoluteUri percent-escapes a non-base64 data: payload (a space becomes %20); read OriginalString for the payload as written.
  • The peachpdf command-line tool targets .NET 11 (the Native AOT binaries are built on it).
  • MimeKit moves to MimeKit.Core 5.0, and NuGet dependencies are updated.

Rendering output that changes for documents with no stylesheet of their own. The built-in stylesheet now follows the HTML Standard's rendering section, as browsers do:

  • Default margins: 1em on p, blockquote, figure (plus 40px inline), pre, ul, ol, dl and menu (they were 1.12em; pre had only a top margin), none on form and fieldset. Headings h1 to h6 use 0.67em, 0.83em, 1em, 1.33em, 1.67em and 2.33em, and h6 text is 0.67em. Paragraph and list spacing is a little tighter (16px, not 17.9px, at 16px type).
  • Table cells get the browser's default padding: 1px. A table that sets cellpadding (including 0) or a cell that sets padding is unchanged. Add cellpadding="0" or td, th { padding: 0 } to restore the old look. A cell that holds a table is now as wide as that table including its border-spacing.
  • border-width: thin | medium | thick are 1px, 3px and 5px (they were 1.33px, 2.67px and 5.33px). A border with a style and no width is medium.
  • margin and padding no longer apply to table row groups, rows, column groups and columns, and margin no longer applies to cells (CSS 2.1 sections 8.3 and 8.4).
  • Absolute boxes with no positioned ancestor are placed from the page area's corner, so top: 0 is no longer lowered by the body margin. The html element contains its margins and floats.
  • A repeating background image (repeat, repeat-x, repeat-y, space) continues under a transparent or translucent border, as in a browser, instead of stopping at the padding box.
  • Control characters are drawn as the font's missing-glyph shape instead of vanishing.
  • rgb() rounds percentage components to the nearest byte (50% is 128), and the deprecated system color keywords alias the current ones (Menu is Canvas).

Layout that changes

  • Flex items: an item with flex-grow above 0 and flex-basis: auto (flex: 1 1 auto, flex: auto, flex-grow: 1) is sized from its content and takes its share of the free space on top, instead of starting from 0. The declarative builders' Grow() changes the same way: three Grow() columns that used to be equal thirds now depend on their content, so give them the same Width for equal columns. flex: none is 0 0 auto, items are floored at their automatic minimum, flex: initial is 0 1 auto, and flex factors that sum below 1 share only that fraction of the free space. A flex container with direction: rtl is mirrored.
  • A multi-column container sized to its content (a float, flex item, table cell or auto-width absolute box) is as wide as all its columns, not one. A float: left; columns: 3 box is three times as wide as before.
  • An inline-block that fills its line now wraps the word after it, instead of letting it overflow. A container that relied on the overflow needs white-space: nowrap.
  • width, min-width and max-width accept min-content, max-content and fit-content; they were dropped as invalid.
  • A percentage line-height is a share of the element's own font-size; it used to make every line 0 tall.
  • float computes to none on an absolutely or fixed positioned box.
  • :dir(), <base href>, nested selector lists: :dir(ltr) and :dir(rtl) now match; a <base href> applies to stylesheets and @import (a relative stylesheet with no base address is skipped instead of throwing); .a { & b, i { } } applies i only inside .a.
  • List type attribute: <ol type>, <ul type> and <li type> set the marker style.
  • Table cells no longer move their content down for a trailing <br/>, bottom margin or leading; a cell that splits across pages is top-aligned.
  • column-count on a vertical writing mode container now produces real columns (strips along the inline axis). A document that set it and relied on it being ignored will see its content divided.
  • PDF output: raster-fallback images (blurred shadows, filters, backdrop filters) are embedded without a PNG round trip, so a PDF that has them is not byte-identical to 0.9.26's. Every page was verified pixel-identical with PDFium and MuPDF. A decorative <img> (empty or no alt) is an artifact, not a Figure, which fixes PDF/UA-1 conformance.
  • Static form controls draw their value, placeholder, checked state, selected option and button label in a PDF without interactive forms. Extracted text now contains the control text.
  • <summary> shows a disclosure triangle, and a closed <details> can be opened in a PDF reader.
  • Win2D: a blur or shadow with unequal deviations is blurred by each axis's value, not their mean.
  • SnapBoxDecorationsToCssPixels also snaps text baselines to whole CSS pixels, and RasterRenderContext gains PixelsPerPoint.

For PeachPDF users (PDF output)

New CSS

  • CSS containment: contain, content-visibility (including auto), contain-intrinsic-size and overflow-clip-margin.
  • Math and values: the CSS math functions, env(), sibling-index()/sibling-count(), contrast-color(), calc-size() (now also applied to block-axis sizes) and light-dark().
  • Text: text-transform: full-size-kana, white-space: break-spaces breaks after every preserved space; text-wrap, text-wrap-mode, text-wrap-style and white-space-collapse (white-space is now their shorthand); text-emphasis, text-decoration-inset and text-decoration-skip; the -webkit-text-fill-color, -webkit-text-security and -webkit-box-reflect legacy properties; initial-letter.
  • Boxes: background-clip: border-area, an SVG background with no size or viewBox is drawn into the area the background gives it; the corner-shape family, the corner-* shorthands and the flow-relative border radii; isolation, background-blend-mode, color-scheme and print-color-adjust.
  • SVG and MathML: shape-rendering, vector-effect: non-scaling-stroke, buffered-rendering, math-style, math-depth and math-shift.
  • Line layout: line-box properties are computed at the declaring element, and the vertical writing mode gaps are closed.
  • Grid: repeat(auto-fit | auto-fill) works in grid-template-rows; subgrids keep their tracks on the parent's lines and inherit its line names; fr rows share a definite height and a min-height grid gives its free space to its flexible rows; a grid follows the width of the page each row lands on.

Pagination and layout fixes

  • Tables: two batches of fixes (stalls, rtl columns, min-width, legacy alignment, float avoidance); a paginated table with row spans that cannot advance no longer runs for minutes; a rowspan cell under a repeated header or footer is drawn to its last row, once.
  • Floats and multi-column: clear considers every float in its context; <br clear> is honored; text after a float that continues into the next column, beside a late-starting float or after a nowrap run is no longer lost or drawn off the page; fixed-height fill, scroll containers and abs-pos inline text in columns.
  • Inline-blocks: a declared-width inline-block wraps as a unit against the line it sits on, and a top- or bottom-aligned one sizes its line and carries its content.
  • Footnotes: transformed and translucent boxes inside a footnote body are painted.
  • Tagged PDF: painted box backgrounds and shadows are artifacts, and decorative images are artifacts (see above).
  • PDF/A-1: flattening no longer misses a repeated translucent fill.
  • Forms: <input> and <select> draw their state (see above).
  • Fixes: box-shadow with digit-leading hex colors, path() clip and shape coordinates when PixelsPerPoint is not 1, bitmap-only fonts are no longer registered as installed faces, @font-face format("woff2-variations") and format("truetype-variations") load, and an auto-height column flex container with a taller min-height gives the room to its growing items.

For PeachDrawing users

  • PeachDrawing.PDF: the writer is reproducible (same input, same bytes), keys are reflection-free (friendlier to trimming and AOT), and internals are cleaned up.
  • PeachDrawing.Svg: SvgCanvas clamps rectangle clips to the surface.
  • PeachDrawing (raster): faster rasterizer and text lookups from a measured performance pass; RasterRenderContext.PixelsPerPoint.
  • PeachDrawing.Win2D: blur and shadow use each axis's deviation (see above).

For PeachBrackets and screen users

  • A web-platform-tests runner runs reftests of 16 CSS modules through the public PeachBrackets API onto a PeachDrawing bitmap and gates CI on per-module pass-count floors that only rise. It found and fixed a long list of engine bugs in this release.
  • WinUI HtmlView is faster: lower scroll, memory, hover and first-load cost on a long news page. The demo navigates by address bar, and real-site rendering defects (fonts, nesting, flex, <picture> sources, Win2D downscale) are fixed.
  • Animations: boxes under clipping or compositing ancestors, past overlap, fixed or sticky boxes and negative z-index boxes animate apart from the page.
  • Flex and grid items paint in one pass in order-modified document order, so extracted text reads in item order.
  • Performance: float scans skip float-free subtrees, and per-word and per-box allocation is trimmed.
  • Internals: System.Threading.Lock replaces object locks, image consolidation compares exact bytes, and the Blazor demo moves to net11.0.
  • Documentation: the docs and package READMEs were audited and updated.