Skip to content

Releases

v1.0.0-rc.1

v1.0.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 01:06
dbf38e3

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

Diagnostic codes: the catalog and its stability policy say which codes this release can report and how codes may change between releases.

1.0.0-rc.1 (2026-11-25)

Changes since v0.1.0-preview.10. Full diff: v0.1.0-preview.10...v1.0.0-rc.1.

Breaking changes

  • api: renamed WebGLRenderer to WebGLBackend, CoreGraphicsRenderer
  • Public API removed or changed in Broadside, Broadside.Layout, Broadside.Rendering, Broadside.Rendering.CoreGraphics, Broadside.Rendering.Direct2D, Broadside.Rendering.WebGL, Broadside.Viewer, Broadside.Viewer.Avalonia, Broadside.Viewer.Blazor, Broadside.Viewer.Maui, Broadside.Viewer.Uno, Broadside.Viewer.WinUI, Broadside.Viewer.Wpf: see Public API below.

Features

  • api: review and freeze the v1 public API (#262)
  • images: extract painted images from pages and save PdfImage as PNG or JPEG (#607) (#608)
  • release: generated release notes, changelog, PR title and DCO checks (#264)

Fixes

  • diagnostics: make the core assembly build reproducibly (#265)
  • fuzz: fix the release-candidate fuzz findings that are library or harness bugs (#620)
  • fuzz: fix the follow-up release-candidate fuzz findings (#620)
  • release: list a change landed on two branches once; exempt CHANGELOG.md from the ADR check (#264)
  • security: close the unsafe and pooled buffer review findings (#274)
  • viewer: pack a padded caller-memory tile before WPF reads it (#274)
  • viewer: release the window's scaling event and yield search on the slice budget (#599, #600)
  • writing: refuse an incremental update of a file with a damaged Encrypt entry (#620)
  • writing: refuse an incremental update of a rebuilt cross-reference (#620)

Performance

  • functions: Type 4 programs as registers; no allocation for repeated diagnostics (#612)
  • rendering: remember tint transform results per thread (#602)
  • rendering: paint a lone tile from the cell and composite tiled runs a row at a time (#603) (#610)
  • rendering: faster patch meshes and CMYK group conversion (#611)
  • rendering: blend a run of equal pixel pairs once (#602) (#613)

Refactoring

  • layout: ship the document builder as stable API

Documentation

  • conformance: record the refused incremental update of a damaged Encrypt entry (#620)
  • diagnostics: publish the diagnostic-code catalog with its stability policy (#263)
  • guides: writing, editing, extraction, accessibility, signatures and viewers guides (#269, #270)
  • known-limitations: slow hostile inputs (#620)
  • packaging: note what the reproducible-build check caught (#265)
  • packaging: the viewer packages ship in v1.0 (#265)
  • release: 1.0 release-candidate notes, gate checklist and GA criteria (#276)
  • release: gate checklist wording passes check-adr-refs
  • release: link the RC gate runs in the v1.0.0-rc.1 checklist
  • release: best-effort support, no soak period or support windows
  • rendering: use the renamed native backends in the rendering guide (#262)
  • security: threat model, resource limit inventory and 1.x security policy (#273)
  • security: drop committed fix windows from the security policy (#273)
  • security: fuzzing coverage report and full run, with seeds for low-coverage targets (#274)
  • site: guide structure, compiled samples, getting started and reading (#267)
  • site: require the performance and untrusted-files routes in check-docs (#267)
  • site: rendering guide for every backend (#268)
  • site: editing guide uses WriteAppearances after the #262 rename

Tests

  • api: API review checklist and automated API guards (#261)
  • api: keep the guard's rule key clear of the diagnostic-name pattern (#261)
  • fuzz: map every parser to a target, add coverage report tooling (#274)
  • fuzz: seed the image readers from the test suites and judge each target on the parsers it owns (#274)
  • fuzz: small limits for whole-file targets and two looser oracles (#620)
  • fuzz: compare cff-subset points relative to their terms (#620)
  • security: name the page tree depth constant by the local naming rule (#273)
  • viewer-blazor: wait for ink on the remote first page instead of reading it once

Benchmarks

  • compare Broadside with PDFium and pdf.js for v1 (#275)
  • gate: record the size probes after the v1 merges
  • gate: record the document builder allocations after the #620 layout-table fix
  • gate: record allocations after the rebuilt cross-reference flag

Build and CI

  • verify trimming, Native AOT and WebAssembly on every target (#272)
  • packaging: check packages, reproducibility and SBOM in release (#265)
  • packaging: mask asset checkout times and except the WinUI viewer in the reproducibility check (#265)
  • packaging: record the v1 API breaks against the preview baseline (#262)
  • pr-checks: drop the DCO check; viewers ship in v1
  • viewer-maui: drop the cross-target package validation suppressions the pack does not need
  • viewer-maui: allow unused package validation suppressions

Public API

Entries added to and removed from each package's PublicAPI.Shipped.txt and PublicAPI.Unshipped.txt (diff).

Package Added Removed
Broadside 65 13
Broadside.Layout 2 1
Broadside.Rendering 23 1
Broadside.Rendering.CoreGraphics 12 12
Broadside.Rendering.Direct2D 19 19
Broadside.Rendering.WebGL 20 20
Broadside.Viewer 12 12
Broadside.Viewer.Avalonia 1 1
Broadside.Viewer.Blazor 3 3
Broadside.Viewer.Maui 4 4
Broadside.Viewer.Uno 1 1
Broadside.Viewer.WinUI 1 1
Broadside.Viewer.Wpf 1 1
Broadside: 65 added, 13 removed
- Broadside.Forms.PdfChoiceField.GenerateAppearances() -> void
- Broadside.Forms.PdfTextField.GenerateAppearances() -> void
- Broadside.Forms.PdfToggleButtonField.GenerateAppearances() -> void
- Broadside.PdfDocument.AddEmbeddedFile(string! fileName, System.ReadOnlySpan<byte> contents, Broadside.PdfEmbeddedFileOptions? options = null) -> Broadside.PdfEmbeddedFileEntry!
- Broadside.PdfDocument.EmbedFont(System.ReadOnlyMemory<byte> program, int faceIndex = 0) -> Broadside.Fonts.PdfCanvasFont!
- Broadside.PdfDocument.EmbedTrueTypeFont(System.ReadOnlyMemory<byte> program, int faceIndex = 0) -> Broadside.Fonts.PdfCanvasFont!
- Broadside.PdfDocument.GetColorConverter(Broadside.Graphics.PdfColorSpace! source, Broadside.Graphics.ColorConversion co...
Read more

v0.1.0-preview.9

v0.1.0-preview.9 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 14:40
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

v0.1.0-preview.10

v0.1.0-preview.10 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 16:14
dc00d8a

Highlights

  • A new README. It is rewritten in plain language: what Broadside does, where it runs, how to install and use it, the viewer controls, and what's coming before and after 1.0.

  • Faster CI. Pull requests now build and test only what their change affects. The slowest tests are trimmed, and the NuGet cache works again. Measured on real pull requests:

    • A change to the core library: about 15 minutes instead of 20.
    • A viewer-only change: about 13 minutes instead of 21.
    • A docs-only change: under a minute.

    Pushes to main, release pull requests and a new nightly run still build and test everything.

Library changes

None. The packages are the same code as 0.1.0-preview.9, published under the new version.


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

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

v0.1.0-preview.8

v0.1.0-preview.8 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Nov 14:35
6bba10b

Highlights

  • Four new viewer shells (#222–#225). WPF, WinUI 3, Avalonia and Uno Platform (desktop and WebAssembly) controls on the shared viewer core, next to Blazor and MAUI.
  • Viewer features (#215, #216, #218, #219). Search with background indexing, outline and thumbnails, form filling, and smart dark mode. The MAUI control and sample reach parity with the Blazor demo (#358).
  • Fluent document builder, experimental (#397). PdfDocument.Create(doc => ...) with sections, headers and footers, tables, links, a table of contents, form fields, PDF/UA and PDF/A profiles and AppendPages. Marked [Experimental("BROADSIDE0001")].
  • Smoother browser viewer (#352, #365). Long decode, conversion, paint and display-list steps are sliced so the single-runtime browser viewer stays responsive.
  • Faster rendering. Software stroking is 19–33% faster (#335), a glyph cache speeds up text (#370), the remaining compositing kernels are vectorized (#473), and graphics-state copies are cheaper (#257).
  • Smaller packages. The Direct2D backend goes from 1.65 MB to 205 KB (#360); Broadside.dll is 5.5% smaller, with Native AOT size probes gated in CI (#361).
  • Less memory per document (#337). Per-document caches are created on first use; opening a document allocates 8.7 KB instead of 14.4 KB.

New API

  • Viewer controls: Broadside.Viewer.Wpf, Broadside.Viewer.WinUI, Broadside.Viewer.Avalonia, Broadside.Viewer.Uno.
  • RenderOptions.WithGlyphPositioning (exact by default, quantized opt-in).
  • PdfDocument.Create(...) builder (experimental), PdfColor.FromHex, PdfDocument.DefaultSaveOptions.

Fixes

  • Predefined CMaps and UCS2 tables are parsed once per engine (#256).
  • Pages are recovered when the catalog has no usable page tree (#258).
  • JPEG 2000 fragment tables are reassembled; external fragment references are refused with a diagnostic (#259).
  • Color-space views and decode caches see removals behind indirect references (#305).
  • Linearized saves of MAC-protected documents write a valid ISO/TS 32004 MAC (#311).
  • Type 2 charstring arithmetic that overflows to an infinite point is dropped with a diagnostic (#536).
  • Two benchmark regressions found by the gate are fixed: Type 3 resolve on processors without AVX-512, and per-call font program lookup.

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

  • Sweep 7B: hardening, viewer shells and features, size and performance, document builder by @michaelstonis in #537
  • Broadside v0.1.0-preview.8: new viewer shells, document builder, faster and smaller by @michaelstonis in #538

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

v0.1.0-preview.7

v0.1.0-preview.7 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Nov 09:08
e1997a3

Highlights

  • Bit-identical rendering on every platform (#233). The software rasterizer uses a managed deterministic math library (trig, exp, log, pow, cbrt), so the same page renders to the same bytes on Windows, Linux, macOS, iOS and Android. A CI workflow checks render fingerprints across platforms.
  • Public, typed diagnostic catalog (#242–#248). Every diagnostic now carries a DiagnosticCode from a public catalog grouped by area (FileStructureDiagnostics, FilterDiagnostics, FontDiagnostics, ...), with severity and clause. Extension points report typed codes, and third parties can define owner-prefixed codes with DiagnosticCode.Create.
  • Unencrypted wrapper documents (#234, #235). Read the encrypted payload of a PDF 2.0 unencrypted wrapper, and write wrappers around an encrypted payload.
  • Bounded memory for multi-gigabyte files (#237). Cross-reference entries are stored compactly and large streams are copied in windows on save.
  • Every file-structure repair is recorded (#238). The remaining silent repairs now report diagnostics; table entries beyond /Size are kept in lenient mode and rejected in strict mode.
  • Order 3 sampled functions (#236) interpolate with a cubic spline.
  • API shaping before the freeze (#249–#254). Async entry points mirror their synchronous overloads, associated files are read through their owners, annotation subtypes own their entries, the image API is tidied and the DCT decoder is split by responsibility.
  • Conformance map closed for v1 (#240, #241). Clause citations in XML docs are checked against the map, every open row links a tracking issue, and known limitations are listed in docs/known-limitations.md.

New API

  • DiagnosticCode, DiagnosticArea, DiagnosticCatalog, Diagnostic.Kind, and one *Diagnostics class per area; typed DiagnosticSink overloads.
  • PdfEncryptedPayload, PdfUnencryptedWrapperOptions, CreateUnencryptedWrapper.
  • AssociatedFiles on the document, pages, annotations and other owners.
  • Async Open/Save overloads matching every synchronous one; path saves write a temporary file and move it into place.
  • ImageGeometry, PdfSoftMaskInData, AdobeColorTransform, IsImageMask, MaxDecodedLength.

Breaking changes

  • Extension-point contexts (FilterContext, FontProgramContext, SecurityHandlerContext, CMapContext) take a DiagnosticCode instead of a string.
  • ReadAssociatedFiles is replaced by the AssociatedFiles properties.
  • Subtype-specific readers on PdfAnnotation moved to the annotation subtypes.
  • Image geometry moved to ImageGeometry; WithMaxDecodedStreamLength is now WithMaxDecodedLength.

Fixes

  • Recorded diagnostics for xref entries beyond /Size, comments in xref sections, malformed xref lines and a damaged last startxref (#238).
  • Every Use*/With* option and every diagnostic reaches the hosted engine (#239).
  • The Android viewer smoke test reports the log when the app exits early.

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

  • Phase 7 sweep: API shaping and coverage before the freeze (#233-#254) by @michaelstonis in #534
  • Broadside v0.1.0-preview.7: bit-identical rendering, typed diagnostic catalog, API shaping for v1 by @michaelstonis in #535

Full Changelog: v0.1.0-preview.6...v0.1.0-preview.7

v0.1.0-preview.6

v0.1.0-preview.6 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 13 Nov 15:08
e2eafb4

Highlights

  • Platform JPEG decoders (#374–#377). JPEG images can decode with SkiaSharp's SKCodec, ImageIO (Apple), BitmapFactory (Android) or WIC (Windows), behind the platform image decoder seam, scaled to the size they are drawn. The managed decoder stays the default where it is faster or must be bit-exact.
  • Vectorized image and color kernels (#470–#477). Vector128 kernels with scalar fallbacks for the 8 × 8 inverse DCT, YCbCr/YCCK conversion, the JPEG 2000 wavelet and component transforms, BGRA packing and premultiplication, the box filter, group compositing rows and CMYK characterization. Every kernel is bit-identical to its scalar path, and each is either faster in the browser builds or kept off there.
  • Faster JPEG 2000 (#255, #503, #505). Tier-1 decoding at about 41 ns per sample, fused rounding and level shift, and code-blocks decoded in parallel on native builds. pdfjs issue5567 page renders in Native AOT went from 227 ms to 49 ms.
  • Reduced-resolution decode in more cases (#507, #513). JPEG 2000 images without a /ColorSpace, and JPEG 2000 and JPEG soft masks, now decode at the resolution they are drawn; an image and its soft mask always reduce together. Pages with large masks open 57–77% faster zoomed out.
  • Faster image painting (#509, #511, #517). Box-filter footprints are kept across rows, averaged a run at a time, and composited a row at a time; enlarged images paint a run at a time. Painting a reduced image is 30–60% faster on JIT, Native AOT and browser AOT, and up to 9× faster in the browser interpreter for enlarged images. Output is byte-identical.
  • Sample documents (#363, #451). Representative sample documents covering text, forms, color, scans, encryption, signatures and damaged files, wired into the demos, benchmarks and browser tests.
  • Live demo: https://michaelstonis.github.io/Broadside/demo/

New API

  • SkiaImageDecoder, ImageIODecoder, AndroidImageDecoder, WicImageDecoder, with UseSkiaImageDecoder, UseAndroidImageDecoder and UseWicImageDecoder on PdfOptions.
  • PrefetchImagesAsync on AndroidCanvasBackend, CoreGraphicsRenderer and Direct2DRenderer.
  • ImageRows.PackBgra / PackRgba, YCbCrConversion.ToRgb.
  • PlatformImageRequest.ChromaHorizontalSubsampling / ChromaVerticalSubsampling, ImageHeader.IccProfile.

Fixes

  • Every backend paints an image unmasked when its soft mask can't be decoded at draw time (#515).
  • One shared default filter registry, so allocations no longer vary run to run (#498).
  • One platform decode shared across concurrent prefetches (#484).
  • Security: read an indirect KDFSalt as stored (#478); reload objects the encryption dictionary reaches once decryption is installed (#398).
  • Writing: cross-reference streams always carry /Type /XRef (#466); a source trailer's section keys are never repeated (#445); new objects are numbered correctly in a file that holds object 2147483647 (#387).
  • A reduced JPX decode stays within the header's MaxReduction (#424).
  • Blazor PdfViewer has an intrinsic height without host CSS (#393).
  • Remote files resolve named destinations off the UI thread (#420).
  • WebGL falls back to a document canvas when OffscreenCanvas has no WebGL 2 (#444).

All known issues listed for preview.5 (#420, #424, #387, #398, #393, #434, #445) are fixed.

What's Changed

Read more

v0.1.0-preview.5

v0.1.0-preview.5 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 15:06
4221868

Highlights

  • Pooled tile renderers share converted images (#432). Each image is converted once per document and shared by every pooled Skia or software tile renderer, within the image memory budget; image resampling works in bounded bands. On the iOS simulator, a full-width photo page peaks at 0.82 GB instead of 3.6–3.7 GB, and its tiles finish in 5.6 s instead of 11.5–14.8 s.
  • Scaled image decode in every native backend (#428 parts 3–5). CoreGraphics, Android Canvas and Direct2D now decode images at the resolution they are drawn, like Skia and WebGL. Off by default for page renders; the viewer turns it on. A cover photo drawn 150 px wide renders in 36 ms instead of 221 ms with CoreGraphics on macOS.
  • WebGL on Linux WebKit (#444). When OffscreenCanvas has no WebGL 2 context, the WebGL renderer falls back to a document canvas instead of switching itself off.
  • Live demo: https://michaelstonis.github.io/Broadside/demo/

New API

SkiaBackend.ShareConvertedImages, SoftwareRasterizer.ShareConvertedImages, CoreGraphicsRenderer.ScaledImageDecode / ImageSamplesPerPixel, AndroidCanvasBackend.ScaledImageDecode / ImageSamplesPerPixel, Direct2DRenderer.ScaledImageDecode / ImageSamplesPerPixel.

Known issues

#420, #424, #387, #398, #393, #434, #445. Fixes for all of them are in progress on the integration branch.

What's Changed

  • perf(viewer): pooled tile backends share converted images (#432) by @michaelstonis in #437
  • feat(coregraphics): decode images at the resolution they are drawn (#428 part 3) by @michaelstonis in #439
  • feat(direct2d): decode images at the resolution they are drawn (#428 part 5) by @michaelstonis in #438
  • feat(android): decode images at the resolution they are drawn (#428 part 4) by @michaelstonis in #440
  • fix(webgl): fall back to a document canvas when OffscreenCanvas has no WebGL 2 by @michaelstonis in #444
  • Broadside v0.1.0-preview.5: shared image conversions, scaled decode in CoreGraphics, Android and Direct2D by @michaelstonis in #441

Full Changelog: v0.1.0-preview.4...v0.1.0-preview.5

v0.1.0-preview.4

v0.1.0-preview.4 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Oct 22:19
b723d81

Highlights

  • Platform image decoders (#372, #373). New IPlatformImageDecoder seam with an async prefetch and a managed fallback that records a diagnostic. In the Blazor viewer, Chrome/Edge decode JPEG with WebCodecs, bit-identical to the managed decoder. Safari and Firefox use their native decoders only where a startup calibration decode is exact.
  • Scaled decode in Skia and WebGL (#428 parts 1–2). The MAUI viewer and the WebGL renderer draw images at the resolution needed. The browser render worker follows the page's threshold.
  • Remote linearized files (#416, #417). Remote files load their links, outline and tagged structure without the whole file. A resize keeps a page jump going.
  • Live demo: https://michaelstonis.github.io/Broadside/demo/ (try ?renderer=webgl, ?k=1, ?scaled=0, ?worker=0).

New API

IPlatformImageDecoder and related types, PdfOptions.UsePlatformImageDecoder and its switches, PdfDocument.ReadAsync<T>, WebGLRenderer.ScaledImageDecode / ImageSamplesPerPixel, WebGLTileBackend(bool, double), SkiaTileBackend(bool, double), RenderWorker.Open(..., ViewerOptions), UseBrowserImageDecoder().

Known issues

#420, #424, #432, #387, #398, #393. CoreGraphics, Android and Direct2D still decode images at full size (#428).

What's Changed

Full Changelog: v0.1.0-preview.3...v0.1.0-preview.4

v0.1.0-preview.3

v0.1.0-preview.3 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 25 Oct 12:14
8c89458

Highlights

  • Images are decoded at the size they are drawn in viewers (#362): JPEG at 1/2, 1/4, 1/8, JPEG 2000 resolution levels, Flate/raw row reduction. A large-photo page at phone size went from 212 ms / 33.6 MB to 80 ms / 8.4 MB. The threshold is configurable; the default is 2 source pixels per device pixel.
  • Remote linearized files load in the browser without waiting for the end of the file (#410).
  • Android emulator CI is reliable (#344).

API change

  • DisplayImageSamples.DecodeMap is replaced by DisplayImage.DecodeMapFor(samples).

Known issues

  • #387, #398, #393. Native renderers (Skia, CoreGraphics, Direct2D, Android, WebGL) still draw images at full resolution (in progress).

What's Changed

Full Changelog: v0.1.0-preview.2...v0.1.0-preview.3

v0.1.0-preview.2

v0.1.0-preview.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Oct 17:29
051582f

Highlights

  • Saving damaged files stays bounded; out-of-range object numbers are renumbered with a diagnostic, and a refused save leaves the document unchanged (#371).
  • Saves that keep a file's encryption write a clean encryption dictionary (#390).
  • Broadside.Viewer.Maui now includes the Windows target (#381).
  • WebGL thumbnails render correctly (#380).

Known issues

  • #387: adding objects to a file that holds object number 2147483647 throws.
  • #398: objects resolved through the encryption dictionary are cached before decryption.
  • #393: the Blazor viewer needs an explicit height.
  • #362/#365: large images decode at full resolution (in progress).

What's Changed

Full Changelog: v0.1.0-preview.1...v0.1.0-preview.2