Skip to content

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 07:55
· 6 commits to main since this release

Added

  • White is now available in the shared markup palette, including the ink colour picker.

Changed

  • The selected ink colour in the palette now has a thick accent ring and a check mark, with
    a contrasting dark/light check so it stays visible on every swatch including white.
  • Document metadata and the outline now load on demand from the resident PDFium handle,
    only when the reader first opens the contents or document-information panel. Opening a
    document no longer pays for either parse, and the separate PdfPig dependency is gone.
  • PDFium's native gate is priority-aware: a visible page render is handed the gate before
    queued text extraction, link loading, or search work. A long search now yields between
    pages instead of making the visible page wait for the whole scan.
  • Scrolling and zooming now render new pages at 65% width and use medium-quality bitmap
    interpolation; once the reader pauses for 220ms, affected pages refine to the full
    target size and high-quality interpolation.
  • Retired page bitmaps go through a small generation-scoped pool instead of being
    reallocated from scratch on every render. When the source and target strides match, the
    pixel copy is one bulk block instead of one copy per row.
  • Page trims now walk a set of pages that actually hold bitmaps, thumbnails track their own
    populated set, and text trimming walks the loader's loaded pages. Zoom updates only the
    realised page views; scroll layout is computed from page points and the zoom factor.
    Long documents no longer scan every page for each turn or zoom tick.
  • Thumbnails reuse the page's decoded bitmap when it is already available and downscale it
    instead of asking PDFium to render the page a second time at thumbnail size.
  • Large-document searches use PDFium's native text search to reject non-matching pages
    before their words and character boxes are materialized. Search progress updates are
    throttled to 100ms instead of posting once per page.
  • Queued page renders are coalesced by document/page/kind, so a newer request supersedes
    an older queued render instead of making the worker execute stale pages first.

Fixed

  • Indeterminate progress bars now only animate while their operation is active. The busy
    overlay's spinner had continued repainting the hidden welcome screen after a document
    finished opening, keeping one CPU core busy until the window was minimised. Page,
    thumbnail, and search spinners are gated the same way.
  • Toolbar clicks are no longer mistaken for text-selection presses when a page is scrolled
    partly behind the toolbar. Position-based page hit-testing is now clipped to the page
    list bounds, and a selection press must originate inside a page view.
  • Search previous/next controls stay hidden until a search returns results and while a
    search is running, so the loading bar no longer overlaps them.

Full Changelog: https://github.com/RyzenWang/AirPDF/blob/v0.8.0/CHANGELOG.md