Releases: intbot/ng2-pdfjs-viewer
Releases · intbot/ng2-pdfjs-viewer
Release list
26.4.2 — Zenodo archiving + DOI
Metadata-only release. No library code changes.
Zenodo now archives each GitHub release of this repository and mints a DOI for it,
so the library can be cited formally. This release is the first one archived;
CITATION.cff is updated to match.
Full changelog: https://github.com/intbot/ng2-pdfjs-viewer/blob/master/CHANGELOG.md
26.4.1 — citation metadata + author surname correction
Metadata-only release. No library code changes.
Added
CITATION.cff— GitHub renders a "Cite this repository" button from it..zenodo.json— Zenodo reads this when archiving a release, so the library is
formally citable and each release is preserved with a DOI.
Fixed
- The author's surname was misspelled ("Goapalakrishnan") in the package metadata
and in bothLICENSEfiles. Build tools copy that string into the attribution
files they generate, so the typo had propagated into the open-source notices
published by downstream products. Corrected to "Gopalakrishnan".
Full changelog: https://github.com/intbot/ng2-pdfjs-viewer/blob/master/CHANGELOG.md
Release v26.4.0
Added
- The bundled PDF.js (
pdf.mjsandpdf.worker.mjs) now ships withcore-js
polyfills for five newer JavaScript APIs the PDF.js 6 build relies on —
Map.prototype.getOrInsertComputed,Promise.try,Promise.withResolvers,
Uint8Array.prototype.toHex, andURL.parse. Without them the viewer threw on
startup in browsers that predate those APIs; it now runs on those older engines.
The polyfills are injected into the two bundles at build time with esbuild, so
consumers pull in nothing new at runtime —core-jsstays a build-only
dependency. Thanks to @delagen for the contribution. (#379)
Release v26.3.1
Fixed
[controlVisibility]="{ print: false }"(and the standalone[showPrint]="false")
now keeps the print button hidden after the document loads. PDF.js re-asserts its
ownhiddenclass on the print button on every load via itsprintingallowed
handler, which wiped our hide and brought the icon back — most visibly with a Blob
pdfSrc, whose fast local load lands after the hide. The viewer now hides buttons
with a dedicated class PDF.js never touches, so the choice sticks. Thanks to
@leominaudo for the report. (#373)
Release v26.3.0
Performance
- Viewer state-sync transforms (zoom, scroll, spread, cursor, page mode) no longer
allocate their lookup arrays on every call — the mode lists are hoisted to module
constants. These transforms run on each scroll-mode, spread-mode, and zoom change the
viewer emits back to the component. - Remounting page overlays (
pageOverlayTpl) across already-rendered pages now reuses
the page element already in hand instead of re-finding it by selector, dropping one
DOM query per page on long documents.
Internal
- The scroll and spread mode lists now have a single source of truth, so the input
whitelist and the numeric-to-name index map can no longer drift apart.
Release v26.2.0
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. CallpdfViewerSignals(viewer, { injector })and read
signals.page(),signals.totalPages(),signals.loaded()in a template, or
buildcomputed/effecton top. Aimed at zoneless / OnPush apps. Requires
Angular 16+; the base package's>=10peer range is unchanged.- AI assistant streaming:
PdfAiAssistant.ask()andcomplete()take an optional
onTokencallback 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
onPagesInitnow 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'sloaded()andtotalPages()populate.
Release v26.1.1
Changed
- npm
keywordsrefreshed for search relevance, andhomepagenow points at the documentation
site's domain,angularpdf.com.
Documentation
- Docs site moved to
angularpdf.com(the live demo moved todemo.angularpdf.com). Added an
"Angular PDF viewer" overview page and a "Coming from ng2-pdf-viewer" migration guide, added
per-page metadata,robots.txt, andllms.txt, and updated README and docs links to the new
domains.
Release v26.1.0
Added
chromelessinput: a single switch that hides the toolbar and sidebar so the
viewer shows just the scrolling pages — an embedded/inline preview mode. It is
shorthand forshowToolbar=false+showSidebar=falseand overrides them
without mutating those bindings, so toggling it off restores them. Reach for
pageOverlayTplwhen you need per-page DOM in the host app.
Release v26.0.3
What's Changed
- README badges + refresh demo to 26.0.2 (ships the dark-mode icon fix) by @codehippie1 in #338
- Brand: B2 document icon everywhere; fix StackBlitz export deps by @codehippie1 in #339
- Docs: human-voice writing rule + guard, and rewrite intro/overview by @codehippie1 in #340
- Docs Phase 2: factual changelog, drop stray superlatives by @codehippie1 in #341
- Append the file param last on the viewer URL (#305) by @codehippie1 in #342
- Landing: sharper hero headline; fix dead canonical/og:image URL by @codehippie1 in #343
- chore(deps): bump the lib-dev-dependencies group across 1 directory with 3 updates by @dependabot[bot] in #332
- Bump postcss from 8.5.6 to 8.5.15 in /docs-website by @dependabot[bot] in #314
- Bump mdast-util-to-hast from 13.2.0 to 13.2.1 in /docs-website by @dependabot[bot] in #293
- Release 26.0.3: viewer-URL hash-fragment fix by @codehippie1 in #344
- Fix lib lockfile: resolve Angular 22.0.x peer mismatch (unblocks 26.0.3 publish) by @codehippie1 in #345
- Fix lib lockfile: restore cross-platform graph (re-fixes 26.0.3 publish) by @codehippie1 in #346
Full Changelog: v26.0.2...v26.0.3
Release v26.0.2
What's Changed
- Harden CI workflows and standardize the license label by @codehippie1 in #324
- Docs landing: theme-aware hero with light/dark toggle by @codehippie1 in #325
- Playground: respect OS theme on first load; viewers follow theme by @codehippie1 in #326
- CI: pin npm to a fixed version in the publish workflow by @codehippie1 in #327
- chore(deps): reduce dev-dependency vulnerabilities by @codehippie1 in #331
- CI: drop the npm upgrade step (Node 24 bundles npm >= 11.5.1) by @codehippie1 in #333
- Fix invisible toolbar icons when viewer theme differs from OS theme by @codehippie1 in #334
- Docs: add an Angular PDF Viewer banner to the README by @codehippie1 in #335
- Single canonical README (drop lib copy + sync workflow) by @codehippie1 in #336
- Release 26.0.2: theme/OS icon-visibility fix + brand refresh by @codehippie1 in #337
Full Changelog: v26.0.1...v26.0.2