ng2-pdfjs-viewer 26.0.3 → 26.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -11
- package/fesm2022/ng2-pdfjs-viewer.mjs +16 -3
- package/package.json +11 -8
- package/types/ng2-pdfjs-viewer.d.ts +2 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
[](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/LICENSE)
|
|
18
18
|
[](https://github.com/intbot/ng2-pdfjs-viewer)
|
|
19
19
|
|
|
20
|
-
[**Live demo**](https://
|
|
20
|
+
[**Live demo**](https://demo.angularpdf.com/) · [**Documentation**](https://angularpdf.com/) · [**API reference**](https://angularpdf.com/docs/api/component-inputs) · [**Changelog**](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/CHANGELOG.md)
|
|
21
21
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
@@ -52,11 +52,11 @@ That's the whole integration. [Wire up the assets](#-quick-start) and you have a
|
|
|
52
52
|
| 🤖 **AI assistant (BYO)** | Point it at any OpenAI-compatible endpoint (OpenAI, Azure, Ollama, vLLM…). Answers cite pages and click through. **The library never calls an AI service on its own.** |
|
|
53
53
|
| 🔊 **Read aloud** | Browser speech synthesis reads sentence by sentence, highlighting the spoken text and reporting progress. |
|
|
54
54
|
| 🗂️ **Organize pages** | Reorder, delete, cut/copy/paste, extract, and merge pages in the viewer's "Manage pages" panel. |
|
|
55
|
-
| 🎨 **Make it yours** | CSS-variable theming, true dark-mode page rendering, and your own Angular templates for the toolbar, sidebar, and per-page overlays. |
|
|
55
|
+
| 🎨 **Make it yours** | CSS-variable theming, true dark-mode page rendering, and your own Angular templates for the toolbar, sidebar, and per-page overlays — or go `chromeless` to hide the chrome for an embedded, pages-only view. |
|
|
56
56
|
| 🛡️ **Protect content** | Block print/download, disable selection, and stamp watermarks (honest client-side deterrence — not DRM). |
|
|
57
57
|
| ♿ **Accessible** | Screen-reader friendly, tagged-PDF aware, keyboard navigable — with a [WCAG / EAA guide](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/ACCESSIBILITY.md). |
|
|
58
58
|
|
|
59
|
-
→ Explore every feature with live code on the **[documentation site](https://
|
|
59
|
+
→ Explore every feature with live code on the **[documentation site](https://angularpdf.com/)** and **[demo](https://demo.angularpdf.com/)**.
|
|
60
60
|
|
|
61
61
|
## 🚀 Quick start
|
|
62
62
|
|
|
@@ -95,13 +95,13 @@ export class AppModule {}
|
|
|
95
95
|
|
|
96
96
|
> **Production note:** PDF.js 6 ships ES modules (`.mjs`), localization (`.ftl`), and WebAssembly
|
|
97
97
|
> (`.wasm`) assets. Make sure your web server returns the correct MIME types for them — see the
|
|
98
|
-
> [deployment guide](https://
|
|
98
|
+
> [deployment guide](https://angularpdf.com/docs/getting-started) for the
|
|
99
99
|
> nginx/IIS snippets.
|
|
100
100
|
|
|
101
101
|
## 🧩 What you can build
|
|
102
102
|
|
|
103
103
|
A few of the things the component makes one-liners. Full, runnable versions live in the
|
|
104
|
-
[feature guides](https://
|
|
104
|
+
[feature guides](https://angularpdf.com/docs/features/overview).
|
|
105
105
|
|
|
106
106
|
**Annotate, sign, and save the result**
|
|
107
107
|
|
|
@@ -139,21 +139,33 @@ ai = { endpoint: "https://api.openai.com/v1/chat/completions", apiKey: "…", mo
|
|
|
139
139
|
</ng-template>
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
+
**Embed just the pages (chromeless)**
|
|
143
|
+
|
|
144
|
+
```html
|
|
145
|
+
<ng2-pdfjs-viewer pdfSrc="assets/doc.pdf" [chromeless]="true"></ng2-pdfjs-viewer>
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
One switch hides the toolbar and sidebar so the iframe shows only the scrolling
|
|
149
|
+
pages — handy for inline previews. It's shorthand for `[showToolbar]="false"` +
|
|
150
|
+
`[showSidebar]="false"` and overrides them without touching those bindings, so
|
|
151
|
+
flip it off and your toolbar comes back. (There's still an iframe; reach for
|
|
152
|
+
`pageOverlayTpl` when you need per-page host DOM.)
|
|
153
|
+
|
|
142
154
|
## 📚 Documentation
|
|
143
155
|
|
|
144
156
|
The README is the front door — the deep reference lives on the docs site and stays in sync with each release.
|
|
145
157
|
|
|
146
158
|
| | |
|
|
147
159
|
|---|---|
|
|
148
|
-
| 🏁 [Getting started](https://
|
|
149
|
-
| 🧭 [Feature guides](https://
|
|
150
|
-
| 🔧 [API reference](https://
|
|
160
|
+
| 🏁 [Getting started](https://angularpdf.com/docs/getting-started) | Install, assets, first viewer, production deployment |
|
|
161
|
+
| 🧭 [Feature guides](https://angularpdf.com/docs/features/overview) | Annotation, forms, search, AI, read-aloud, custom UI, protection, and more |
|
|
162
|
+
| 🔧 [API reference](https://angularpdf.com/docs/api/component-inputs) | Every `@Input()`, `@Output()`, and method, with types |
|
|
151
163
|
| ♿ [Accessibility](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/ACCESSIBILITY.md) | Screen readers, tagged PDFs, keyboard nav, WCAG / EAA |
|
|
152
164
|
| 🖥️ [Server-side examples](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/Server-Side-Examples.md) | Streaming, authenticated fetch, signed URLs |
|
|
153
165
|
| 📝 [Changelog](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/CHANGELOG.md) | What changed, and behavior notes when upgrading |
|
|
154
166
|
|
|
155
167
|
The component exposes **30+ inputs**, **24+ events**, and **19+ Promise-returning methods**.
|
|
156
|
-
The [API reference](https://
|
|
168
|
+
The [API reference](https://angularpdf.com/docs/api/component-inputs) is the
|
|
157
169
|
complete, typed list.
|
|
158
170
|
|
|
159
171
|
## 🔌 Loading documents
|
|
@@ -173,7 +185,7 @@ attach credentials and track progress:
|
|
|
173
185
|
|
|
174
186
|
For large files, linearize ("fast web view") and serve with HTTP range support so the first pages
|
|
175
187
|
render before the whole document downloads. Details in the
|
|
176
|
-
[loading guide](https://
|
|
188
|
+
[loading guide](https://angularpdf.com/docs/features/loading-documents).
|
|
177
189
|
|
|
178
190
|
## 🛡️ Security
|
|
179
191
|
|
|
@@ -197,6 +209,12 @@ test.bat # build the lib, link it, and serve the demo on http://localho
|
|
|
197
209
|
See [CONTRIBUTING.md](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/CONTRIBUTING.md) for the full setup, and look for
|
|
198
210
|
[`good first issue`](https://github.com/intbot/ng2-pdfjs-viewer/labels/good%20first%20issue) to get started.
|
|
199
211
|
|
|
212
|
+
## ⭐ Star history
|
|
213
|
+
|
|
214
|
+
<a href="https://star-history.com/#intbot/ng2-pdfjs-viewer&Date">
|
|
215
|
+
<img src="https://api.star-history.com/svg?repos=intbot/ng2-pdfjs-viewer&type=Date" alt="Star history chart for ng2-pdfjs-viewer" width="640" />
|
|
216
|
+
</a>
|
|
217
|
+
|
|
200
218
|
## 📄 License
|
|
201
219
|
|
|
202
220
|
[Apache-2.0 (Commons Clause)](https://github.com/intbot/ng2-pdfjs-viewer/blob/master/LICENSE). Free to use, modify, and self-host; the Commons
|
|
@@ -211,6 +229,6 @@ years by a community of contributors and 8.3+ million downloads' worth of real-w
|
|
|
211
229
|
|
|
212
230
|
<div align="center">
|
|
213
231
|
|
|
214
|
-
[Documentation](https://
|
|
232
|
+
[Documentation](https://angularpdf.com/) · [Live demo](https://demo.angularpdf.com/) · [npm](https://www.npmjs.com/package/ng2-pdfjs-viewer) · [Issues](https://github.com/intbot/ng2-pdfjs-viewer/issues)
|
|
215
233
|
|
|
216
234
|
</div>
|
|
@@ -245,8 +245,10 @@ const PROPERTY_REGISTRY = [
|
|
|
245
245
|
{ prop: "showToolbarMiddle", action: "show-toolbar-middle", level: 3, init: "always" },
|
|
246
246
|
{ prop: "showToolbarRight", action: "show-toolbar-right", level: 3, init: "always" },
|
|
247
247
|
{ prop: "showSecondaryToolbarToggle", action: "show-secondary-toolbar-toggle", level: 3, init: "always" },
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
// chromeless forces both hidden while leaving the consumer's own
|
|
249
|
+
// showToolbar/showSidebar bindings untouched (see the chromeless @Input).
|
|
250
|
+
{ prop: "showToolbar", action: "show-toolbar", level: 3, init: "always", get: (c) => c.showToolbar && !c.chromeless },
|
|
251
|
+
{ prop: "showSidebar", action: "show-sidebar", level: 3, init: "always", get: (c) => c.showSidebar && !c.chromeless },
|
|
250
252
|
{ prop: "showSidebarLeft", action: "show-sidebar-left", level: 3, init: "always" },
|
|
251
253
|
{ prop: "showSidebarRight", action: "show-sidebar-right", level: 3, init: "always" },
|
|
252
254
|
// Layout & responsive customization
|
|
@@ -409,6 +411,9 @@ const CONFIG_FANOUT = {
|
|
|
409
411
|
viewerConfig: ["useOnlyCssZoom", "externalLinkTarget", "rememberLastView"],
|
|
410
412
|
autoActions: ["rotateCW", "rotateCCW"],
|
|
411
413
|
errorHandling: [],
|
|
414
|
+
// chromeless is a preset, not a config object, but it reuses the fanout so a
|
|
415
|
+
// runtime toggle re-dispatches the (get-overridden) toolbar/sidebar actions.
|
|
416
|
+
chromeless: ["showToolbar", "showSidebar"],
|
|
412
417
|
};
|
|
413
418
|
function hasObservers(emitter) {
|
|
414
419
|
return (emitter.observed === true ||
|
|
@@ -533,6 +538,12 @@ class PdfJsViewerComponent {
|
|
|
533
538
|
// Show/hide the entire viewer toolbar (pair with customToolbarTpl to ship a
|
|
534
539
|
// fully custom host-side toolbar)
|
|
535
540
|
showToolbar = true;
|
|
541
|
+
// Chromeless / embedded mode: hide the toolbar and sidebar in one switch so
|
|
542
|
+
// the iframe shows just the scrolling pages. Shorthand for showToolbar=false
|
|
543
|
+
// + showSidebar=false; it overrides them without mutating those bindings, so
|
|
544
|
+
// flipping it back restores whatever they were. There is still an iframe and
|
|
545
|
+
// its own scroll container - use pageOverlayTpl if you need per-page host DOM.
|
|
546
|
+
chromeless = false;
|
|
536
547
|
// Host-side replacement toolbar rendered ABOVE the viewer iframe. Template
|
|
537
548
|
// context: let-viewer (the component instance) for driving the public API,
|
|
538
549
|
// e.g. <ng-template #tb let-viewer><button (click)="viewer.setPage(1)">...
|
|
@@ -2478,7 +2489,7 @@ class PdfJsViewerComponent {
|
|
|
2478
2489
|
return this.postMessageReadiness >= requiredLevel;
|
|
2479
2490
|
}
|
|
2480
2491
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: PdfJsViewerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ApplicationRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2481
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.1", type: PdfJsViewerComponent, isStandalone: false, selector: "ng2-pdfjs-viewer", inputs: { viewerId: "viewerId", viewerFolder: "viewerFolder", externalWindow: "externalWindow", target: "target", showSpinner: "showSpinner", downloadFileName: "downloadFileName", locale: "locale", useOnlyCssZoom: "useOnlyCssZoom", externalLinkTarget: "externalLinkTarget", rememberLastView: "rememberLastView", annotationEditor: "annotationEditor", highlightEditorColors: "highlightEditorColors", enableSignatureEditor: "enableSignatureEditor", signatureStorage: "signatureStorage", pageColors: "pageColors", pdfJsOptions: "pdfJsOptions", enableCommentEditor: "enableCommentEditor", enablePageEditing: "enablePageEditing", showToolbar: "showToolbar", customToolbarTpl: "customToolbarTpl", customSidebarTpl: "customSidebarTpl", aiAssistantConfig: "aiAssistantConfig", pageOverlayTpl: "pageOverlayTpl", httpHeaders: "httpHeaders", withCredentials: "withCredentials", formData: "formData", contentProtection: "contentProtection", iframeSandbox: "iframeSandbox", diagnosticLogs: "diagnosticLogs", showOpenFile: "showOpenFile", showAnnotations: "showAnnotations", showDownload: "showDownload", showViewBookmark: "showViewBookmark", showPrint: "showPrint", showFullScreen: "showFullScreen", showFind: "showFind", downloadOnLoad: "downloadOnLoad", printOnLoad: "printOnLoad", rotateCW: "rotateCW", rotateCCW: "rotateCCW", showLastPageOnLoad: "showLastPageOnLoad", namedDest: "namedDest", errorOverride: "errorOverride", errorAppend: "errorAppend", errorMessage: "errorMessage", urlValidation: "urlValidation", customSecurityTpl: "customSecurityTpl", theme: "theme", primaryColor: "primaryColor", backgroundColor: "backgroundColor", pageBorderColor: "pageBorderColor", pageSpacing: "pageSpacing", toolbarColor: "toolbarColor", textColor: "textColor", borderRadius: "borderRadius", customCSS: "customCSS", cspNonce: "cspNonce", iframeTitle: "iframeTitle", customSpinnerTpl: "customSpinnerTpl", spinnerClass: "spinnerClass", customErrorTpl: "customErrorTpl", errorClass: "errorClass", showToolbarLeft: "showToolbarLeft", showToolbarMiddle: "showToolbarMiddle", showToolbarRight: "showToolbarRight", showSecondaryToolbarToggle: "showSecondaryToolbarToggle", showSidebar: "showSidebar", showSidebarLeft: "showSidebarLeft", showSidebarRight: "showSidebarRight", toolbarDensity: "toolbarDensity", sidebarWidth: "sidebarWidth", toolbarPosition: "toolbarPosition", sidebarPosition: "sidebarPosition", responsiveBreakpoint: "responsiveBreakpoint", controlVisibility: "controlVisibility", autoActions: "autoActions", errorHandling: "errorHandling", viewerConfig: "viewerConfig", themeConfig: "themeConfig", groupVisibility: "groupVisibility", layoutConfig: "layoutConfig", startDownload: "startDownload", startPrint: "startPrint", openFile: "openFile", download: "download", print: "print", fullScreen: "fullScreen", find: "find", viewBookmark: "viewBookmark", lastPage: "lastPage", externalWindowOptions: "externalWindowOptions", iframeBorder: "iframeBorder", zoom: "zoom", rotation: "rotation", cursor: "cursor", scroll: "scroll", spread: "spread", pageMode: "pageMode", page: "page", pdfSrc: "pdfSrc" }, outputs: { onBeforePrint: "onBeforePrint", onAfterPrint: "onAfterPrint", onDocumentLoad: "onDocumentLoad", onPageChange: "onPageChange", onScaleChange: "onScaleChange", onRotationChange: "onRotationChange", onDocumentError: "onDocumentError", onDocumentInit: "onDocumentInit", onPagesInit: "onPagesInit", onPresentationModeChanged: "onPresentationModeChanged", onOpenFile: "onOpenFile", onFind: "onFind", onUpdateFindMatchesCount: "onUpdateFindMatchesCount", onMetadataLoaded: "onMetadataLoaded", onOutlineLoaded: "onOutlineLoaded", onPageRendered: "onPageRendered", onAnnotationLayerRendered: "onAnnotationLayerRendered", onBookmarkClick: "onBookmarkClick", onIdle: "onIdle", onPasswordPrompt: "onPasswordPrompt", onAnnotationEditorStateChange: "onAnnotationEditorStateChange", onPagesEdited: "onPagesEdited", onReadAloudStateChange: "onReadAloudStateChange", onSidebarViewChanged: "onSidebarViewChanged", onLayersChanged: "onLayersChanged", onNamedAction: "onNamedAction", onDocumentProperties: "onDocumentProperties", annotationEditorChange: "annotationEditorChange", onProgress: "onProgress", formDataChange: "formDataChange", zoomChange: "zoomChange", cursorChange: "cursorChange", scrollChange: "scrollChange", spreadChange: "spreadChange", pageModeChange: "pageModeChange" }, viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
2492
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.1", type: PdfJsViewerComponent, isStandalone: false, selector: "ng2-pdfjs-viewer", inputs: { viewerId: "viewerId", viewerFolder: "viewerFolder", externalWindow: "externalWindow", target: "target", showSpinner: "showSpinner", downloadFileName: "downloadFileName", locale: "locale", useOnlyCssZoom: "useOnlyCssZoom", externalLinkTarget: "externalLinkTarget", rememberLastView: "rememberLastView", annotationEditor: "annotationEditor", highlightEditorColors: "highlightEditorColors", enableSignatureEditor: "enableSignatureEditor", signatureStorage: "signatureStorage", pageColors: "pageColors", pdfJsOptions: "pdfJsOptions", enableCommentEditor: "enableCommentEditor", enablePageEditing: "enablePageEditing", showToolbar: "showToolbar", chromeless: "chromeless", customToolbarTpl: "customToolbarTpl", customSidebarTpl: "customSidebarTpl", aiAssistantConfig: "aiAssistantConfig", pageOverlayTpl: "pageOverlayTpl", httpHeaders: "httpHeaders", withCredentials: "withCredentials", formData: "formData", contentProtection: "contentProtection", iframeSandbox: "iframeSandbox", diagnosticLogs: "diagnosticLogs", showOpenFile: "showOpenFile", showAnnotations: "showAnnotations", showDownload: "showDownload", showViewBookmark: "showViewBookmark", showPrint: "showPrint", showFullScreen: "showFullScreen", showFind: "showFind", downloadOnLoad: "downloadOnLoad", printOnLoad: "printOnLoad", rotateCW: "rotateCW", rotateCCW: "rotateCCW", showLastPageOnLoad: "showLastPageOnLoad", namedDest: "namedDest", errorOverride: "errorOverride", errorAppend: "errorAppend", errorMessage: "errorMessage", urlValidation: "urlValidation", customSecurityTpl: "customSecurityTpl", theme: "theme", primaryColor: "primaryColor", backgroundColor: "backgroundColor", pageBorderColor: "pageBorderColor", pageSpacing: "pageSpacing", toolbarColor: "toolbarColor", textColor: "textColor", borderRadius: "borderRadius", customCSS: "customCSS", cspNonce: "cspNonce", iframeTitle: "iframeTitle", customSpinnerTpl: "customSpinnerTpl", spinnerClass: "spinnerClass", customErrorTpl: "customErrorTpl", errorClass: "errorClass", showToolbarLeft: "showToolbarLeft", showToolbarMiddle: "showToolbarMiddle", showToolbarRight: "showToolbarRight", showSecondaryToolbarToggle: "showSecondaryToolbarToggle", showSidebar: "showSidebar", showSidebarLeft: "showSidebarLeft", showSidebarRight: "showSidebarRight", toolbarDensity: "toolbarDensity", sidebarWidth: "sidebarWidth", toolbarPosition: "toolbarPosition", sidebarPosition: "sidebarPosition", responsiveBreakpoint: "responsiveBreakpoint", controlVisibility: "controlVisibility", autoActions: "autoActions", errorHandling: "errorHandling", viewerConfig: "viewerConfig", themeConfig: "themeConfig", groupVisibility: "groupVisibility", layoutConfig: "layoutConfig", startDownload: "startDownload", startPrint: "startPrint", openFile: "openFile", download: "download", print: "print", fullScreen: "fullScreen", find: "find", viewBookmark: "viewBookmark", lastPage: "lastPage", externalWindowOptions: "externalWindowOptions", iframeBorder: "iframeBorder", zoom: "zoom", rotation: "rotation", cursor: "cursor", scroll: "scroll", spread: "spread", pageMode: "pageMode", page: "page", pdfSrc: "pdfSrc" }, outputs: { onBeforePrint: "onBeforePrint", onAfterPrint: "onAfterPrint", onDocumentLoad: "onDocumentLoad", onPageChange: "onPageChange", onScaleChange: "onScaleChange", onRotationChange: "onRotationChange", onDocumentError: "onDocumentError", onDocumentInit: "onDocumentInit", onPagesInit: "onPagesInit", onPresentationModeChanged: "onPresentationModeChanged", onOpenFile: "onOpenFile", onFind: "onFind", onUpdateFindMatchesCount: "onUpdateFindMatchesCount", onMetadataLoaded: "onMetadataLoaded", onOutlineLoaded: "onOutlineLoaded", onPageRendered: "onPageRendered", onAnnotationLayerRendered: "onAnnotationLayerRendered", onBookmarkClick: "onBookmarkClick", onIdle: "onIdle", onPasswordPrompt: "onPasswordPrompt", onAnnotationEditorStateChange: "onAnnotationEditorStateChange", onPagesEdited: "onPagesEdited", onReadAloudStateChange: "onReadAloudStateChange", onSidebarViewChanged: "onSidebarViewChanged", onLayersChanged: "onLayersChanged", onNamedAction: "onNamedAction", onDocumentProperties: "onDocumentProperties", annotationEditorChange: "annotationEditorChange", onProgress: "onProgress", formDataChange: "formDataChange", zoomChange: "zoomChange", cursorChange: "cursorChange", scrollChange: "scrollChange", spreadChange: "spreadChange", pageModeChange: "pageModeChange" }, viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
2482
2493
|
<div
|
|
2483
2494
|
class="ng2-pdfjs-viewer-container"
|
|
2484
2495
|
[class.ng2-has-custom-toolbar]="customToolbarTpl && !externalWindow"
|
|
@@ -2920,6 +2931,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
2920
2931
|
type: Input
|
|
2921
2932
|
}], showToolbar: [{
|
|
2922
2933
|
type: Input
|
|
2934
|
+
}], chromeless: [{
|
|
2935
|
+
type: Input
|
|
2923
2936
|
}], customToolbarTpl: [{
|
|
2924
2937
|
type: Input
|
|
2925
2938
|
}], customSidebarTpl: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng2-pdfjs-viewer",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.1.1",
|
|
4
4
|
"description": "The most comprehensive Angular PDF viewer, powered by Mozilla PDF.js 6 — view, annotate, sign, fill forms, search, and read aloud from one component. 8.3M+ downloads, mobile-first, production-ready.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aneesh Goapalakrishnan",
|
|
@@ -20,34 +20,37 @@
|
|
|
20
20
|
"@angular/core": ">=10.0.0"
|
|
21
21
|
},
|
|
22
22
|
"$schema": "./node_modules/ng-packagr/package.schema.json",
|
|
23
|
-
"homepage": "https://
|
|
23
|
+
"homepage": "https://angularpdf.com/",
|
|
24
24
|
"bugs": {
|
|
25
25
|
"url": "https://github.com/intbot/ng2-pdfjs-viewer/issues"
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
|
28
|
+
"angular pdf viewer",
|
|
28
29
|
"angular",
|
|
29
30
|
"angular-pdf-viewer",
|
|
31
|
+
"ng2-pdfjs-viewer",
|
|
30
32
|
"pdf-viewer",
|
|
31
33
|
"pdf-reader",
|
|
32
34
|
"PDF",
|
|
33
|
-
"PDF Viewer",
|
|
34
35
|
"pdfjs",
|
|
35
|
-
"
|
|
36
|
-
"ng2",
|
|
36
|
+
"pdf.js",
|
|
37
37
|
"angular-component",
|
|
38
38
|
"angular-pdf",
|
|
39
39
|
"ng2-pdf",
|
|
40
|
-
"angular 2 - 22",
|
|
41
40
|
"angular 22",
|
|
42
41
|
"angular-library",
|
|
43
42
|
"typescript",
|
|
44
43
|
"javascript",
|
|
45
44
|
"pdf-rendering",
|
|
46
45
|
"pdf-annotations",
|
|
46
|
+
"pdf-forms",
|
|
47
|
+
"pdf-signature",
|
|
48
|
+
"esign",
|
|
49
|
+
"pdf-search",
|
|
47
50
|
"pdf-zoom",
|
|
48
51
|
"pdf-printing",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
52
|
+
"text-to-speech",
|
|
53
|
+
"mobile-first",
|
|
51
54
|
"accessibility",
|
|
52
55
|
"open-source"
|
|
53
56
|
],
|
|
@@ -269,6 +269,7 @@ declare class PdfJsViewerComponent implements OnInit, OnDestroy, OnChanges, Afte
|
|
|
269
269
|
enableCommentEditor: boolean;
|
|
270
270
|
enablePageEditing: boolean;
|
|
271
271
|
showToolbar: boolean;
|
|
272
|
+
chromeless: boolean;
|
|
272
273
|
customToolbarTpl?: TemplateRef<any>;
|
|
273
274
|
customSidebarTpl?: TemplateRef<any>;
|
|
274
275
|
aiAssistantConfig?: PdfAiPanelConfig | null;
|
|
@@ -616,7 +617,7 @@ declare class PdfJsViewerComponent implements OnInit, OnDestroy, OnChanges, Afte
|
|
|
616
617
|
private getRequiredReadinessLevel;
|
|
617
618
|
private hasRequiredReadiness;
|
|
618
619
|
static ɵfac: i0.ɵɵFactoryDeclaration<PdfJsViewerComponent, never>;
|
|
619
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PdfJsViewerComponent, "ng2-pdfjs-viewer", never, { "viewerId": { "alias": "viewerId"; "required": false; }; "viewerFolder": { "alias": "viewerFolder"; "required": false; }; "externalWindow": { "alias": "externalWindow"; "required": false; }; "target": { "alias": "target"; "required": false; }; "showSpinner": { "alias": "showSpinner"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "useOnlyCssZoom": { "alias": "useOnlyCssZoom"; "required": false; }; "externalLinkTarget": { "alias": "externalLinkTarget"; "required": false; }; "rememberLastView": { "alias": "rememberLastView"; "required": false; }; "annotationEditor": { "alias": "annotationEditor"; "required": false; }; "highlightEditorColors": { "alias": "highlightEditorColors"; "required": false; }; "enableSignatureEditor": { "alias": "enableSignatureEditor"; "required": false; }; "signatureStorage": { "alias": "signatureStorage"; "required": false; }; "pageColors": { "alias": "pageColors"; "required": false; }; "pdfJsOptions": { "alias": "pdfJsOptions"; "required": false; }; "enableCommentEditor": { "alias": "enableCommentEditor"; "required": false; }; "enablePageEditing": { "alias": "enablePageEditing"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "customToolbarTpl": { "alias": "customToolbarTpl"; "required": false; }; "customSidebarTpl": { "alias": "customSidebarTpl"; "required": false; }; "aiAssistantConfig": { "alias": "aiAssistantConfig"; "required": false; }; "pageOverlayTpl": { "alias": "pageOverlayTpl"; "required": false; }; "httpHeaders": { "alias": "httpHeaders"; "required": false; }; "withCredentials": { "alias": "withCredentials"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "contentProtection": { "alias": "contentProtection"; "required": false; }; "iframeSandbox": { "alias": "iframeSandbox"; "required": false; }; "diagnosticLogs": { "alias": "diagnosticLogs"; "required": false; }; "showOpenFile": { "alias": "showOpenFile"; "required": false; }; "showAnnotations": { "alias": "showAnnotations"; "required": false; }; "showDownload": { "alias": "showDownload"; "required": false; }; "showViewBookmark": { "alias": "showViewBookmark"; "required": false; }; "showPrint": { "alias": "showPrint"; "required": false; }; "showFullScreen": { "alias": "showFullScreen"; "required": false; }; "showFind": { "alias": "showFind"; "required": false; }; "downloadOnLoad": { "alias": "downloadOnLoad"; "required": false; }; "printOnLoad": { "alias": "printOnLoad"; "required": false; }; "rotateCW": { "alias": "rotateCW"; "required": false; }; "rotateCCW": { "alias": "rotateCCW"; "required": false; }; "showLastPageOnLoad": { "alias": "showLastPageOnLoad"; "required": false; }; "namedDest": { "alias": "namedDest"; "required": false; }; "errorOverride": { "alias": "errorOverride"; "required": false; }; "errorAppend": { "alias": "errorAppend"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "urlValidation": { "alias": "urlValidation"; "required": false; }; "customSecurityTpl": { "alias": "customSecurityTpl"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "primaryColor": { "alias": "primaryColor"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "pageBorderColor": { "alias": "pageBorderColor"; "required": false; }; "pageSpacing": { "alias": "pageSpacing"; "required": false; }; "toolbarColor": { "alias": "toolbarColor"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "customCSS": { "alias": "customCSS"; "required": false; }; "cspNonce": { "alias": "cspNonce"; "required": false; }; "iframeTitle": { "alias": "iframeTitle"; "required": false; }; "customSpinnerTpl": { "alias": "customSpinnerTpl"; "required": false; }; "spinnerClass": { "alias": "spinnerClass"; "required": false; }; "customErrorTpl": { "alias": "customErrorTpl"; "required": false; }; "errorClass": { "alias": "errorClass"; "required": false; }; "showToolbarLeft": { "alias": "showToolbarLeft"; "required": false; }; "showToolbarMiddle": { "alias": "showToolbarMiddle"; "required": false; }; "showToolbarRight": { "alias": "showToolbarRight"; "required": false; }; "showSecondaryToolbarToggle": { "alias": "showSecondaryToolbarToggle"; "required": false; }; "showSidebar": { "alias": "showSidebar"; "required": false; }; "showSidebarLeft": { "alias": "showSidebarLeft"; "required": false; }; "showSidebarRight": { "alias": "showSidebarRight"; "required": false; }; "toolbarDensity": { "alias": "toolbarDensity"; "required": false; }; "sidebarWidth": { "alias": "sidebarWidth"; "required": false; }; "toolbarPosition": { "alias": "toolbarPosition"; "required": false; }; "sidebarPosition": { "alias": "sidebarPosition"; "required": false; }; "responsiveBreakpoint": { "alias": "responsiveBreakpoint"; "required": false; }; "controlVisibility": { "alias": "controlVisibility"; "required": false; }; "autoActions": { "alias": "autoActions"; "required": false; }; "errorHandling": { "alias": "errorHandling"; "required": false; }; "viewerConfig": { "alias": "viewerConfig"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; "groupVisibility": { "alias": "groupVisibility"; "required": false; }; "layoutConfig": { "alias": "layoutConfig"; "required": false; }; "startDownload": { "alias": "startDownload"; "required": false; }; "startPrint": { "alias": "startPrint"; "required": false; }; "openFile": { "alias": "openFile"; "required": false; }; "download": { "alias": "download"; "required": false; }; "print": { "alias": "print"; "required": false; }; "fullScreen": { "alias": "fullScreen"; "required": false; }; "find": { "alias": "find"; "required": false; }; "viewBookmark": { "alias": "viewBookmark"; "required": false; }; "lastPage": { "alias": "lastPage"; "required": false; }; "externalWindowOptions": { "alias": "externalWindowOptions"; "required": false; }; "iframeBorder": { "alias": "iframeBorder"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "rotation": { "alias": "rotation"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "scroll": { "alias": "scroll"; "required": false; }; "spread": { "alias": "spread"; "required": false; }; "pageMode": { "alias": "pageMode"; "required": false; }; "page": { "alias": "page"; "required": false; }; "pdfSrc": { "alias": "pdfSrc"; "required": false; }; }, { "onBeforePrint": "onBeforePrint"; "onAfterPrint": "onAfterPrint"; "onDocumentLoad": "onDocumentLoad"; "onPageChange": "onPageChange"; "onScaleChange": "onScaleChange"; "onRotationChange": "onRotationChange"; "onDocumentError": "onDocumentError"; "onDocumentInit": "onDocumentInit"; "onPagesInit": "onPagesInit"; "onPresentationModeChanged": "onPresentationModeChanged"; "onOpenFile": "onOpenFile"; "onFind": "onFind"; "onUpdateFindMatchesCount": "onUpdateFindMatchesCount"; "onMetadataLoaded": "onMetadataLoaded"; "onOutlineLoaded": "onOutlineLoaded"; "onPageRendered": "onPageRendered"; "onAnnotationLayerRendered": "onAnnotationLayerRendered"; "onBookmarkClick": "onBookmarkClick"; "onIdle": "onIdle"; "onPasswordPrompt": "onPasswordPrompt"; "onAnnotationEditorStateChange": "onAnnotationEditorStateChange"; "onPagesEdited": "onPagesEdited"; "onReadAloudStateChange": "onReadAloudStateChange"; "onSidebarViewChanged": "onSidebarViewChanged"; "onLayersChanged": "onLayersChanged"; "onNamedAction": "onNamedAction"; "onDocumentProperties": "onDocumentProperties"; "annotationEditorChange": "annotationEditorChange"; "onProgress": "onProgress"; "formDataChange": "formDataChange"; "zoomChange": "zoomChange"; "cursorChange": "cursorChange"; "scrollChange": "scrollChange"; "spreadChange": "spreadChange"; "pageModeChange": "pageModeChange"; }, never, never, false, never>;
|
|
620
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PdfJsViewerComponent, "ng2-pdfjs-viewer", never, { "viewerId": { "alias": "viewerId"; "required": false; }; "viewerFolder": { "alias": "viewerFolder"; "required": false; }; "externalWindow": { "alias": "externalWindow"; "required": false; }; "target": { "alias": "target"; "required": false; }; "showSpinner": { "alias": "showSpinner"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "useOnlyCssZoom": { "alias": "useOnlyCssZoom"; "required": false; }; "externalLinkTarget": { "alias": "externalLinkTarget"; "required": false; }; "rememberLastView": { "alias": "rememberLastView"; "required": false; }; "annotationEditor": { "alias": "annotationEditor"; "required": false; }; "highlightEditorColors": { "alias": "highlightEditorColors"; "required": false; }; "enableSignatureEditor": { "alias": "enableSignatureEditor"; "required": false; }; "signatureStorage": { "alias": "signatureStorage"; "required": false; }; "pageColors": { "alias": "pageColors"; "required": false; }; "pdfJsOptions": { "alias": "pdfJsOptions"; "required": false; }; "enableCommentEditor": { "alias": "enableCommentEditor"; "required": false; }; "enablePageEditing": { "alias": "enablePageEditing"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "chromeless": { "alias": "chromeless"; "required": false; }; "customToolbarTpl": { "alias": "customToolbarTpl"; "required": false; }; "customSidebarTpl": { "alias": "customSidebarTpl"; "required": false; }; "aiAssistantConfig": { "alias": "aiAssistantConfig"; "required": false; }; "pageOverlayTpl": { "alias": "pageOverlayTpl"; "required": false; }; "httpHeaders": { "alias": "httpHeaders"; "required": false; }; "withCredentials": { "alias": "withCredentials"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "contentProtection": { "alias": "contentProtection"; "required": false; }; "iframeSandbox": { "alias": "iframeSandbox"; "required": false; }; "diagnosticLogs": { "alias": "diagnosticLogs"; "required": false; }; "showOpenFile": { "alias": "showOpenFile"; "required": false; }; "showAnnotations": { "alias": "showAnnotations"; "required": false; }; "showDownload": { "alias": "showDownload"; "required": false; }; "showViewBookmark": { "alias": "showViewBookmark"; "required": false; }; "showPrint": { "alias": "showPrint"; "required": false; }; "showFullScreen": { "alias": "showFullScreen"; "required": false; }; "showFind": { "alias": "showFind"; "required": false; }; "downloadOnLoad": { "alias": "downloadOnLoad"; "required": false; }; "printOnLoad": { "alias": "printOnLoad"; "required": false; }; "rotateCW": { "alias": "rotateCW"; "required": false; }; "rotateCCW": { "alias": "rotateCCW"; "required": false; }; "showLastPageOnLoad": { "alias": "showLastPageOnLoad"; "required": false; }; "namedDest": { "alias": "namedDest"; "required": false; }; "errorOverride": { "alias": "errorOverride"; "required": false; }; "errorAppend": { "alias": "errorAppend"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "urlValidation": { "alias": "urlValidation"; "required": false; }; "customSecurityTpl": { "alias": "customSecurityTpl"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "primaryColor": { "alias": "primaryColor"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "pageBorderColor": { "alias": "pageBorderColor"; "required": false; }; "pageSpacing": { "alias": "pageSpacing"; "required": false; }; "toolbarColor": { "alias": "toolbarColor"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "customCSS": { "alias": "customCSS"; "required": false; }; "cspNonce": { "alias": "cspNonce"; "required": false; }; "iframeTitle": { "alias": "iframeTitle"; "required": false; }; "customSpinnerTpl": { "alias": "customSpinnerTpl"; "required": false; }; "spinnerClass": { "alias": "spinnerClass"; "required": false; }; "customErrorTpl": { "alias": "customErrorTpl"; "required": false; }; "errorClass": { "alias": "errorClass"; "required": false; }; "showToolbarLeft": { "alias": "showToolbarLeft"; "required": false; }; "showToolbarMiddle": { "alias": "showToolbarMiddle"; "required": false; }; "showToolbarRight": { "alias": "showToolbarRight"; "required": false; }; "showSecondaryToolbarToggle": { "alias": "showSecondaryToolbarToggle"; "required": false; }; "showSidebar": { "alias": "showSidebar"; "required": false; }; "showSidebarLeft": { "alias": "showSidebarLeft"; "required": false; }; "showSidebarRight": { "alias": "showSidebarRight"; "required": false; }; "toolbarDensity": { "alias": "toolbarDensity"; "required": false; }; "sidebarWidth": { "alias": "sidebarWidth"; "required": false; }; "toolbarPosition": { "alias": "toolbarPosition"; "required": false; }; "sidebarPosition": { "alias": "sidebarPosition"; "required": false; }; "responsiveBreakpoint": { "alias": "responsiveBreakpoint"; "required": false; }; "controlVisibility": { "alias": "controlVisibility"; "required": false; }; "autoActions": { "alias": "autoActions"; "required": false; }; "errorHandling": { "alias": "errorHandling"; "required": false; }; "viewerConfig": { "alias": "viewerConfig"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; "groupVisibility": { "alias": "groupVisibility"; "required": false; }; "layoutConfig": { "alias": "layoutConfig"; "required": false; }; "startDownload": { "alias": "startDownload"; "required": false; }; "startPrint": { "alias": "startPrint"; "required": false; }; "openFile": { "alias": "openFile"; "required": false; }; "download": { "alias": "download"; "required": false; }; "print": { "alias": "print"; "required": false; }; "fullScreen": { "alias": "fullScreen"; "required": false; }; "find": { "alias": "find"; "required": false; }; "viewBookmark": { "alias": "viewBookmark"; "required": false; }; "lastPage": { "alias": "lastPage"; "required": false; }; "externalWindowOptions": { "alias": "externalWindowOptions"; "required": false; }; "iframeBorder": { "alias": "iframeBorder"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "rotation": { "alias": "rotation"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "scroll": { "alias": "scroll"; "required": false; }; "spread": { "alias": "spread"; "required": false; }; "pageMode": { "alias": "pageMode"; "required": false; }; "page": { "alias": "page"; "required": false; }; "pdfSrc": { "alias": "pdfSrc"; "required": false; }; }, { "onBeforePrint": "onBeforePrint"; "onAfterPrint": "onAfterPrint"; "onDocumentLoad": "onDocumentLoad"; "onPageChange": "onPageChange"; "onScaleChange": "onScaleChange"; "onRotationChange": "onRotationChange"; "onDocumentError": "onDocumentError"; "onDocumentInit": "onDocumentInit"; "onPagesInit": "onPagesInit"; "onPresentationModeChanged": "onPresentationModeChanged"; "onOpenFile": "onOpenFile"; "onFind": "onFind"; "onUpdateFindMatchesCount": "onUpdateFindMatchesCount"; "onMetadataLoaded": "onMetadataLoaded"; "onOutlineLoaded": "onOutlineLoaded"; "onPageRendered": "onPageRendered"; "onAnnotationLayerRendered": "onAnnotationLayerRendered"; "onBookmarkClick": "onBookmarkClick"; "onIdle": "onIdle"; "onPasswordPrompt": "onPasswordPrompt"; "onAnnotationEditorStateChange": "onAnnotationEditorStateChange"; "onPagesEdited": "onPagesEdited"; "onReadAloudStateChange": "onReadAloudStateChange"; "onSidebarViewChanged": "onSidebarViewChanged"; "onLayersChanged": "onLayersChanged"; "onNamedAction": "onNamedAction"; "onDocumentProperties": "onDocumentProperties"; "annotationEditorChange": "annotationEditorChange"; "onProgress": "onProgress"; "formDataChange": "formDataChange"; "zoomChange": "zoomChange"; "cursorChange": "cursorChange"; "scrollChange": "scrollChange"; "spreadChange": "spreadChange"; "pageModeChange": "pageModeChange"; }, never, never, false, never>;
|
|
620
621
|
}
|
|
621
622
|
|
|
622
623
|
declare class PdfJsViewerModule {
|