@solidexpert/ngx-pdf-viewer 0.0.0-stage → 22.0.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.
|
@@ -0,0 +1,690 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, NgModule, Output, ViewChild } from "@angular/core";
|
|
3
|
+
import { Subject, from, fromEvent } from "rxjs";
|
|
4
|
+
import { debounceTime, filter, takeUntil } from "rxjs/operators";
|
|
5
|
+
import * as PDFJS from "pdfjs-dist";
|
|
6
|
+
import { GlobalWorkerOptions, VerbosityLevel, getDocument } from "pdfjs-dist";
|
|
7
|
+
import * as PDFJSViewer from "pdfjs-dist/web/pdf_viewer.mjs";
|
|
8
|
+
function createEventBus(pdfJsViewer, destroy$) {
|
|
9
|
+
const globalEventBus = new pdfJsViewer.EventBus();
|
|
10
|
+
attachDOMEventsToEventBus(globalEventBus, destroy$);
|
|
11
|
+
return globalEventBus;
|
|
12
|
+
}
|
|
13
|
+
function attachDOMEventsToEventBus(eventBus, destroy$) {
|
|
14
|
+
fromEvent(eventBus, "documentload").pipe(takeUntil(destroy$)).subscribe(() => {
|
|
15
|
+
const event = document.createEvent("CustomEvent");
|
|
16
|
+
event.initCustomEvent("documentload", true, true, {});
|
|
17
|
+
window.dispatchEvent(event);
|
|
18
|
+
});
|
|
19
|
+
fromEvent(eventBus, "pagerendered").pipe(takeUntil(destroy$)).subscribe(({ pageNumber, cssTransform, source }) => {
|
|
20
|
+
const event = document.createEvent("CustomEvent");
|
|
21
|
+
event.initCustomEvent("pagerendered", true, true, {
|
|
22
|
+
pageNumber,
|
|
23
|
+
cssTransform
|
|
24
|
+
});
|
|
25
|
+
source.div.dispatchEvent(event);
|
|
26
|
+
});
|
|
27
|
+
fromEvent(eventBus, "textlayerrendered").pipe(takeUntil(destroy$)).subscribe(({ pageNumber, source }) => {
|
|
28
|
+
const event = document.createEvent("CustomEvent");
|
|
29
|
+
event.initCustomEvent("textlayerrendered", true, true, { pageNumber });
|
|
30
|
+
source.textLayerDiv?.dispatchEvent(event);
|
|
31
|
+
});
|
|
32
|
+
fromEvent(eventBus, "pagechanging").pipe(takeUntil(destroy$)).subscribe(({ pageNumber, source }) => {
|
|
33
|
+
const event = document.createEvent("UIEvents");
|
|
34
|
+
event.initEvent("pagechanging", true, true);
|
|
35
|
+
event["pageNumber"] = pageNumber;
|
|
36
|
+
source.container.dispatchEvent(event);
|
|
37
|
+
});
|
|
38
|
+
fromEvent(eventBus, "pagesinit").pipe(takeUntil(destroy$)).subscribe(({ source }) => {
|
|
39
|
+
const event = document.createEvent("CustomEvent");
|
|
40
|
+
event.initCustomEvent("pagesinit", true, true, null);
|
|
41
|
+
source.container.dispatchEvent(event);
|
|
42
|
+
});
|
|
43
|
+
fromEvent(eventBus, "pagesloaded").pipe(takeUntil(destroy$)).subscribe(({ pagesCount, source }) => {
|
|
44
|
+
const event = document.createEvent("CustomEvent");
|
|
45
|
+
event.initCustomEvent("pagesloaded", true, true, { pagesCount });
|
|
46
|
+
source.container.dispatchEvent(event);
|
|
47
|
+
});
|
|
48
|
+
fromEvent(eventBus, "scalechange").pipe(takeUntil(destroy$)).subscribe(({ scale, presetValue, source }) => {
|
|
49
|
+
const event = document.createEvent("UIEvents");
|
|
50
|
+
event.initEvent("scalechange", true, true);
|
|
51
|
+
event["scale"] = scale;
|
|
52
|
+
event["presetValue"] = presetValue;
|
|
53
|
+
source.container.dispatchEvent(event);
|
|
54
|
+
});
|
|
55
|
+
fromEvent(eventBus, "updateviewarea").pipe(takeUntil(destroy$)).subscribe(({ location, source }) => {
|
|
56
|
+
const event = document.createEvent("UIEvents");
|
|
57
|
+
event.initEvent("updateviewarea", true, true);
|
|
58
|
+
event["location"] = location;
|
|
59
|
+
source.container.dispatchEvent(event);
|
|
60
|
+
});
|
|
61
|
+
fromEvent(eventBus, "find").pipe(takeUntil(destroy$)).subscribe(({ source, type, query, phraseSearch, caseSensitive, highlightAll, findPrevious }) => {
|
|
62
|
+
if (source === window) return;
|
|
63
|
+
const event = document.createEvent("CustomEvent");
|
|
64
|
+
event.initCustomEvent("find" + type, true, true, {
|
|
65
|
+
query,
|
|
66
|
+
phraseSearch,
|
|
67
|
+
caseSensitive,
|
|
68
|
+
highlightAll,
|
|
69
|
+
findPrevious
|
|
70
|
+
});
|
|
71
|
+
window.dispatchEvent(event);
|
|
72
|
+
});
|
|
73
|
+
fromEvent(eventBus, "attachmentsloaded").pipe(takeUntil(destroy$)).subscribe(({ attachmentsCount, source }) => {
|
|
74
|
+
const event = document.createEvent("CustomEvent");
|
|
75
|
+
event.initCustomEvent("attachmentsloaded", true, true, { attachmentsCount });
|
|
76
|
+
source.container.dispatchEvent(event);
|
|
77
|
+
});
|
|
78
|
+
fromEvent(eventBus, "sidebarviewchanged").pipe(takeUntil(destroy$)).subscribe(({ view, source }) => {
|
|
79
|
+
const event = document.createEvent("CustomEvent");
|
|
80
|
+
event.initCustomEvent("sidebarviewchanged", true, true, { view });
|
|
81
|
+
source.outerContainer.dispatchEvent(event);
|
|
82
|
+
});
|
|
83
|
+
fromEvent(eventBus, "pagemode").pipe(takeUntil(destroy$)).subscribe(({ mode, source }) => {
|
|
84
|
+
const event = document.createEvent("CustomEvent");
|
|
85
|
+
event.initCustomEvent("pagemode", true, true, { mode });
|
|
86
|
+
source.pdfViewer.container.dispatchEvent(event);
|
|
87
|
+
});
|
|
88
|
+
fromEvent(eventBus, "namedaction").pipe(takeUntil(destroy$)).subscribe(({ action, source }) => {
|
|
89
|
+
const event = document.createEvent("CustomEvent");
|
|
90
|
+
event.initCustomEvent("namedaction", true, true, { action });
|
|
91
|
+
source.pdfViewer.container.dispatchEvent(event);
|
|
92
|
+
});
|
|
93
|
+
fromEvent(eventBus, "presentationmodechanged").pipe(takeUntil(destroy$)).subscribe(({ active, switchInProgress }) => {
|
|
94
|
+
const event = document.createEvent("CustomEvent");
|
|
95
|
+
event.initCustomEvent("presentationmodechanged", true, true, {
|
|
96
|
+
active,
|
|
97
|
+
switchInProgress
|
|
98
|
+
});
|
|
99
|
+
window.dispatchEvent(event);
|
|
100
|
+
});
|
|
101
|
+
fromEvent(eventBus, "outlineloaded").pipe(takeUntil(destroy$)).subscribe(({ outlineCount, source }) => {
|
|
102
|
+
const event = document.createEvent("CustomEvent");
|
|
103
|
+
event.initCustomEvent("outlineloaded", true, true, { outlineCount });
|
|
104
|
+
source.container.dispatchEvent(event);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function assign(obj, prop, value) {
|
|
108
|
+
obj[prop] = value;
|
|
109
|
+
}
|
|
110
|
+
function isSSR() {
|
|
111
|
+
return typeof window === "undefined";
|
|
112
|
+
}
|
|
113
|
+
if (!isSSR()) assign(PDFJS, "verbosity", VerbosityLevel.INFOS);
|
|
114
|
+
if (typeof Promise.withResolvers === "undefined" && window) window.Promise.withResolvers = () => {
|
|
115
|
+
let resolve;
|
|
116
|
+
let reject;
|
|
117
|
+
return {
|
|
118
|
+
promise: new Promise((res, rej) => {
|
|
119
|
+
resolve = res;
|
|
120
|
+
reject = rej;
|
|
121
|
+
}),
|
|
122
|
+
resolve,
|
|
123
|
+
reject
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
var RenderTextMode;
|
|
127
|
+
(function(RenderTextMode) {
|
|
128
|
+
RenderTextMode[RenderTextMode["DISABLED"] = 0] = "DISABLED";
|
|
129
|
+
RenderTextMode[RenderTextMode["ENABLED"] = 1] = "ENABLED";
|
|
130
|
+
RenderTextMode[RenderTextMode["ENHANCED"] = 2] = "ENHANCED";
|
|
131
|
+
})(RenderTextMode || (RenderTextMode = {}));
|
|
132
|
+
var PdfViewerComponent = class PdfViewerComponent {
|
|
133
|
+
element;
|
|
134
|
+
ngZone;
|
|
135
|
+
static CSS_UNITS = 96 / 72;
|
|
136
|
+
static BORDER_WIDTH = 9;
|
|
137
|
+
pdfViewerContainer;
|
|
138
|
+
eventBus;
|
|
139
|
+
pdfLinkService;
|
|
140
|
+
pdfFindController;
|
|
141
|
+
pdfViewer;
|
|
142
|
+
isVisible = false;
|
|
143
|
+
_cMapsUrl = typeof PDFJS !== "undefined" ? `https://unpkg.com/pdfjs-dist@${PDFJS.version}/cmaps/` : null;
|
|
144
|
+
_imageResourcesPath = typeof PDFJS !== "undefined" ? `https://unpkg.com/pdfjs-dist@${PDFJS.version}/web/images/` : void 0;
|
|
145
|
+
_renderText = true;
|
|
146
|
+
_renderTextMode = RenderTextMode.ENABLED;
|
|
147
|
+
_stickToPage = false;
|
|
148
|
+
_originalSize = true;
|
|
149
|
+
_pdf;
|
|
150
|
+
_page = 1;
|
|
151
|
+
_zoom = 1;
|
|
152
|
+
_zoomScale = "page-width";
|
|
153
|
+
_rotation = 0;
|
|
154
|
+
_showAll = true;
|
|
155
|
+
_canAutoResize = true;
|
|
156
|
+
_fitToPage = false;
|
|
157
|
+
_externalLinkTarget = "blank";
|
|
158
|
+
_showBorders = false;
|
|
159
|
+
lastLoaded;
|
|
160
|
+
_latestScrolledPage;
|
|
161
|
+
pageScrollTimeout = null;
|
|
162
|
+
isInitialized = false;
|
|
163
|
+
loadingTask;
|
|
164
|
+
destroy$ = new Subject();
|
|
165
|
+
afterLoadComplete = new EventEmitter();
|
|
166
|
+
pageRendered = new EventEmitter();
|
|
167
|
+
pageInitialized = new EventEmitter();
|
|
168
|
+
textLayerRendered = new EventEmitter();
|
|
169
|
+
onError = new EventEmitter();
|
|
170
|
+
onProgress = new EventEmitter();
|
|
171
|
+
pageChange = new EventEmitter(true);
|
|
172
|
+
src;
|
|
173
|
+
set cMapsUrl(cMapsUrl) {
|
|
174
|
+
this._cMapsUrl = cMapsUrl;
|
|
175
|
+
}
|
|
176
|
+
set page(_page) {
|
|
177
|
+
_page = parseInt(_page, 10) || 1;
|
|
178
|
+
const originalPage = _page;
|
|
179
|
+
if (this._pdf) _page = this.getValidPageNumber(_page);
|
|
180
|
+
this._page = _page;
|
|
181
|
+
if (originalPage !== _page) this.pageChange.emit(_page);
|
|
182
|
+
}
|
|
183
|
+
set renderText(renderText) {
|
|
184
|
+
this._renderText = renderText;
|
|
185
|
+
}
|
|
186
|
+
set renderTextMode(renderTextMode) {
|
|
187
|
+
this._renderTextMode = renderTextMode;
|
|
188
|
+
}
|
|
189
|
+
set originalSize(originalSize) {
|
|
190
|
+
this._originalSize = originalSize;
|
|
191
|
+
}
|
|
192
|
+
set showAll(value) {
|
|
193
|
+
this._showAll = value;
|
|
194
|
+
}
|
|
195
|
+
set stickToPage(value) {
|
|
196
|
+
this._stickToPage = value;
|
|
197
|
+
}
|
|
198
|
+
set zoom(value) {
|
|
199
|
+
if (value <= 0) return;
|
|
200
|
+
this._zoom = value;
|
|
201
|
+
}
|
|
202
|
+
get zoom() {
|
|
203
|
+
return this._zoom;
|
|
204
|
+
}
|
|
205
|
+
set zoomScale(value) {
|
|
206
|
+
this._zoomScale = value;
|
|
207
|
+
}
|
|
208
|
+
get zoomScale() {
|
|
209
|
+
return this._zoomScale;
|
|
210
|
+
}
|
|
211
|
+
set rotation(value) {
|
|
212
|
+
if (!(typeof value === "number" && value % 90 === 0)) {
|
|
213
|
+
console.warn("Invalid pages rotation angle.");
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
this._rotation = value;
|
|
217
|
+
}
|
|
218
|
+
set externalLinkTarget(value) {
|
|
219
|
+
this._externalLinkTarget = value;
|
|
220
|
+
}
|
|
221
|
+
set autoresize(value) {
|
|
222
|
+
this._canAutoResize = Boolean(value);
|
|
223
|
+
}
|
|
224
|
+
set fitToPage(value) {
|
|
225
|
+
this._fitToPage = Boolean(value);
|
|
226
|
+
}
|
|
227
|
+
set showBorders(value) {
|
|
228
|
+
this._showBorders = Boolean(value);
|
|
229
|
+
}
|
|
230
|
+
static getLinkTarget(type) {
|
|
231
|
+
switch (type) {
|
|
232
|
+
case "blank": return PDFJSViewer.LinkTarget.BLANK;
|
|
233
|
+
case "none": return PDFJSViewer.LinkTarget.NONE;
|
|
234
|
+
case "self": return PDFJSViewer.LinkTarget.SELF;
|
|
235
|
+
case "parent": return PDFJSViewer.LinkTarget.PARENT;
|
|
236
|
+
case "top": return PDFJSViewer.LinkTarget.TOP;
|
|
237
|
+
}
|
|
238
|
+
return null;
|
|
239
|
+
}
|
|
240
|
+
constructor(element, ngZone) {
|
|
241
|
+
this.element = element;
|
|
242
|
+
this.ngZone = ngZone;
|
|
243
|
+
if (isSSR()) return;
|
|
244
|
+
let pdfWorkerSrc;
|
|
245
|
+
const pdfJsVersion = PDFJS.version;
|
|
246
|
+
const versionSpecificPdfWorkerUrl = window[`pdfWorkerSrc${pdfJsVersion}`];
|
|
247
|
+
if (versionSpecificPdfWorkerUrl) pdfWorkerSrc = versionSpecificPdfWorkerUrl;
|
|
248
|
+
else if (window.hasOwnProperty("pdfWorkerSrc") && typeof window.pdfWorkerSrc === "string" && window.pdfWorkerSrc) pdfWorkerSrc = window.pdfWorkerSrc;
|
|
249
|
+
else pdfWorkerSrc = `https://cdn.jsdelivr.net/npm/pdfjs-dist@${pdfJsVersion}/legacy/build/pdf.worker.min.mjs`;
|
|
250
|
+
assign(GlobalWorkerOptions, "workerSrc", pdfWorkerSrc);
|
|
251
|
+
}
|
|
252
|
+
ngAfterViewChecked() {
|
|
253
|
+
if (this.isInitialized) return;
|
|
254
|
+
const offset = this.pdfViewerContainer.nativeElement.offsetParent;
|
|
255
|
+
if (this.isVisible === true && offset == null) {
|
|
256
|
+
this.isVisible = false;
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
if (this.isVisible === false && offset != null) {
|
|
260
|
+
this.isVisible = true;
|
|
261
|
+
setTimeout(() => {
|
|
262
|
+
this.initialize();
|
|
263
|
+
this.ngOnChanges({ src: this.src });
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
ngOnInit() {
|
|
268
|
+
this.initialize();
|
|
269
|
+
this.setupResizeListener();
|
|
270
|
+
}
|
|
271
|
+
ngOnDestroy() {
|
|
272
|
+
this.clear();
|
|
273
|
+
this.destroy$.next();
|
|
274
|
+
this.loadingTask = null;
|
|
275
|
+
}
|
|
276
|
+
ngOnChanges(changes) {
|
|
277
|
+
if (isSSR() || !this.isVisible) return;
|
|
278
|
+
if ("src" in changes) this.loadPDF();
|
|
279
|
+
else if (this._pdf) {
|
|
280
|
+
if ("renderText" in changes || "showAll" in changes) {
|
|
281
|
+
this.setupViewer();
|
|
282
|
+
this.resetPdfDocument();
|
|
283
|
+
}
|
|
284
|
+
if ("page" in changes) {
|
|
285
|
+
const { page } = changes;
|
|
286
|
+
if (page.currentValue === this._latestScrolledPage) return;
|
|
287
|
+
this.pdfViewer.scrollPageIntoView({ pageNumber: this._page });
|
|
288
|
+
}
|
|
289
|
+
this.update();
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
updateSize() {
|
|
293
|
+
from(this._pdf.getPage(this.pdfViewer.currentPageNumber)).pipe(takeUntil(this.destroy$)).subscribe({ next: (page) => {
|
|
294
|
+
const rotation = this._rotation + page.rotate;
|
|
295
|
+
const viewportWidth = page.getViewport({
|
|
296
|
+
scale: this._zoom,
|
|
297
|
+
rotation
|
|
298
|
+
}).width * PdfViewerComponent.CSS_UNITS;
|
|
299
|
+
let scale = this._zoom;
|
|
300
|
+
let stickToPage = true;
|
|
301
|
+
if (!this._originalSize || this._fitToPage && viewportWidth > this.pdfViewerContainer.nativeElement.clientWidth) {
|
|
302
|
+
const viewPort = page.getViewport({
|
|
303
|
+
scale: 1,
|
|
304
|
+
rotation
|
|
305
|
+
});
|
|
306
|
+
scale = this.getScale(viewPort.width, viewPort.height);
|
|
307
|
+
stickToPage = !this._stickToPage;
|
|
308
|
+
}
|
|
309
|
+
this.pdfViewer.currentScale = scale;
|
|
310
|
+
if (stickToPage) this.pdfViewer.scrollPageIntoView({
|
|
311
|
+
pageNumber: page.pageNumber,
|
|
312
|
+
ignoreDestinationZoom: true
|
|
313
|
+
});
|
|
314
|
+
} });
|
|
315
|
+
}
|
|
316
|
+
clear() {
|
|
317
|
+
if (this.loadingTask && !this.loadingTask.destroyed) this.loadingTask.destroy();
|
|
318
|
+
if (this._pdf) {
|
|
319
|
+
this._latestScrolledPage = 0;
|
|
320
|
+
this._pdf.destroy();
|
|
321
|
+
this._pdf = void 0;
|
|
322
|
+
}
|
|
323
|
+
this.pdfViewer && this.pdfViewer.setDocument(null);
|
|
324
|
+
this.pdfLinkService && this.pdfLinkService.setDocument(null, null);
|
|
325
|
+
this.pdfFindController && this.pdfFindController.setDocument(null);
|
|
326
|
+
}
|
|
327
|
+
getPDFLinkServiceConfig() {
|
|
328
|
+
const linkTarget = PdfViewerComponent.getLinkTarget(this._externalLinkTarget);
|
|
329
|
+
if (linkTarget) return { externalLinkTarget: linkTarget };
|
|
330
|
+
return {};
|
|
331
|
+
}
|
|
332
|
+
initEventBus() {
|
|
333
|
+
this.eventBus = createEventBus(PDFJSViewer, this.destroy$);
|
|
334
|
+
fromEvent(this.eventBus, "pagerendered").pipe(takeUntil(this.destroy$)).subscribe((event) => {
|
|
335
|
+
this.pageRendered.emit(event);
|
|
336
|
+
});
|
|
337
|
+
fromEvent(this.eventBus, "pagesinit").pipe(takeUntil(this.destroy$)).subscribe((event) => {
|
|
338
|
+
this.pageInitialized.emit(event);
|
|
339
|
+
});
|
|
340
|
+
fromEvent(this.eventBus, "pagechanging").pipe(takeUntil(this.destroy$)).subscribe(({ pageNumber }) => {
|
|
341
|
+
if (this.pageScrollTimeout) clearTimeout(this.pageScrollTimeout);
|
|
342
|
+
this.pageScrollTimeout = window.setTimeout(() => {
|
|
343
|
+
this._latestScrolledPage = pageNumber;
|
|
344
|
+
this.pageChange.emit(pageNumber);
|
|
345
|
+
}, 100);
|
|
346
|
+
});
|
|
347
|
+
fromEvent(this.eventBus, "textlayerrendered").pipe(takeUntil(this.destroy$)).subscribe((event) => {
|
|
348
|
+
this.textLayerRendered.emit(event);
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
initPDFServices() {
|
|
352
|
+
this.pdfLinkService = new PDFJSViewer.PDFLinkService({
|
|
353
|
+
eventBus: this.eventBus,
|
|
354
|
+
...this.getPDFLinkServiceConfig()
|
|
355
|
+
});
|
|
356
|
+
this.pdfFindController = new PDFJSViewer.PDFFindController({
|
|
357
|
+
eventBus: this.eventBus,
|
|
358
|
+
linkService: this.pdfLinkService
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
getPDFOptions() {
|
|
362
|
+
return {
|
|
363
|
+
eventBus: this.eventBus,
|
|
364
|
+
container: this.element.nativeElement.querySelector("div"),
|
|
365
|
+
removePageBorders: !this._showBorders,
|
|
366
|
+
linkService: this.pdfLinkService,
|
|
367
|
+
textLayerMode: this._renderText ? this._renderTextMode : RenderTextMode.DISABLED,
|
|
368
|
+
findController: this.pdfFindController,
|
|
369
|
+
l10n: new PDFJSViewer.GenericL10n("en"),
|
|
370
|
+
imageResourcesPath: this._imageResourcesPath,
|
|
371
|
+
annotationEditorMode: PDFJS.AnnotationEditorType.DISABLE
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
setupViewer() {
|
|
375
|
+
if (this.pdfViewer) this.pdfViewer.setDocument(null);
|
|
376
|
+
assign(PDFJS, "disableTextLayer", !this._renderText);
|
|
377
|
+
this.initPDFServices();
|
|
378
|
+
if (this._showAll) this.pdfViewer = new PDFJSViewer.PDFViewer(this.getPDFOptions());
|
|
379
|
+
else this.pdfViewer = new PDFJSViewer.PDFSinglePageViewer(this.getPDFOptions());
|
|
380
|
+
this.pdfLinkService.setViewer(this.pdfViewer);
|
|
381
|
+
this.pdfViewer._currentPageNumber = this._page;
|
|
382
|
+
}
|
|
383
|
+
getValidPageNumber(page) {
|
|
384
|
+
if (page < 1) return 1;
|
|
385
|
+
if (page > this._pdf.numPages) return this._pdf.numPages;
|
|
386
|
+
return page;
|
|
387
|
+
}
|
|
388
|
+
getDocumentParams() {
|
|
389
|
+
const srcType = typeof this.src;
|
|
390
|
+
if (!this._cMapsUrl) return this.src;
|
|
391
|
+
const params = {
|
|
392
|
+
cMapUrl: this._cMapsUrl,
|
|
393
|
+
cMapPacked: true,
|
|
394
|
+
enableXfa: true
|
|
395
|
+
};
|
|
396
|
+
params.isEvalSupported = false;
|
|
397
|
+
if (srcType === "string") params.url = this.src;
|
|
398
|
+
else if (srcType === "object") {
|
|
399
|
+
if (this.src.byteLength !== void 0) params.data = this.src;
|
|
400
|
+
else Object.assign(params, this.src);
|
|
401
|
+
}
|
|
402
|
+
return params;
|
|
403
|
+
}
|
|
404
|
+
loadPDF() {
|
|
405
|
+
if (!this.src) return;
|
|
406
|
+
if (this.lastLoaded === this.src) {
|
|
407
|
+
this.update();
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
this.clear();
|
|
411
|
+
this.setupViewer();
|
|
412
|
+
this.loadingTask = getDocument(this.getDocumentParams());
|
|
413
|
+
this.loadingTask.onProgress = (progressData) => {
|
|
414
|
+
this.onProgress.emit(progressData);
|
|
415
|
+
};
|
|
416
|
+
const src = this.src;
|
|
417
|
+
from(this.loadingTask.promise).pipe(takeUntil(this.destroy$)).subscribe({
|
|
418
|
+
next: (pdf) => {
|
|
419
|
+
this._pdf = pdf;
|
|
420
|
+
this.lastLoaded = src;
|
|
421
|
+
this.afterLoadComplete.emit(pdf);
|
|
422
|
+
this.resetPdfDocument();
|
|
423
|
+
this.update();
|
|
424
|
+
},
|
|
425
|
+
error: (error) => {
|
|
426
|
+
this.lastLoaded = null;
|
|
427
|
+
this.onError.emit(error);
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
update() {
|
|
432
|
+
this.page = this._page;
|
|
433
|
+
this.render();
|
|
434
|
+
}
|
|
435
|
+
render() {
|
|
436
|
+
this._page = this.getValidPageNumber(this._page);
|
|
437
|
+
if (this._rotation !== 0 || this.pdfViewer.pagesRotation !== this._rotation) this.pdfViewer.firstPagePromise?.then(() => this.pdfViewer.pagesRotation = this._rotation);
|
|
438
|
+
if (this._stickToPage) setTimeout(() => {
|
|
439
|
+
this.pdfViewer.currentPageNumber = this._page;
|
|
440
|
+
});
|
|
441
|
+
if (!this.pdfViewer._pages?.length) {
|
|
442
|
+
const sub = this.pageInitialized.subscribe(() => {
|
|
443
|
+
this.updateSize();
|
|
444
|
+
sub.unsubscribe();
|
|
445
|
+
});
|
|
446
|
+
} else this.updateSize();
|
|
447
|
+
}
|
|
448
|
+
getScale(viewportWidth, viewportHeight) {
|
|
449
|
+
const borderSize = this._showBorders ? 2 * PdfViewerComponent.BORDER_WIDTH : 0;
|
|
450
|
+
const pdfContainerWidth = this.pdfViewerContainer.nativeElement.clientWidth - borderSize;
|
|
451
|
+
const pdfContainerHeight = this.pdfViewerContainer.nativeElement.clientHeight - borderSize;
|
|
452
|
+
if (pdfContainerHeight === 0 || viewportHeight === 0 || pdfContainerWidth === 0 || viewportWidth === 0) return 1;
|
|
453
|
+
let ratio = 1;
|
|
454
|
+
switch (this._zoomScale) {
|
|
455
|
+
case "page-fit":
|
|
456
|
+
ratio = Math.min(pdfContainerHeight / viewportHeight, pdfContainerWidth / viewportWidth);
|
|
457
|
+
break;
|
|
458
|
+
case "page-height":
|
|
459
|
+
ratio = pdfContainerHeight / viewportHeight;
|
|
460
|
+
break;
|
|
461
|
+
default: ratio = pdfContainerWidth / viewportWidth;
|
|
462
|
+
}
|
|
463
|
+
return this._zoom * ratio / PdfViewerComponent.CSS_UNITS;
|
|
464
|
+
}
|
|
465
|
+
resetPdfDocument() {
|
|
466
|
+
this.pdfLinkService.setDocument(this._pdf, null);
|
|
467
|
+
this.pdfFindController.setDocument(this._pdf);
|
|
468
|
+
this.pdfViewer.setDocument(this._pdf);
|
|
469
|
+
}
|
|
470
|
+
initialize() {
|
|
471
|
+
if (isSSR() || !this.isVisible) return;
|
|
472
|
+
this.isInitialized = true;
|
|
473
|
+
this.initEventBus();
|
|
474
|
+
this.setupViewer();
|
|
475
|
+
}
|
|
476
|
+
setupResizeListener() {
|
|
477
|
+
if (isSSR()) return;
|
|
478
|
+
this.ngZone.runOutsideAngular(() => {
|
|
479
|
+
fromEvent(window, "resize").pipe(debounceTime(100), filter(() => this._canAutoResize && !!this._pdf), takeUntil(this.destroy$)).subscribe(() => {
|
|
480
|
+
this.updateSize();
|
|
481
|
+
});
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
485
|
+
minVersion: "12.0.0",
|
|
486
|
+
version: "22.3.0",
|
|
487
|
+
ngImport: i0,
|
|
488
|
+
type: PdfViewerComponent,
|
|
489
|
+
deps: [{ token: i0.ElementRef }, { token: i0.NgZone }],
|
|
490
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
491
|
+
});
|
|
492
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
493
|
+
minVersion: "14.0.0",
|
|
494
|
+
version: "22.3.0",
|
|
495
|
+
type: PdfViewerComponent,
|
|
496
|
+
isStandalone: false,
|
|
497
|
+
selector: "pdf-viewer",
|
|
498
|
+
inputs: {
|
|
499
|
+
src: "src",
|
|
500
|
+
cMapsUrl: ["c-maps-url", "cMapsUrl"],
|
|
501
|
+
page: "page",
|
|
502
|
+
renderText: ["render-text", "renderText"],
|
|
503
|
+
renderTextMode: ["render-text-mode", "renderTextMode"],
|
|
504
|
+
originalSize: ["original-size", "originalSize"],
|
|
505
|
+
showAll: ["show-all", "showAll"],
|
|
506
|
+
stickToPage: ["stick-to-page", "stickToPage"],
|
|
507
|
+
zoom: "zoom",
|
|
508
|
+
zoomScale: ["zoom-scale", "zoomScale"],
|
|
509
|
+
rotation: "rotation",
|
|
510
|
+
externalLinkTarget: ["external-link-target", "externalLinkTarget"],
|
|
511
|
+
autoresize: "autoresize",
|
|
512
|
+
fitToPage: ["fit-to-page", "fitToPage"],
|
|
513
|
+
showBorders: ["show-borders", "showBorders"]
|
|
514
|
+
},
|
|
515
|
+
outputs: {
|
|
516
|
+
afterLoadComplete: "after-load-complete",
|
|
517
|
+
pageRendered: "page-rendered",
|
|
518
|
+
pageInitialized: "pages-initialized",
|
|
519
|
+
textLayerRendered: "text-layer-rendered",
|
|
520
|
+
onError: "error",
|
|
521
|
+
onProgress: "on-progress",
|
|
522
|
+
pageChange: "pageChange"
|
|
523
|
+
},
|
|
524
|
+
viewQueries: [{
|
|
525
|
+
propertyName: "pdfViewerContainer",
|
|
526
|
+
first: true,
|
|
527
|
+
predicate: ["pdfViewerContainer"],
|
|
528
|
+
descendants: true
|
|
529
|
+
}],
|
|
530
|
+
usesOnChanges: true,
|
|
531
|
+
ngImport: i0,
|
|
532
|
+
template: `
|
|
533
|
+
<div #pdfViewerContainer class="ng2-pdf-viewer-container">
|
|
534
|
+
<div class="pdfViewer"></div>
|
|
535
|
+
</div>
|
|
536
|
+
`,
|
|
537
|
+
isInline: true,
|
|
538
|
+
styles: [".ng2-pdf-viewer-container{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}:host{display:block;position:relative}:host ::ng-deep{--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--viewer-container-height: 0;--annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--xfa-unfocused-field-background: var( --annotation-unfocused-field-background );--page-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=) 9 9 repeat;--scale-factor: 1;--focus-outline: solid 2px blue;--hover-outline: dashed 2px blue;--freetext-line-height: 1.35;--freetext-padding: 2px;--editorInk-editing-cursor: pointer}@media screen and (forced-colors:active){:host ::ng-deep{--pdfViewer-padding-bottom: 9px;--page-margin: 8px auto -1px;--page-border: 1px solid CanvasText;--page-border-image: none;--spreadHorizontalWrapped-margin-LR: 3.5px}}@media(forced-colors:active){:host ::ng-deep{--focus-outline: solid 3px ButtonText;--hover-outline: dashed 3px ButtonText}}:host ::ng-deep .textLayer{position:absolute;text-align:initial;inset:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0}:host ::ng-deep .textLayer span,:host ::ng-deep .textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}:host ::ng-deep .textLayer span.markedContent{top:0;height:0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.appended{position:initial}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer br::-moz-selection{background:transparent}:host ::ng-deep .textLayer br::selection{background:transparent}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}@media(forced-colors:active){:host ::ng-deep .annotationLayer .textWidgetAnnotation input:required,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:required,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:required,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:required,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid selectedItem}}:host ::ng-deep .annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0}:host ::ng-deep .annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}:host ::ng-deep .annotationLayer .linkAnnotation>a,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>canvas{width:100%;height:100%}:host ::ng-deep .annotationLayer .linkAnnotation>a:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%}:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:required,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:required,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:required,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:required,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid red}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{resize:none}:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled],:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid rgb(0,0,0)}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}:host ::ng-deep .annotationLayer .textWidgetAnnotation input :focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea :focus,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select :focus,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox :focus,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:\"\";display:block;position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none}:host ::ng-deep .annotationLayer .popupTriggerArea{height:100%;width:100%}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}:host ::ng-deep .annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}:host ::ng-deep .annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}:host ::ng-deep .annotationLayer .popup h1{display:inline-block}:host ::ng-deep .annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}:host ::ng-deep .annotationLayer .popupContent{border-top:1px solid rgb(51,51,51);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}:host ::ng-deep .annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .freeTextAnnotation,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .caretAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation{cursor:pointer}:host ::ng-deep .annotationLayer section svg{position:absolute;width:100%;height:100%}:host ::ng-deep .annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}:host ::ng-deep .annotationLayer .annotationTextContent span{width:100%;display:inline-block}@media(forced-colors:active){:host ::ng-deep .xfaLayer *:required{outline:1.5px solid selectedItem}}:host ::ng-deep .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}:host ::ng-deep .xfaLayer .highlight.appended{position:initial}:host ::ng-deep .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .xfaLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .xfaLayer .highlight.middle{border-radius:0}:host ::ng-deep .xfaLayer .highlight.selected{background-color:#cbdfcb}:host ::ng-deep .xfaLayer ::-moz-selection{background:#00f}:host ::ng-deep .xfaLayer ::selection{background:#00f}:host ::ng-deep .xfaPage{overflow:hidden;position:relative}:host ::ng-deep .xfaContentarea{position:absolute}:host ::ng-deep .xfaPrintOnly{display:none}:host ::ng-deep .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}:host ::ng-deep .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}:host ::ng-deep .xfaLayer *:required{outline:1.5px solid red}:host ::ng-deep .xfaLayer div{pointer-events:none}:host ::ng-deep .xfaLayer svg{pointer-events:none}:host ::ng-deep .xfaLayer svg *{pointer-events:none}:host ::ng-deep .xfaLayer a{color:#00f}:host ::ng-deep .xfaRich li{margin-left:3em}:host ::ng-deep .xfaFont{color:#000;font-weight:400;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}:host ::ng-deep .xfaCaption{overflow:hidden;flex:0 0 auto}:host ::ng-deep .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}:host ::ng-deep .xfaLabel{height:100%;width:100%}:host ::ng-deep .xfaLeft{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}:host ::ng-deep .xfaLeft>.xfaCaption,:host ::ng-deep .xfaLeft>.xfaCaptionForCheckButton,:host ::ng-deep .xfaRight>.xfaCaption,:host ::ng-deep .xfaRight>.xfaCaptionForCheckButton{max-height:100%}:host ::ng-deep .xfaTop{display:flex;flex-direction:column;align-items:flex-start}:host ::ng-deep .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}:host ::ng-deep .xfaTop>.xfaCaption,:host ::ng-deep .xfaTop>.xfaCaptionForCheckButton,:host ::ng-deep .xfaBottom>.xfaCaption,:host ::ng-deep .xfaBottom>.xfaCaptionForCheckButton{width:100%}:host ::ng-deep .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}:host ::ng-deep .xfaWrapped{width:100%;height:100%}:host ::ng-deep .xfaTextfield:focus,:host ::ng-deep .xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}:host ::ng-deep .xfaCheckbox:focus,:host ::ng-deep .xfaRadio:focus{outline:auto}:host ::ng-deep .xfaTextfield,:host ::ng-deep .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}:host ::ng-deep .xfaTop>.xfaTextfield,:host ::ng-deep .xfaTop>.xfaSelect,:host ::ng-deep .xfaBottom>.xfaTextfield,:host ::ng-deep .xfaBottom>.xfaSelect{flex:0 1 auto}:host ::ng-deep .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}:host ::ng-deep .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}:host ::ng-deep .xfaCheckbox,:host ::ng-deep .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}:host ::ng-deep .xfaRich{white-space:pre-wrap;width:100%;height:100%}:host ::ng-deep .xfaImage{-o-object-position:left top;object-position:left top;-o-object-fit:contain;object-fit:contain;width:100%;height:100%}:host ::ng-deep .xfaLrTb,:host ::ng-deep .xfaRlTb,:host ::ng-deep .xfaTb{display:flex;flex-direction:column;align-items:stretch}:host ::ng-deep .xfaLr{display:flex;flex-direction:row;align-items:stretch}:host ::ng-deep .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}:host ::ng-deep .xfaTb>div{justify-content:left}:host ::ng-deep .xfaPosition{position:relative}:host ::ng-deep .xfaArea{position:relative}:host ::ng-deep .xfaValignMiddle{display:flex;align-items:center}:host ::ng-deep .xfaTable{display:flex;flex-direction:column;align-items:stretch}:host ::ng-deep .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}:host ::ng-deep .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}:host ::ng-deep .xfaTable .xfaRlRow>div{flex:1}:host ::ng-deep .xfaNonInteractive input,:host ::ng-deep .xfaNonInteractive textarea,:host ::ng-deep .xfaDisabled input,:host ::ng-deep .xfaDisabled textarea,:host ::ng-deep .xfaReadOnly input,:host ::ng-deep .xfaReadOnly textarea{background:initial}@media print{:host ::ng-deep .xfaTextfield,:host ::ng-deep .xfaSelect{background:transparent}:host ::ng-deep .xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:\"\"}}:host ::ng-deep [data-editor-rotation=\"90\"]{transform:rotate(90deg)}:host ::ng-deep [data-editor-rotation=\"180\"]{transform:rotate(180deg)}:host ::ng-deep [data-editor-rotation=\"270\"]{transform:rotate(270deg)}:host ::ng-deep .annotationEditorLayer{background:transparent;position:absolute;top:0;left:0;font-size:calc(100px * var(--scale-factor));transform-origin:0 0}:host ::ng-deep .annotationEditorLayer .selectedEditor{outline:var(--focus-outline);resize:none}:host ::ng-deep .annotationEditorLayer .freeTextEditor{position:absolute;background:transparent;border-radius:3px;padding:calc(var(--freetext-padding) * var(--scale-factor));resize:none;width:auto;height:auto;z-index:1;transform-origin:0 0;touch-action:none}:host ::ng-deep .annotationEditorLayer .freeTextEditor .internal{background:transparent;border:none;top:0;left:0;overflow:visible;white-space:nowrap;resize:none;font:10px sans-serif;line-height:var(--freetext-line-height)}:host ::ng-deep .annotationEditorLayer .freeTextEditor .overlay{position:absolute;display:none;background:transparent;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationEditorLayer .freeTextEditor .overlay.enabled{display:block}:host ::ng-deep .annotationEditorLayer .freeTextEditor .internal:empty:before{content:attr(default-content);color:gray}:host ::ng-deep .annotationEditorLayer .freeTextEditor .internal:focus{outline:none}:host ::ng-deep .annotationEditorLayer .inkEditor.disabled{resize:none}:host ::ng-deep .annotationEditorLayer .inkEditor.disabled.selectedEditor{resize:horizontal}:host ::ng-deep .annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),:host ::ng-deep .annotationEditorLayer .inkEditor:hover:not(.selectedEditor){outline:var(--hover-outline)}:host ::ng-deep .annotationEditorLayer .inkEditor{position:absolute;background:transparent;border-radius:3px;overflow:auto;width:100%;height:100%;z-index:1;transform-origin:0 0;cursor:auto}:host ::ng-deep .annotationEditorLayer .inkEditor.editing{resize:none;cursor:var(--editorInk-editing-cursor),pointer}:host ::ng-deep .annotationEditorLayer .inkEditor .inkEditorCanvas{position:absolute;top:0;left:0;width:100%;height:100%;touch-action:none}:host ::ng-deep [data-main-rotation=\"90\"]{transform:rotate(90deg) translateY(-100%)}:host ::ng-deep [data-main-rotation=\"180\"]{transform:rotate(180deg) translate(-100%,-100%)}:host ::ng-deep [data-main-rotation=\"270\"]{transform:rotate(270deg) translate(-100%)}:host ::ng-deep .pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .canvasWrapper canvas{width:100%}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);-o-border-image:var(--page-border-image);border-image:var(--page-border-image);background-clip:content-box;background-color:#fff}:host ::ng-deep .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped,:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .spread .page,:host ::ng-deep .spread .dummyPage,:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}:host ::ng-deep .spread .page,:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}:host ::ng-deep .pdfViewer.removePageBorders .spread .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;inset:0;background:url(data:image/gif;base64,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) center no-repeat}:host ::ng-deep .pdfViewer .page .loadingIcon.notVisible{background:none}:host ::ng-deep .pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;cursor:not-allowed}:host ::ng-deep .pdfPresentationMode .pdfViewer{padding-bottom:0}:host ::ng-deep .pdfPresentationMode .spread{margin:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}\n"],
|
|
539
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
540
|
+
});
|
|
541
|
+
};
|
|
542
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
543
|
+
minVersion: "12.0.0",
|
|
544
|
+
version: "22.3.0",
|
|
545
|
+
ngImport: i0,
|
|
546
|
+
type: PdfViewerComponent,
|
|
547
|
+
decorators: [{
|
|
548
|
+
type: Component,
|
|
549
|
+
args: [{
|
|
550
|
+
selector: "pdf-viewer",
|
|
551
|
+
template: `
|
|
552
|
+
<div #pdfViewerContainer class="ng2-pdf-viewer-container">
|
|
553
|
+
<div class="pdfViewer"></div>
|
|
554
|
+
</div>
|
|
555
|
+
`,
|
|
556
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
557
|
+
standalone: false,
|
|
558
|
+
styles: [".ng2-pdf-viewer-container{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}:host{display:block;position:relative}:host ::ng-deep{--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--viewer-container-height: 0;--annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--xfa-unfocused-field-background: var( --annotation-unfocused-field-background );--page-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=) 9 9 repeat;--scale-factor: 1;--focus-outline: solid 2px blue;--hover-outline: dashed 2px blue;--freetext-line-height: 1.35;--freetext-padding: 2px;--editorInk-editing-cursor: pointer}@media screen and (forced-colors:active){:host ::ng-deep{--pdfViewer-padding-bottom: 9px;--page-margin: 8px auto -1px;--page-border: 1px solid CanvasText;--page-border-image: none;--spreadHorizontalWrapped-margin-LR: 3.5px}}@media(forced-colors:active){:host ::ng-deep{--focus-outline: solid 3px ButtonText;--hover-outline: dashed 3px ButtonText}}:host ::ng-deep .textLayer{position:absolute;text-align:initial;inset:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0}:host ::ng-deep .textLayer span,:host ::ng-deep .textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}:host ::ng-deep .textLayer span.markedContent{top:0;height:0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.appended{position:initial}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer br::-moz-selection{background:transparent}:host ::ng-deep .textLayer br::selection{background:transparent}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}@media(forced-colors:active){:host ::ng-deep .annotationLayer .textWidgetAnnotation input:required,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:required,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:required,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:required,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid selectedItem}}:host ::ng-deep .annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0}:host ::ng-deep .annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}:host ::ng-deep .annotationLayer .linkAnnotation>a,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>canvas{width:100%;height:100%}:host ::ng-deep .annotationLayer .linkAnnotation>a:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%}:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:required,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:required,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:required,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:required,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid red}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{resize:none}:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled],:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid rgb(0,0,0)}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}:host ::ng-deep .annotationLayer .textWidgetAnnotation input :focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea :focus,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select :focus,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox :focus,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:\"\";display:block;position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none}:host ::ng-deep .annotationLayer .popupTriggerArea{height:100%;width:100%}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}:host ::ng-deep .annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}:host ::ng-deep .annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}:host ::ng-deep .annotationLayer .popup h1{display:inline-block}:host ::ng-deep .annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}:host ::ng-deep .annotationLayer .popupContent{border-top:1px solid rgb(51,51,51);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}:host ::ng-deep .annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .freeTextAnnotation,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .caretAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation{cursor:pointer}:host ::ng-deep .annotationLayer section svg{position:absolute;width:100%;height:100%}:host ::ng-deep .annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}:host ::ng-deep .annotationLayer .annotationTextContent span{width:100%;display:inline-block}@media(forced-colors:active){:host ::ng-deep .xfaLayer *:required{outline:1.5px solid selectedItem}}:host ::ng-deep .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}:host ::ng-deep .xfaLayer .highlight.appended{position:initial}:host ::ng-deep .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .xfaLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .xfaLayer .highlight.middle{border-radius:0}:host ::ng-deep .xfaLayer .highlight.selected{background-color:#cbdfcb}:host ::ng-deep .xfaLayer ::-moz-selection{background:#00f}:host ::ng-deep .xfaLayer ::selection{background:#00f}:host ::ng-deep .xfaPage{overflow:hidden;position:relative}:host ::ng-deep .xfaContentarea{position:absolute}:host ::ng-deep .xfaPrintOnly{display:none}:host ::ng-deep .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}:host ::ng-deep .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}:host ::ng-deep .xfaLayer *:required{outline:1.5px solid red}:host ::ng-deep .xfaLayer div{pointer-events:none}:host ::ng-deep .xfaLayer svg{pointer-events:none}:host ::ng-deep .xfaLayer svg *{pointer-events:none}:host ::ng-deep .xfaLayer a{color:#00f}:host ::ng-deep .xfaRich li{margin-left:3em}:host ::ng-deep .xfaFont{color:#000;font-weight:400;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}:host ::ng-deep .xfaCaption{overflow:hidden;flex:0 0 auto}:host ::ng-deep .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}:host ::ng-deep .xfaLabel{height:100%;width:100%}:host ::ng-deep .xfaLeft{display:flex;flex-direction:row;align-items:center}:host ::ng-deep .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}:host ::ng-deep .xfaLeft>.xfaCaption,:host ::ng-deep .xfaLeft>.xfaCaptionForCheckButton,:host ::ng-deep .xfaRight>.xfaCaption,:host ::ng-deep .xfaRight>.xfaCaptionForCheckButton{max-height:100%}:host ::ng-deep .xfaTop{display:flex;flex-direction:column;align-items:flex-start}:host ::ng-deep .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}:host ::ng-deep .xfaTop>.xfaCaption,:host ::ng-deep .xfaTop>.xfaCaptionForCheckButton,:host ::ng-deep .xfaBottom>.xfaCaption,:host ::ng-deep .xfaBottom>.xfaCaptionForCheckButton{width:100%}:host ::ng-deep .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}:host ::ng-deep .xfaWrapped{width:100%;height:100%}:host ::ng-deep .xfaTextfield:focus,:host ::ng-deep .xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}:host ::ng-deep .xfaCheckbox:focus,:host ::ng-deep .xfaRadio:focus{outline:auto}:host ::ng-deep .xfaTextfield,:host ::ng-deep .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}:host ::ng-deep .xfaTop>.xfaTextfield,:host ::ng-deep .xfaTop>.xfaSelect,:host ::ng-deep .xfaBottom>.xfaTextfield,:host ::ng-deep .xfaBottom>.xfaSelect{flex:0 1 auto}:host ::ng-deep .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}:host ::ng-deep .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}:host ::ng-deep .xfaCheckbox,:host ::ng-deep .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}:host ::ng-deep .xfaRich{white-space:pre-wrap;width:100%;height:100%}:host ::ng-deep .xfaImage{-o-object-position:left top;object-position:left top;-o-object-fit:contain;object-fit:contain;width:100%;height:100%}:host ::ng-deep .xfaLrTb,:host ::ng-deep .xfaRlTb,:host ::ng-deep .xfaTb{display:flex;flex-direction:column;align-items:stretch}:host ::ng-deep .xfaLr{display:flex;flex-direction:row;align-items:stretch}:host ::ng-deep .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}:host ::ng-deep .xfaTb>div{justify-content:left}:host ::ng-deep .xfaPosition{position:relative}:host ::ng-deep .xfaArea{position:relative}:host ::ng-deep .xfaValignMiddle{display:flex;align-items:center}:host ::ng-deep .xfaTable{display:flex;flex-direction:column;align-items:stretch}:host ::ng-deep .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}:host ::ng-deep .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}:host ::ng-deep .xfaTable .xfaRlRow>div{flex:1}:host ::ng-deep .xfaNonInteractive input,:host ::ng-deep .xfaNonInteractive textarea,:host ::ng-deep .xfaDisabled input,:host ::ng-deep .xfaDisabled textarea,:host ::ng-deep .xfaReadOnly input,:host ::ng-deep .xfaReadOnly textarea{background:initial}@media print{:host ::ng-deep .xfaTextfield,:host ::ng-deep .xfaSelect{background:transparent}:host ::ng-deep .xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:\"\"}}:host ::ng-deep [data-editor-rotation=\"90\"]{transform:rotate(90deg)}:host ::ng-deep [data-editor-rotation=\"180\"]{transform:rotate(180deg)}:host ::ng-deep [data-editor-rotation=\"270\"]{transform:rotate(270deg)}:host ::ng-deep .annotationEditorLayer{background:transparent;position:absolute;top:0;left:0;font-size:calc(100px * var(--scale-factor));transform-origin:0 0}:host ::ng-deep .annotationEditorLayer .selectedEditor{outline:var(--focus-outline);resize:none}:host ::ng-deep .annotationEditorLayer .freeTextEditor{position:absolute;background:transparent;border-radius:3px;padding:calc(var(--freetext-padding) * var(--scale-factor));resize:none;width:auto;height:auto;z-index:1;transform-origin:0 0;touch-action:none}:host ::ng-deep .annotationEditorLayer .freeTextEditor .internal{background:transparent;border:none;top:0;left:0;overflow:visible;white-space:nowrap;resize:none;font:10px sans-serif;line-height:var(--freetext-line-height)}:host ::ng-deep .annotationEditorLayer .freeTextEditor .overlay{position:absolute;display:none;background:transparent;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationEditorLayer .freeTextEditor .overlay.enabled{display:block}:host ::ng-deep .annotationEditorLayer .freeTextEditor .internal:empty:before{content:attr(default-content);color:gray}:host ::ng-deep .annotationEditorLayer .freeTextEditor .internal:focus{outline:none}:host ::ng-deep .annotationEditorLayer .inkEditor.disabled{resize:none}:host ::ng-deep .annotationEditorLayer .inkEditor.disabled.selectedEditor{resize:horizontal}:host ::ng-deep .annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),:host ::ng-deep .annotationEditorLayer .inkEditor:hover:not(.selectedEditor){outline:var(--hover-outline)}:host ::ng-deep .annotationEditorLayer .inkEditor{position:absolute;background:transparent;border-radius:3px;overflow:auto;width:100%;height:100%;z-index:1;transform-origin:0 0;cursor:auto}:host ::ng-deep .annotationEditorLayer .inkEditor.editing{resize:none;cursor:var(--editorInk-editing-cursor),pointer}:host ::ng-deep .annotationEditorLayer .inkEditor .inkEditorCanvas{position:absolute;top:0;left:0;width:100%;height:100%;touch-action:none}:host ::ng-deep [data-main-rotation=\"90\"]{transform:rotate(90deg) translateY(-100%)}:host ::ng-deep [data-main-rotation=\"180\"]{transform:rotate(180deg) translate(-100%,-100%)}:host ::ng-deep [data-main-rotation=\"270\"]{transform:rotate(270deg) translate(-100%)}:host ::ng-deep .pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .canvasWrapper canvas{width:100%}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);-o-border-image:var(--page-border-image);border-image:var(--page-border-image);background-clip:content-box;background-color:#fff}:host ::ng-deep .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped,:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .spread .page,:host ::ng-deep .spread .dummyPage,:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}:host ::ng-deep .spread .page,:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}:host ::ng-deep .pdfViewer.removePageBorders .spread .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;inset:0;background:url(data:image/gif;base64,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) center no-repeat}:host ::ng-deep .pdfViewer .page .loadingIcon.notVisible{background:none}:host ::ng-deep .pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;cursor:not-allowed}:host ::ng-deep .pdfPresentationMode .pdfViewer{padding-bottom:0}:host ::ng-deep .pdfPresentationMode .spread{margin:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}\n"]
|
|
559
|
+
}]
|
|
560
|
+
}],
|
|
561
|
+
ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }],
|
|
562
|
+
propDecorators: {
|
|
563
|
+
pdfViewerContainer: [{
|
|
564
|
+
type: ViewChild,
|
|
565
|
+
args: ["pdfViewerContainer"]
|
|
566
|
+
}],
|
|
567
|
+
afterLoadComplete: [{
|
|
568
|
+
type: Output,
|
|
569
|
+
args: ["after-load-complete"]
|
|
570
|
+
}],
|
|
571
|
+
pageRendered: [{
|
|
572
|
+
type: Output,
|
|
573
|
+
args: ["page-rendered"]
|
|
574
|
+
}],
|
|
575
|
+
pageInitialized: [{
|
|
576
|
+
type: Output,
|
|
577
|
+
args: ["pages-initialized"]
|
|
578
|
+
}],
|
|
579
|
+
textLayerRendered: [{
|
|
580
|
+
type: Output,
|
|
581
|
+
args: ["text-layer-rendered"]
|
|
582
|
+
}],
|
|
583
|
+
onError: [{
|
|
584
|
+
type: Output,
|
|
585
|
+
args: ["error"]
|
|
586
|
+
}],
|
|
587
|
+
onProgress: [{
|
|
588
|
+
type: Output,
|
|
589
|
+
args: ["on-progress"]
|
|
590
|
+
}],
|
|
591
|
+
pageChange: [{ type: Output }],
|
|
592
|
+
src: [{ type: Input }],
|
|
593
|
+
cMapsUrl: [{
|
|
594
|
+
type: Input,
|
|
595
|
+
args: ["c-maps-url"]
|
|
596
|
+
}],
|
|
597
|
+
page: [{
|
|
598
|
+
type: Input,
|
|
599
|
+
args: ["page"]
|
|
600
|
+
}],
|
|
601
|
+
renderText: [{
|
|
602
|
+
type: Input,
|
|
603
|
+
args: ["render-text"]
|
|
604
|
+
}],
|
|
605
|
+
renderTextMode: [{
|
|
606
|
+
type: Input,
|
|
607
|
+
args: ["render-text-mode"]
|
|
608
|
+
}],
|
|
609
|
+
originalSize: [{
|
|
610
|
+
type: Input,
|
|
611
|
+
args: ["original-size"]
|
|
612
|
+
}],
|
|
613
|
+
showAll: [{
|
|
614
|
+
type: Input,
|
|
615
|
+
args: ["show-all"]
|
|
616
|
+
}],
|
|
617
|
+
stickToPage: [{
|
|
618
|
+
type: Input,
|
|
619
|
+
args: ["stick-to-page"]
|
|
620
|
+
}],
|
|
621
|
+
zoom: [{
|
|
622
|
+
type: Input,
|
|
623
|
+
args: ["zoom"]
|
|
624
|
+
}],
|
|
625
|
+
zoomScale: [{
|
|
626
|
+
type: Input,
|
|
627
|
+
args: ["zoom-scale"]
|
|
628
|
+
}],
|
|
629
|
+
rotation: [{
|
|
630
|
+
type: Input,
|
|
631
|
+
args: ["rotation"]
|
|
632
|
+
}],
|
|
633
|
+
externalLinkTarget: [{
|
|
634
|
+
type: Input,
|
|
635
|
+
args: ["external-link-target"]
|
|
636
|
+
}],
|
|
637
|
+
autoresize: [{
|
|
638
|
+
type: Input,
|
|
639
|
+
args: ["autoresize"]
|
|
640
|
+
}],
|
|
641
|
+
fitToPage: [{
|
|
642
|
+
type: Input,
|
|
643
|
+
args: ["fit-to-page"]
|
|
644
|
+
}],
|
|
645
|
+
showBorders: [{
|
|
646
|
+
type: Input,
|
|
647
|
+
args: ["show-borders"]
|
|
648
|
+
}]
|
|
649
|
+
}
|
|
650
|
+
});
|
|
651
|
+
var PdfViewerModule = class PdfViewerModule {
|
|
652
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
653
|
+
minVersion: "12.0.0",
|
|
654
|
+
version: "22.3.0",
|
|
655
|
+
ngImport: i0,
|
|
656
|
+
type: PdfViewerModule,
|
|
657
|
+
deps: [],
|
|
658
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
659
|
+
});
|
|
660
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
661
|
+
minVersion: "14.0.0",
|
|
662
|
+
version: "22.3.0",
|
|
663
|
+
ngImport: i0,
|
|
664
|
+
type: PdfViewerModule,
|
|
665
|
+
declarations: [PdfViewerComponent],
|
|
666
|
+
exports: [PdfViewerComponent]
|
|
667
|
+
});
|
|
668
|
+
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
669
|
+
minVersion: "12.0.0",
|
|
670
|
+
version: "22.3.0",
|
|
671
|
+
ngImport: i0,
|
|
672
|
+
type: PdfViewerModule
|
|
673
|
+
});
|
|
674
|
+
};
|
|
675
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
676
|
+
minVersion: "12.0.0",
|
|
677
|
+
version: "22.3.0",
|
|
678
|
+
ngImport: i0,
|
|
679
|
+
type: PdfViewerModule,
|
|
680
|
+
decorators: [{
|
|
681
|
+
type: NgModule,
|
|
682
|
+
args: [{
|
|
683
|
+
declarations: [PdfViewerComponent],
|
|
684
|
+
exports: [PdfViewerComponent]
|
|
685
|
+
}]
|
|
686
|
+
}]
|
|
687
|
+
});
|
|
688
|
+
export { PdfViewerComponent, PdfViewerModule, RenderTextMode };
|
|
689
|
+
|
|
690
|
+
//# sourceMappingURL=solidexpert-ngx-pdf-viewer.mjs.map
|