Repository navigation
v0.10.0
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
PeachPDFdeploys 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 isPeachBrackets(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 forPeachPDF,PeachDrawing,PeachDrawing.CoreandSystem.IO.Hashingtogether.
Upgrading from 0.9.26
Platform
- .NET 8 is no longer supported. Packages ship
net10.0andnet11.0assets only. Stay on 0.9.x if you need .NET 8. - Building PeachPDF needs the .NET 11 SDK (
global.jsonpins it). Package consumers are unaffected. Thenet11.0assets are compiled with runtime-async. RUriis gone;System.Urireplaces it.RNetworkLoader.GetResourceStream(Uri),RNetworkLoader.BaseUri,RenderContext.GetResourceStream(Uri),RenderContext.BaseUri,AddFontFamilyFromUrl(..., Uri baseUri)andHostResourceLoader.LoadAsync(Uri, ...)take aSystem.Uri.Uri.AbsoluteUripercent-escapes a non-base64data:payload (a space becomes%20); readOriginalStringfor the payload as written.- The
peachpdfcommand-line tool targets .NET 11 (the Native AOT binaries are built on it). - MimeKit moves to
MimeKit.Core5.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:
1emonp,blockquote,figure(plus40pxinline),pre,ul,ol,dlandmenu(they were1.12em;prehad only a top margin), none onformandfieldset. Headingsh1toh6use0.67em,0.83em,1em,1.33em,1.67emand2.33em, andh6text is0.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 setscellpadding(including0) or a cell that setspaddingis unchanged. Addcellpadding="0"ortd, th { padding: 0 }to restore the old look. A cell that holds a table is now as wide as that table including itsborder-spacing. border-width: thin | medium | thickare 1px, 3px and 5px (they were 1.33px, 2.67px and 5.33px). A border with a style and no width ismedium.marginandpaddingno longer apply to table row groups, rows, column groups and columns, andmarginno 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: 0is no longer lowered by the body margin. Thehtmlelement 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 (MenuisCanvas).
Layout that changes
- Flex items: an item with
flex-growabove 0 andflex-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: threeGrow()columns that used to be equal thirds now depend on their content, so give them the sameWidthfor equal columns.flex: noneis0 0 auto, items are floored at their automatic minimum,flex: initialis0 1 auto, and flex factors that sum below 1 share only that fraction of the free space. A flex container withdirection: rtlis 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: 3box 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-widthandmax-widthacceptmin-content,max-contentandfit-content; they were dropped as invalid.- A percentage
line-heightis a share of the element's ownfont-size; it used to make every line 0 tall. floatcomputes tononeon 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 { } }appliesionly inside.a.- List
typeattribute:<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-counton 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 noalt) is an artifact, not aFigure, 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.
SnapBoxDecorationsToCssPixelsalso snaps text baselines to whole CSS pixels, andRasterRenderContextgainsPixelsPerPoint.
For PeachPDF users (PDF output)
New CSS
- CSS containment:
contain,content-visibility(includingauto),contain-intrinsic-sizeandoverflow-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) andlight-dark(). - Text:
text-transform: full-size-kana,white-space: break-spacesbreaks after every preserved space;text-wrap,text-wrap-mode,text-wrap-styleandwhite-space-collapse(white-spaceis now their shorthand);text-emphasis,text-decoration-insetandtext-decoration-skip; the-webkit-text-fill-color,-webkit-text-securityand-webkit-box-reflectlegacy properties;initial-letter. - Boxes:
background-clip: border-area, an SVG background with no size orviewBoxis drawn into the area the background gives it; thecorner-shapefamily, thecorner-*shorthands and the flow-relative border radii;isolation,background-blend-mode,color-schemeandprint-color-adjust. - SVG and MathML:
shape-rendering,vector-effect: non-scaling-stroke,buffered-rendering,math-style,math-depthandmath-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 ingrid-template-rows; subgrids keep their tracks on the parent's lines and inherit its line names;frrows share a definite height and amin-heightgrid 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:
clearconsiders 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 anowraprun 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-shadowwith digit-leading hex colors,path()clip and shape coordinates whenPixelsPerPointis not 1, bitmap-only fonts are no longer registered as installed faces,@font-faceformat("woff2-variations")andformat("truetype-variations")load, and an auto-height column flex container with a tallermin-heightgives 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:SvgCanvasclamps 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
PeachBracketsAPI onto aPeachDrawingbitmap 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. WinUIHtmlViewis 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-indexboxes 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.Lockreplacesobjectlocks, image consolidation compares exact bytes, and the Blazor demo moves tonet11.0. - Documentation: the docs and package READMEs were audited and updated.