ng2-pdfjs-viewer 26.0.3 → 26.1.0
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 +12 -0
- package/fesm2022/ng2-pdfjs-viewer.mjs +16 -3
- package/package.json +1 -1
- package/types/ng2-pdfjs-viewer.d.ts +2 -1
package/README.md
CHANGED
|
@@ -139,6 +139,18 @@ 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.
|
|
@@ -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.0
|
|
3
|
+
"version": "26.1.0",
|
|
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",
|
|
@@ -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 {
|