Skip to content

Bump PeachPDF from 0.9.25 to 0.10.0 - #23

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/src/OxyKit.Render.Core/PeachPDF-0.10.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/src/OxyKit.Render.Core/PeachPDF-0.10.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Updated PeachPDF from 0.9.25 to 0.10.0.

Release notes

Sourced from PeachPDF's releases.

0.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 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.

... (truncated)

0.9.27

PeachPDF 0.9.27 Release Notes

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

This is a maintenance release of the 0.9 series. It fixes one process-ending crash and three hangs and exceptions found since 0.9.26, and nothing else. It adds no features and changes no rendering. 0.9.x is the series that supports .NET 8, 9 and 10; it does not support .NET 11, mobile operating systems, or the components that are not used inside PeachPDF. See the support policy. Everything else, including new CSS, layout fixes and .NET 11, is in 0.10.0.

Install with dotnet add package PeachPDF --version 0.9.27.

Fixes

  • A process-ending stack overflow on <noscript>. Any text at the top level of a <noscript> element (the whitespace around a tag, as on many real pages) made the parser start over on the same text without end, and the process died. <noscript> content is now parsed once, as markup, which is what a PDF with no scripting needs.
  • A hang on a paginated table with row spans. A document with a repeating thead, rowspan cells and a float that fits no page could not place a cell on any page, and the render ran for minutes instead of finishing. Stalled passes are now recognized within a few passes and the rest of the content is laid out in one piece. The same recognition now covers a flex, grid or flex-column container around such a table.
  • A crash on a bitmap-only system font. On macOS, an Apple bitmap-only font could be chosen as the last-resort font for an unknown family, and loading it for drawing threw NotSupportedException. Bitmap-only fonts are never registered as installed faces now.
  • Exceptions from <base href> and relative stylesheets. A <base href> that was malformed or relative made the render throw, and so did a relative <link> or @​import stylesheet when the host had no base address. A malformed <base href> is now ignored, a relative stylesheet with nothing to resolve it against is skipped (the document renders without it), and <link>/@​import stylesheets resolve against a <base href> like images and links already did.

Upgrading

  • Dependency change: PeachPDF and PeachBrackets reference MimeKit.Core 5.0.0 in place of MimeKit 4.18.2. Only MIME parsing and the HTML tokenizer were used, so the cryptography half of MimeKit and the System.Security.Cryptography.Pkcs dependency are no longer pulled in. Namespaces are unchanged. Code that referenced MimeKit types only through PeachPDF needs no change; code that relied on MimeKit arriving transitively needs its own reference.
  • HTML tokenizer: the 5.0 tokenizer follows the HTML specification more closely (CDATA sections only in SVG and MathML content, legacy entity rules in attribute values). The test suites pass unchanged, but a document that depended on the old, looser tokenizing may differ.

Not included

The 0.10.0 fixes for rendering, layout and new CSS stay in 0.10.x.

0.9.26

PeachPDF 0.9.26 Release Notes

Release date: November 6, 2026
Full changelog: v0.9.25...v0.9.26
Release tag: v0.9.26

This is the last full-support release of the 0.9 series. From the first 0.10.x release (November 13, 2026), 0.9.x is in maintenance: fixes for security vulnerabilities and crashes only, on desktop and server operating systems only. See the support policy.

PeachPDF 0.9.26 adds a host-view layer on top of PeachBrackets: new HtmlView controls for WinUI, Android, macOS and iOS, backed by new Skia and CoreGraphics Canvas implementations, with animations, transitions, SMIL and scroll containers that play on a screen. For PDF output it adds PdfOperation for merging and rewriting existing PDFs, @​page bleed and marks, richer tagged PDF and a US Letter default page. Both audiences get a long list of CSS, layout, HTML parsing and SVG fixes. About 185 commits since 0.9.25 are included.

Install with dotnet add package PeachPDF --version 0.9.26.

The notes are in four parts: PeachPDF users (PDF output), PeachDrawing users (the PeachDrawing.* packages, including the PDF writer), PeachBrackets and screen users (HtmlView and HtmlDocument on a screen), and shared changes that affect them all.

For PeachPDF users (PDF output)

New

  • PdfOperation merges, takes pages from, overlays, attaches to, encrypts and linearizes existing PDFs; the declarative builder can append and prepend existing PDFs. Merged documents keep links, named destinations, form fields and target-counter(..., page) correct.
  • PeachDrawing.PDF gains new APIs (a standalone package): see For PeachDrawing users below.
  • PDF annotation properties, including clickable attached-file icons.
  • @​page bleed and marks: a page that declares them is a larger PDF page, with a TrimBox and BleedBox and crop and cross marks.
  • Tagged PDF: text-only blocks are paragraphs, links carry /Contents, figures take their /Alt from aria-label and aria-labelledby, and table cells and the lang attribute are recorded. PDF/UA output is checked with veraPDF in CI.
  • image-resolution and image-orientation: an image's natural size can come from the density in the file, and EXIF orientation is applied.
  • mask-image: gradient and image mask layers on HTML boxes, through a PDF soft mask.
  • A PdfGenerateConfig with no page size is US Letter. It used to produce a blank page.

Changes that can alter a PDF

  • A closed <details> shows only its <summary>, whatever display its content has.
  • <textarea> is a form control (and an interactive PDF field), and <progress> and <meter> are drawn (ten ems by one em) instead of their fallback text.
  • pointer-events: none on a link writes no link annotation; accent-color tints checked controls and their PDF widget appearances.
  • Page and margin box borders mitre at the corners, and @​page margins in rem use the real root font size.
  • Text is its CSS size at any PixelsPerInch other than 72, and inline SVG matches the 72 rendering at other values (documents rendered at 96 may look different).
  • A document with an image-resolution other than 1dppx sizes its images from the file's density.
  • Fixed: the annotation collector throwing for a box that continues into another column.

For PeachDrawing users

The PeachDrawing.* packages are usable with no PeachPDF reference.

PeachDrawing.PDF (see PeachDrawing.PDF)

  • Existing PDFs: PdfOperation loads a PDF from a file, stream or bytes (LoadFile, LoadStream, LoadBytes, with a password where needed) and chains MergeFile/MergeStream/MergeBytes, TakePages, OverlayFile/UnderlayFile (PdfLayerConfiguration), AddAttachment (PdfFileAttachment), ExtendMetadata, Encrypt/Decrypt/RemoveRestrictions, Linearize and WithCopyMode (PdfCopyMode.Redraw or ObjectCopy), then Save or ToArray, or AppendTo a PdfComposer. PdfPageSelector.Select parses a page selector, PdfPageSource.Open takes a password, and PdfPasswordException reports a missing or wrong one.
  • Writing: PdfComposerOptions.Linearize writes a linearized (fast web view) file, PdfComposerOptions.UAConformance (PdfUAConformance.UA1 or UA2) targets PDF/UA, and PdfComposerPage.SetPrintBoxes(bleedPoints, outsidePoints) sets the TrimBox and BleedBox. PdfComposer.EmbeddedFileNames lists attachments.
  • Tagged PDF: PdfTagRecorder.CheckStructure() returns structure problems as strings; OpenContentElement, OpenGroupingElement and LinkAnnotation take PdfStructureDetails (Id, Alt) and a link contents and target; PdfBookmark.StructureTarget ties an outline entry to the tag tree.
  • Annotations: PdfAnnotationAppearance builds the appearance streams of free text, stamp, line, ink, outline (square or circle) and markup annotations and of icon annotations (PdfAnnotationIcon, including file-attachment icons). PdfAnnotationDefinition gains EmbeddedFileName, PopupOpen, PopupBounds, CreatedAt and ModifiedAt, and PdfFormFieldDefinition gains AccessibleName.
  • Fonts: PdfRenderContext.AddFont returns a ValueTask.

PeachDrawing.Skia is new: a Canvas over SkiaSharp that draws into a surface you supply (CPU or GPU), with a switchable image codec (PeachImage, Skia's, or the default Auto). Shadows, filters, backdrop filters and conic gradients paint as GPU layer effects, and these can differ from the bitmap path by a level or two at edges. See PeachDrawing.Skia.

PeachDrawing.CoreGraphics is new: a Canvas over CoreGraphics for macOS and iOS, with CoreText or PeachDrawing.Text text, Core Image effects and ImageIO or PeachImage decoding. See PeachDrawing.CoreGraphics.

... (truncated)

0.9.26-preview1

PeachPDF 0.9.26-preview1 Release Notes

Release date: November 3, 2026
Full changelog: v0.9.25-preview1...v0.9.26-preview1
Release tag: v0.9.26-preview1

This is a preview of 0.9.26. It adds three packages and a PDF operations API: PeachDrawing.Skia (a SkiaSharp Canvas) and two host views over PeachBrackets, PeachBrackets.WinUI and PeachBrackets.Android, plus PdfOperation for merging and rewriting existing PDFs. PeachBrackets itself gains a public annotation and tagging surface, hover and focus state, form control state, and an accessibility tree. It also closes a long list of CSS gaps: shape-outside, mask-image gradients, image-resolution, @​page bleed and marks, hanging-punctuation, sideways-rl/sideways-lr, the East Asian counter styles, nested column-span: all, the automatic minimum size of flex and grid items, and forced-colors painting. 155 commits are included.

Install the preview with --prerelease (or pin 0.9.26-preview1): dotnet add package PeachPDF --prerelease. The docs site is not updated for a preview.

Highlights

New packages and APIs

  • PeachDrawing.Skia is a Canvas over SkiaSharp that draws into a surface you supply (CPU or GPU), usable with no PeachPDF reference, with a switchable image codec (PeachImage or Skia's). See PeachDrawing.Skia.
  • PeachBrackets.WinUI and PeachBrackets.Android are an HtmlView control for each platform: pointer or touch input, hover and focus state, pointer-events, cursor, touch-action, inert, selection and links, form controls drawn and edited in place, and accessibility patterns (Narrator and TalkBack). See WinUI and Android.
  • PdfOperation merges, takes pages from, overlays, attaches to, encrypts and linearizes existing PDFs; the declarative builder can append and prepend existing PDFs. Merged documents keep their links, named destinations, form fields and target-counter(..., page) correct.
  • An accessibility tree (roles, names, state, table positions, focus order, live-region diffs) is built for assistive technologies, and PDF/UA output is checked with veraPDF in CI. See Accessibility.
  • A PdfGenerateConfig with no page size now defaults to US Letter.

New CSS

  • shape-outside and shape-margin: text follows a float's circle, ellipse, inset, polygon, path() or image shape (with shape-image-threshold).
  • mask-image: gradient and image mask layers apply to HTML boxes.
  • image-resolution and image-orientation: an image's intrinsic size can come from the density in the file (PeachImage 0.7.2), and EXIF orientation is applied.
  • @​page bleed and marks: a larger sheet, TrimBox and BleedBox, and crop and cross marks.
  • hanging-punctuation: first, last, allow-end and force-end.
  • writing-mode: sideways-rl and sideways-lr for HTML and SVG text.
  • East Asian longhand counter styles, such as the Chinese, Japanese and Korean numerals.
  • user-select, caret-color, accent-color, cursor and pointer-events (including links inside inline SVG), and @​media, @​supports, @​container and @​layer nested inside a style rule.
  • @​keyframes: a same-named rule is picked by cascade layer order, a string name is accepted, custom properties animate (discretely when unregistered, by syntax when registered), and stroke-dasharray items of different units mix as calc().
  • Forced colors: the page is drawn in the system palette, gradient backgrounds are dropped and inline SVG fill and stroke take CanvasText.
  • Form controls are drawn with their look for a host that shows the page, including progress bars, meters, textareas, and color, file and date/time inputs; the form-state pseudo-classes match.

Layout

  • Flex and grid apply the automatic minimum size to column flex items and fr tracks, and to items a flex line grows.
  • column-span: all works on a nested descendant of a multi-column container, and a float that does not fit below its column's content moves to the next column.
  • Positioned boxes: an absolutely positioned box among inline content sits at its static position on the line, including in a direction: rtl parent; percentages resolve against the padding box.
  • Floats: a float placed in inline flow takes its margin-top, including a negative one on a first child.
  • Replaced items: no text decoration is drawn under a replaced flex or grid item.
  • Tables, overflow clips, rowspan painting, ::first-line, vertical writing modes, percentage padding and offsets, and many fragmentation cases were fixed (see the full changelog).

SVG

  • An inline <svg> starts from the font size of its HTML parent, takes rem from the HTML root, and px-dependent geometry follows PixelsPerInch.
  • SVG animation starts from the computed value when an attribute is invalid, and initial resolves correctly for font-size, visibility, letter-spacing and word-spacing.

HTML parsing

  • The parser follows the insertion modes, formatting-element (adoption agency) and foreign-content rules of the HTML standard, and font-weight: bolder/lighter resolves once on the declaring element.

Notes for upgrading

  • Under forced colors, gradient backgrounds are not drawn and inline SVG paint is replaced with CanvasText; a url() background image is kept.
  • A float's margin-top now affects where a float in inline flow is placed, so pages that relied on it being ignored can shift.
    ... (truncated)

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: PeachPDF
  dependency-version: 0.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Nov 16, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants