Skip to content

Release v26.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Jun 17:32
· 4 commits to master since this release
d9d4155

Added

  • ng2-pdfjs-viewer/signals: a new entry point that projects viewer state — current
    page, zoom, total pages, search matches, read-aloud progress, annotation-editor
    state, sidebar, metadata, form data, and the view-mode strings — as read-only
    Angular signals. Call pdfViewerSignals(viewer, { injector }) and read
    signals.page(), signals.totalPages(), signals.loaded() in a template, or
    build computed/effect on top. Aimed at zoneless / OnPush apps. Requires
    Angular 16+; the base package's >=10 peer range is unchanged.
  • AI assistant streaming: PdfAiAssistant.ask() and complete() take an optional
    onToken callback and stream the answer token-by-token over Server-Sent Events,
    falling back to a single response when the endpoint doesn't stream. The built-in
    chat panel renders the answer as it arrives.

Fixed

  • onPagesInit now fires once the document's pages initialize - it carries the
    page count and was declared but never emitted. This is what makes the new
    signals entry point's loaded() and totalPages() populate.