Skip to content

v0.1.0-preview.9

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 14:40
· 126 commits to main since this release
7ac323f

Highlights

  • Much smaller trimmed apps.
    • XMP is read and written without System.Xml (#545): Native AOT apps that save, fill forms or sign are 34–38% smaller (about 4 MB each).
    • Image codecs are chosen through the options (#544): PdfOptions.CreateWithoutImageCodecs() makes an app that only opens documents 18% smaller.
  • Faster text rendering by default (#548). The software rasterizer's glyph cache uses quantized glyph positioning by default (each glyph at most 1/8 px off, kerning unchanged): whole pages render about 2.9x faster, and the cache uses 4–8x less memory. RenderOptions.WithGlyphPositioning(Exact) keeps the old behavior.
  • Caches survive edits to other documents (#578). Editing one document no longer invalidates the cached display lists and images of every other open document.
  • Smoother browser viewer. Text selection, reading order, the accessibility tree (#546) and Flate images with soft masks (#566) load in small steps. The hot-AOT build is 11.1 MiB instead of 17.6 MiB (#547), and its first view appears about twice as fast.
  • Viewer shells.
    • The WPF, WinUI 3 and Avalonia viewers fill forms through the shared FormFilling core (#543), with multi-select list boxes (#560).
    • A drag selects up to the release point in every viewer (#542, #558).
  • Builder tables lay out in linear time (#541). 10,000 rows take about 0.6 s instead of minutes.

New API

  • PdfOptions.CreateWithoutImageCodecs(), PdfOptions.UseImageCodecs(), FilterDiagnostics.FilterCodecNotRegistered.
  • PdfPage.BeginTextExtraction, PdfPage.BeginLayoutExtraction (TextExtraction, LayoutExtraction), which build in slices.
  • PdfView.Forms on the WPF, WinUI 3 and Avalonia viewers.

Behavior changes

  • Quantized glyph positioning is the software rasterizer's default (#548). Golden images with text were re-accepted.
  • Escape abandons a field edit in the Avalonia viewer instead of committing it (#543).
  • An XMP property in the xmlns namespace is left out when saving, instead of failing the save (#545).

Fixes

  • A second render of the same display list could differ: a glyph cache hit skipped strokes that reach into the bitmap (#572).
  • A damaged linearization hint table could make a remote-style read allocate 11–14 GB (#568).
  • A CID-keyed CFF font whose first Font DICT matrix cannot be inverted drew other glyphs in that matrix (#582).
  • Sliced text extraction could throw while a page was being reloaded (#584).
  • Benchmark gate: it records each runner's CPU and times a pass with AVX-512 off (#539); identical code no longer reads as a regression (#554).
  • Flaky tests fixed: the tile scheduler frame clock (#540), the WinUI sample drag test (#563), and the dark-mode cache tests (#570).

Known limitations: docs/known-limitations.md lists what this release does not do yet, each item with the issue that tracks it.

Known limitations: docs/known-limitations.md lists what this release does not do yet, each item with the issue that tracks it.

What's Changed

  • feat(rendering): make quantized glyph positioning the software rasterizer's default by @michaelstonis in #550
  • test(viewer): drive tile scheduler frames with a work-counting clock by @michaelstonis in #553
  • ci(bench): record the runner's CPU and time without AVX-512 (#539) by @michaelstonis in #552
  • fix(viewer): extend the text selection to the release point in the Avalonia, WPF and MAUI viewers (#542) by @michaelstonis in #555
  • feat(viewer): WPF, WinUI 3 and Avalonia edit form fields through FormFilling (#543) by @michaelstonis in #556
  • perf(layout): lay out builder tables in time linear in their rows (#541) by @michaelstonis in #557
  • test(viewer-winui): wait for the Home scroll to end before reading the line to drag across (#563) by @michaelstonis in #565
  • perf(viewer-blazor): fit the --hot-aot demo build under 16 MB with a recorded AOT profile (#547) by @michaelstonis in #569
  • fix(cos): bound linearization hint object counts by their byte ranges (#568) by @michaelstonis in #573
  • fix(viewer): toggle multi-select list box options with the mouse (#560) by @michaelstonis in #567
  • perf(rendering): decode build-time Flate images in slices (#566) by @michaelstonis in #579
  • fix(bench): randomize benchmark placement and rerun in several processes (#554) by @michaelstonis in #575
  • perf(caching): count changes per document so other documents' caches stay current (#578) by @michaelstonis in #580
  • style: fix format errors in the Blazor sample and browser tests by @michaelstonis in #571
  • test(viewer): run the dark mode cache tests outside the parallel tests (#570) by @michaelstonis in #577
  • fix(rendering): cull glyph fills and strokes separately so a cache hit keeps the stroke by @michaelstonis in #576
  • fix(viewer-blazor): extend the text selection to the release point (#558) by @michaelstonis in #559
  • feat(document): read and write XMP without System.Xml (#545) by @michaelstonis in #562
  • perf(viewer): slice text selection and accessibility page loads (#546) by @michaelstonis in #564
  • fix(fonts): draw each CID glyph through its own Font DICT matrix when the first is singular (#582) by @michaelstonis in #583
  • feat(filters): choose the image codecs through the options (#544) by @michaelstonis in #561
  • fix(content): keep a sliced run's interpreter out of every thread's cache while it runs by @michaelstonis in #585
  • Broadside v0.1.0-preview.9: smaller trimmed apps, faster text rendering, smoother browser viewer by @michaelstonis in #586

Full Changelog: v0.1.0-preview.8...v0.1.0-preview.9