npm ng2-pdfjs-viewer 26.2.0
Release v26.2.0

latest release: 26.3.0
3 hours ago

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.

Don't miss a new ng2-pdfjs-viewer release

NewReleases is sending notifications on new releases.