You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.