pdfjs-serverless 0.4.1 → 0.5.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.
Files changed (51) hide show
  1. package/README.md +1 -1
  2. package/dist/index.mjs +1 -1
  3. package/dist/types/src/display/annotation_layer.d.ts +10 -3
  4. package/dist/types/src/display/annotation_storage.d.ts +1 -0
  5. package/dist/types/src/display/api.d.ts +49 -22
  6. package/dist/types/src/display/base_factory.d.ts +3 -1
  7. package/dist/types/src/display/canvas.d.ts +2 -0
  8. package/dist/types/src/display/display_utils.d.ts +4 -3
  9. package/dist/types/src/display/draw_layer.d.ts +12 -14
  10. package/dist/types/src/display/editor/alt_text.d.ts +1 -0
  11. package/dist/types/src/display/editor/annotation_editor_layer.d.ts +13 -12
  12. package/dist/types/src/display/editor/color_picker.d.ts +2 -2
  13. package/dist/types/src/display/editor/editor.d.ts +50 -2
  14. package/dist/types/src/display/editor/freetext.d.ts +6 -1
  15. package/dist/types/src/display/editor/highlight.d.ts +38 -4
  16. package/dist/types/src/display/editor/ink.d.ts +4 -4
  17. package/dist/types/src/display/editor/outliner.d.ts +53 -9
  18. package/dist/types/src/display/editor/stamp.d.ts +1 -1
  19. package/dist/types/src/display/editor/toolbar.d.ts +7 -1
  20. package/dist/types/src/display/editor/tools.d.ts +37 -4
  21. package/dist/types/src/display/fetch_stream.d.ts +3 -4
  22. package/dist/types/src/display/font_loader.d.ts +1 -5
  23. package/dist/types/src/display/network.d.ts +2 -3
  24. package/dist/types/src/display/node_stream.d.ts +4 -5
  25. package/dist/types/src/display/node_utils.d.ts +6 -5
  26. package/dist/types/src/display/optional_content_config.d.ts +6 -1
  27. package/dist/types/src/display/text_layer.d.ts +40 -108
  28. package/dist/types/src/display/transport_stream.d.ts +3 -7
  29. package/dist/types/src/display/worker_options.d.ts +20 -22
  30. package/dist/types/src/pdf.d.ts +2 -3
  31. package/dist/types/src/shared/util.d.ts +19 -22
  32. package/dist/types/web/annotation_editor_layer_builder.d.ts +6 -13
  33. package/dist/types/web/annotation_layer_builder.d.ts +7 -4
  34. package/dist/types/web/app_options.d.ts +1 -2
  35. package/dist/types/web/genericl10n.d.ts +5 -3
  36. package/dist/types/web/interfaces.d.ts +8 -5
  37. package/dist/types/web/l10n.d.ts +3 -2
  38. package/dist/types/web/pdf_find_controller.d.ts +1 -2
  39. package/dist/types/web/pdf_history.d.ts +1 -53
  40. package/dist/types/web/pdf_link_service.d.ts +4 -107
  41. package/dist/types/web/pdf_page_view.d.ts +3 -15
  42. package/dist/types/web/pdf_scripting_manager.d.ts +0 -4
  43. package/dist/types/web/pdf_thumbnail_view.d.ts +1 -13
  44. package/dist/types/web/pdf_thumbnail_viewer.d.ts +0 -16
  45. package/dist/types/web/pdf_viewer.component.d.ts +1 -2
  46. package/dist/types/web/pdf_viewer.d.ts +38 -29
  47. package/dist/types/web/text_accessibility.d.ts +1 -1
  48. package/dist/types/web/text_highlighter.d.ts +1 -1
  49. package/dist/types/web/text_layer_builder.d.ts +17 -29
  50. package/package.json +14 -14
  51. package/dist/types/web/l10n_utils.d.ts +0 -9
@@ -40,6 +40,9 @@ export namespace AnnotationEditorParamsType {
40
40
  let INK_OPACITY: number;
41
41
  let HIGHLIGHT_COLOR: number;
42
42
  let HIGHLIGHT_DEFAULT_COLOR: number;
43
+ let HIGHLIGHT_THICKNESS: number;
44
+ let HIGHLIGHT_FREE: number;
45
+ let HIGHLIGHT_SHOW_ALL: number;
43
46
  }
44
47
  export const AnnotationEditorPrefix: "pdfjs_internal_editor_";
45
48
  export namespace AnnotationEditorType {
@@ -165,6 +168,17 @@ export class FeatureTest {
165
168
  static get isCSSRoundSupported(): any;
166
169
  }
167
170
  export const FONT_IDENTITY_MATRIX: number[];
171
+ export namespace FontRenderOps {
172
+ let BEZIER_CURVE_TO: number;
173
+ let MOVE_TO: number;
174
+ let LINE_TO: number;
175
+ let QUADRATIC_CURVE_TO: number;
176
+ let RESTORE: number;
177
+ let SAVE: number;
178
+ let SCALE: number;
179
+ let TRANSFORM: number;
180
+ let TRANSLATE: number;
181
+ }
168
182
  declare const FormatError_base: any;
169
183
  /**
170
184
  * Error caused during parsing PDF data.
@@ -188,7 +202,6 @@ export class InvalidPDFException extends InvalidPDFException_base {
188
202
  [x: string]: any;
189
203
  constructor(msg: any);
190
204
  }
191
- export function isArrayBuffer(v: any): boolean;
192
205
  export function isArrayEqual(arr1: any, arr2: any): boolean;
193
206
  export const isNodeJS: any;
194
207
  export const LINE_DESCENT_FACTOR: 0.35;
@@ -318,31 +331,13 @@ export namespace PermissionFlag {
318
331
  export let ASSEMBLE: number;
319
332
  export let PRINT_HIGH_QUALITY: number;
320
333
  }
321
- export class PromiseCapability {
322
- /**
323
- * @type {Promise<any>} The Promise object.
324
- */
325
- promise: Promise<any>;
326
- /**
327
- * @type {function} Fulfills the Promise.
328
- */
329
- resolve: Function;
330
- /**
331
- * @type {function} Rejects the Promise.
332
- */
333
- reject: Function;
334
- /**
335
- * @type {boolean} If the Promise has been fulfilled/rejected.
336
- */
337
- get settled(): boolean;
338
- #private;
339
- }
340
334
  export namespace RenderingIntentFlag {
341
335
  export let ANY: number;
342
336
  export let DISPLAY: number;
343
337
  let PRINT_2: number;
344
338
  export { PRINT_2 as PRINT };
345
- export let SAVE: number;
339
+ let SAVE_1: number;
340
+ export { SAVE_1 as SAVE };
346
341
  export let ANNOTATIONS_FORMS: number;
347
342
  export let ANNOTATIONS_STORAGE: number;
348
343
  export let ANNOTATIONS_DISABLE: number;
@@ -392,7 +387,9 @@ export class Util {
392
387
  static singularValueDecompose2dScale(m: any): number[];
393
388
  static normalizeRect(rect: any): any;
394
389
  static intersect(rect1: any, rect2: any): number[] | null;
395
- static bezierBoundingBox(x0: any, y0: any, x1: any, y1: any, x2: any, y2: any, x3: any, y3: any): number[];
390
+ static "__#1@#getExtremumOnCurve"(x0: any, x1: any, x2: any, x3: any, y0: any, y1: any, y2: any, y3: any, t: any, minMax: any): void;
391
+ static "__#1@#getExtremum"(x0: any, x1: any, x2: any, x3: any, y0: any, y1: any, y2: any, y3: any, a: any, b: any, c: any, minMax: any): void;
392
+ static bezierBoundingBox(x0: any, y0: any, x1: any, y1: any, x2: any, y2: any, x3: any, y3: any, minMax: any): any;
396
393
  }
397
394
  export namespace VerbosityLevel {
398
395
  let ERRORS: number;
@@ -5,42 +5,34 @@ export type TextAccessibilityManager = import("./text_accessibility.js").TextAcc
5
5
  export type IL10n = import("./interfaces").IL10n;
6
6
  export type AnnotationLayer = import("../src/display/annotation_layer.js").AnnotationLayer;
7
7
  export type AnnotationEditorLayerBuilderOptions = {
8
- uiManager?: import("../src/display/editor/tools.js").AnnotationEditorUIManager | undefined;
9
- pageDiv: HTMLDivElement;
8
+ uiManager?: import("../src/pdf").AnnotationEditorUIManager | undefined;
10
9
  pdfPage: PDFPageProxy;
11
10
  l10n?: import("./interfaces").IL10n | undefined;
12
11
  accessibilityManager?: import("./text_accessibility.js").TextAccessibilityManager | undefined;
13
- annotationLayer?: import("../src/display/annotation_layer.js").AnnotationLayer | undefined;
12
+ annotationLayer?: import("../src/pdf").AnnotationLayer | undefined;
14
13
  textLayer?: any;
15
14
  drawLayer?: any;
15
+ onAppend?: Function | undefined;
16
16
  };
17
17
  /**
18
18
  * @typedef {Object} AnnotationEditorLayerBuilderOptions
19
19
  * @property {AnnotationEditorUIManager} [uiManager]
20
- * @property {HTMLDivElement} pageDiv
21
20
  * @property {PDFPageProxy} pdfPage
22
21
  * @property {IL10n} [l10n]
23
22
  * @property {TextAccessibilityManager} [accessibilityManager]
24
23
  * @property {AnnotationLayer} [annotationLayer]
25
24
  * @property {TextLayer} [textLayer]
26
25
  * @property {DrawLayer} [drawLayer]
26
+ * @property {function} [onAppend]
27
27
  */
28
28
  export class AnnotationEditorLayerBuilder {
29
29
  /**
30
30
  * @param {AnnotationEditorLayerBuilderOptions} options
31
31
  */
32
32
  constructor(options: AnnotationEditorLayerBuilderOptions);
33
- pageDiv: HTMLDivElement;
34
33
  pdfPage: import("../src/display/api").PDFPageProxy;
35
34
  accessibilityManager: import("./text_accessibility.js").TextAccessibilityManager | undefined;
36
- l10n: {
37
- getLanguage(): any;
38
- getDirection(): any;
39
- get(ids: any, args: null | undefined, fallback: any): Promise<any>;
40
- translate(element: any): Promise<any>;
41
- pause(): any;
42
- resume(): any;
43
- };
35
+ l10n: import("./interfaces").IL10n | GenericL10n | undefined;
44
36
  annotationEditorLayer: AnnotationEditorLayer | null;
45
37
  div: HTMLDivElement | null;
46
38
  _cancelled: boolean;
@@ -54,4 +46,5 @@ export class AnnotationEditorLayerBuilder {
54
46
  show(): void;
55
47
  #private;
56
48
  }
49
+ import { GenericL10n } from "./genericl10n";
57
50
  import { AnnotationEditorLayer } from "../src/pdf";
@@ -4,8 +4,8 @@ export type AnnotationStorage = import("../src/display/annotation_storage").Anno
4
4
  export type IDownloadManager = import("./interfaces").IDownloadManager;
5
5
  export type IPDFLinkService = import("./interfaces").IPDFLinkService;
6
6
  export type TextAccessibilityManager = import("./text_accessibility.js").TextAccessibilityManager;
7
+ export type AnnotationEditorUIManager = import("../src/display/editor/tools.js").AnnotationEditorUIManager;
7
8
  export type AnnotationLayerBuilderOptions = {
8
- pageDiv: HTMLDivElement;
9
9
  pdfPage: PDFPageProxy;
10
10
  annotationStorage?: import("../src/display/annotation_storage").AnnotationStorage | undefined;
11
11
  /**
@@ -23,10 +23,11 @@ export type AnnotationLayerBuilderOptions = {
23
23
  } | null> | undefined;
24
24
  annotationCanvasMap?: Map<string, HTMLCanvasElement> | undefined;
25
25
  accessibilityManager?: import("./text_accessibility.js").TextAccessibilityManager | undefined;
26
+ annotationEditorUIManager?: import("../src/pdf").AnnotationEditorUIManager | undefined;
27
+ onAppend?: Function | undefined;
26
28
  };
27
29
  /**
28
30
  * @typedef {Object} AnnotationLayerBuilderOptions
29
- * @property {HTMLDivElement} pageDiv
30
31
  * @property {PDFPageProxy} pdfPage
31
32
  * @property {AnnotationStorage} [annotationStorage]
32
33
  * @property {string} [imageResourcesPath] - Path for image resources, mainly
@@ -40,13 +41,14 @@ export type AnnotationLayerBuilderOptions = {
40
41
  * [fieldObjectsPromise]
41
42
  * @property {Map<string, HTMLCanvasElement>} [annotationCanvasMap]
42
43
  * @property {TextAccessibilityManager} [accessibilityManager]
44
+ * @property {AnnotationEditorUIManager} [annotationEditorUIManager]
45
+ * @property {function} [onAppend]
43
46
  */
44
47
  export class AnnotationLayerBuilder {
45
48
  /**
46
49
  * @param {AnnotationLayerBuilderOptions} options
47
50
  */
48
- constructor({ pageDiv, pdfPage, linkService, downloadManager, annotationStorage, imageResourcesPath, renderForms, enableScripting, hasJSActionsPromise, fieldObjectsPromise, annotationCanvasMap, accessibilityManager, }: AnnotationLayerBuilderOptions);
49
- pageDiv: HTMLDivElement;
51
+ constructor({ pdfPage, linkService, downloadManager, annotationStorage, imageResourcesPath, renderForms, enableScripting, hasJSActionsPromise, fieldObjectsPromise, annotationCanvasMap, accessibilityManager, annotationEditorUIManager, onAppend, }: AnnotationLayerBuilderOptions);
50
52
  pdfPage: import("../src/display/api").PDFPageProxy;
51
53
  linkService: import("./interfaces").IPDFLinkService;
52
54
  downloadManager: import("./interfaces").IDownloadManager | undefined;
@@ -60,6 +62,7 @@ export class AnnotationLayerBuilder {
60
62
  } | null>;
61
63
  _annotationCanvasMap: Map<string, HTMLCanvasElement>;
62
64
  _accessibilityManager: import("./text_accessibility.js").TextAccessibilityManager;
65
+ _annotationEditorUIManager: import("../src/pdf").AnnotationEditorUIManager;
63
66
  annotationLayer: AnnotationLayer | null;
64
67
  div: HTMLDivElement | null;
65
68
  _cancelled: boolean;
@@ -1,11 +1,10 @@
1
1
  export class AppOptions {
2
2
  static get(name: any): any;
3
- static getAll(kind?: null): any;
3
+ static getAll(kind?: null, defaultOnly?: boolean): any;
4
4
  static set(name: any, value: any): void;
5
5
  static setAll(options: any, init?: boolean): void;
6
6
  static remove(name: any): void;
7
7
  }
8
- export const compatibilityParams: any;
9
8
  export namespace OptionKind {
10
9
  let BROWSER: number;
11
10
  let VIEWER: number;
@@ -9,12 +9,14 @@ export class GenericL10n extends L10n implements IL10n {
9
9
  * translations.
10
10
  * @param {String} baseLang - The base language to use for translations.
11
11
  */
12
- static "__#53@#generateBundles"(defaultLang: string, baseLang: string): AsyncGenerator<any, void, unknown>;
13
- static "__#53@#createBundle"(lang: any, baseURL: any, paths: any): Promise<any>;
14
- static "__#53@#getPaths"(): Promise<{
12
+ static "__#59@#generateBundles"(defaultLang: string, baseLang: string): AsyncGenerator<any, void, unknown>;
13
+ static "__#59@#createBundle"(lang: any, baseURL: any, paths: any): Promise<any>;
14
+ static "__#59@#getPaths"(): Promise<{
15
15
  baseURL: any;
16
16
  paths: any;
17
17
  }>;
18
+ static "__#59@#generateBundlesFallback"(lang: any): AsyncGenerator<any, void, unknown>;
19
+ static "__#59@#createBundleFallback"(lang: any): Promise<any>;
18
20
  constructor(lang: any);
19
21
  }
20
22
  import { L10n } from "./l10n.js";
@@ -144,11 +144,14 @@ export class IPDFLinkService {
144
144
  * @param {Object} action
145
145
  */
146
146
  executeSetOCGState(action: Object): void;
147
- /**
148
- * @param {number} pageNum - page number.
149
- * @param {Object} pageRef - reference to the page.
150
- */
151
- cachePageRef(pageNum: number, pageRef: Object): void;
147
+ }
148
+ /**
149
+ * @interface
150
+ */
151
+ export class IPDFPrintServiceFactory {
152
+ static initGlobals(): void;
153
+ static get supportsPrinting(): boolean;
154
+ static createPrintService(): void;
152
155
  }
153
156
  /**
154
157
  * @interface
@@ -1,4 +1,5 @@
1
1
  export type IL10n = import("./interfaces").IL10n;
2
+ export const GenericL10n: null;
2
3
  /** @typedef {import("./interfaces").IL10n} IL10n */
3
4
  /**
4
5
  * NOTE: The L10n-implementations should use lowercase language-codes
@@ -6,8 +7,8 @@ export type IL10n = import("./interfaces").IL10n;
6
7
  * @implements {IL10n}
7
8
  */
8
9
  export class L10n implements IL10n {
9
- static "__#52@#fixupLangCode"(langCode: any): any;
10
- static "__#52@#isRTL"(lang: any): boolean;
10
+ static "__#58@#fixupLangCode"(langCode: any): any;
11
+ static "__#58@#isRTL"(lang: any): boolean;
11
12
  constructor({ lang, isRTL }: {
12
13
  lang: any;
13
14
  isRTL: any;
@@ -102,8 +102,7 @@ export class PDFFindController {
102
102
  _pagesToSearch: number | null | undefined;
103
103
  _pendingFindMatches: Set<any> | undefined;
104
104
  _resumePageIdx: any;
105
- _firstPageCapability: PromiseCapability | undefined;
105
+ _firstPageCapability: any;
106
106
  _rawQuery: any;
107
107
  #private;
108
108
  }
109
- import { PromiseCapability } from "../src/pdf";
@@ -51,15 +51,6 @@ export class PDFHistory {
51
51
  eventBus: import("./event_utils.js").EventBus;
52
52
  _initialized: boolean;
53
53
  _fingerprint: string;
54
- _boundEvents: {
55
- updateViewarea: ({ location }: {
56
- location: any;
57
- }) => void;
58
- popState: ({ state }: {
59
- state: any;
60
- }) => void;
61
- pageHide: () => void;
62
- } | null;
63
54
  _isPagesLoaded: boolean;
64
55
  /**
65
56
  * Initialize the history for the PDF document, using either the current
@@ -121,48 +112,5 @@ export class PDFHistory {
121
112
  get popStateInProgress(): boolean;
122
113
  get initialBookmark(): any;
123
114
  get initialRotation(): any;
124
- /**
125
- * @private
126
- */
127
- private _pushOrReplaceState;
128
- /**
129
- * @private
130
- */
131
- private _tryPushCurrentPosition;
132
- /**
133
- * @private
134
- */
135
- private _isValidPage;
136
- /**
137
- * @private
138
- */
139
- private _isValidState;
140
- /**
141
- * @private
142
- */
143
- private _updateInternalState;
144
- /**
145
- * @private
146
- */
147
- private _parseCurrentHash;
148
- /**
149
- * @private
150
- */
151
- private _updateViewarea;
152
- /**
153
- * @private
154
- */
155
- private _popState;
156
- /**
157
- * @private
158
- */
159
- private _pageHide;
160
- /**
161
- * @private
162
- */
163
- private _bindEvents;
164
- /**
165
- * @private
166
- */
167
- private _unbindEvents;
115
+ #private;
168
116
  }
@@ -1,30 +1,3 @@
1
- export type ExternalLinkParameters = {
2
- /**
3
- * - An absolute URL.
4
- */
5
- url: string;
6
- /**
7
- * - The link target. The default value is
8
- * `LinkTarget.NONE`.
9
- */
10
- target?: {
11
- NONE: number;
12
- SELF: number;
13
- BLANK: number;
14
- PARENT: number;
15
- TOP: number;
16
- } | undefined;
17
- /**
18
- * - The link relationship. The default value is
19
- * `DEFAULT_LINK_REL`.
20
- */
21
- rel?: string | undefined;
22
- /**
23
- * - Whether the link should be enabled. The
24
- * default value is true.
25
- */
26
- enabled?: boolean | undefined;
27
- };
28
1
  export type EventBus = import("./event_utils").EventBus;
29
2
  export type IPDFLinkService = import("./interfaces").IPDFLinkService;
30
3
  export type PDFLinkServiceOptions = {
@@ -75,15 +48,15 @@ export namespace LinkTarget {
75
48
  * @implements {IPDFLinkService}
76
49
  */
77
50
  export class PDFLinkService implements IPDFLinkService {
78
- static "__#49@#isValidExplicitDestination"(dest: any): boolean;
51
+ static "__#55@#isValidExplicitDest"(dest: any): boolean;
79
52
  /**
80
53
  * @param {PDFLinkServiceOptions} options
81
54
  */
82
55
  constructor({ eventBus, externalLinkTarget, externalLinkRel, ignoreDestinationZoom, }?: PDFLinkServiceOptions);
56
+ externalLinkEnabled: boolean;
83
57
  eventBus: import("./event_utils").EventBus;
84
58
  externalLinkTarget: number;
85
59
  externalLinkRel: string;
86
- externalLinkEnabled: boolean;
87
60
  _ignoreDestinationZoom: boolean;
88
61
  baseUrl: any;
89
62
  pdfDocument: any;
@@ -129,7 +102,7 @@ export class PDFLinkService implements IPDFLinkService {
129
102
  */
130
103
  goToPage(val: number | string): void;
131
104
  /**
132
- * Wrapper around the `addLinkAttributes` helper function.
105
+ * Adds various attributes (href, title, target, rel) to hyperlinks.
133
106
  * @param {HTMLAnchorElement} link
134
107
  * @param {string} url
135
108
  * @param {boolean} [newWindow]
@@ -159,85 +132,9 @@ export class PDFLinkService implements IPDFLinkService {
159
132
  * @param {Object} action
160
133
  */
161
134
  executeSetOCGState(action: Object): Promise<void>;
162
- /**
163
- * @param {number} pageNum - page number.
164
- * @param {Object} pageRef - reference to the page.
165
- */
166
- cachePageRef(pageNum: number, pageRef: Object): void;
167
- /**
168
- * @ignore
169
- */
170
- _cachedPageNumber(pageRef: any): any;
171
- #private;
172
135
  }
173
136
  /**
174
137
  * @implements {IPDFLinkService}
175
138
  */
176
- export class SimpleLinkService implements IPDFLinkService {
177
- externalLinkEnabled: boolean;
178
- /**
179
- * @type {number}
180
- */
181
- get pagesCount(): number;
182
- /**
183
- * @param {number} value
184
- */
185
- set page(value: number);
186
- /**
187
- * @type {number}
188
- */
189
- get page(): number;
190
- /**
191
- * @param {number} value
192
- */
193
- set rotation(value: number);
194
- /**
195
- * @type {number}
196
- */
197
- get rotation(): number;
198
- /**
199
- * @type {boolean}
200
- */
201
- get isInPresentationMode(): boolean;
202
- /**
203
- * @param {string|Array} dest - The named, or explicit, PDF destination.
204
- */
205
- goToDestination(dest: string | any[]): Promise<void>;
206
- /**
207
- * @param {number|string} val - The page number, or page label.
208
- */
209
- goToPage(val: number | string): void;
210
- /**
211
- * @param {HTMLAnchorElement} link
212
- * @param {string} url
213
- * @param {boolean} [newWindow]
214
- */
215
- addLinkAttributes(link: HTMLAnchorElement, url: string, newWindow?: boolean | undefined): void;
216
- /**
217
- * @param dest - The PDF destination object.
218
- * @returns {string} The hyperlink to the PDF object.
219
- */
220
- getDestinationHash(dest: any): string;
221
- /**
222
- * @param hash - The PDF parameters/hash.
223
- * @returns {string} The hyperlink to the PDF object.
224
- */
225
- getAnchorUrl(hash: any): string;
226
- /**
227
- * @param {string} hash
228
- */
229
- setHash(hash: string): void;
230
- /**
231
- * @param {string} action
232
- */
233
- executeNamedAction(action: string): void;
234
- /**
235
- * @param {Object} action
236
- */
237
- executeSetOCGState(action: Object): void;
238
- /**
239
- * @param {number} pageNum - page number.
240
- * @param {Object} pageRef - reference to the page.
241
- */
242
- cachePageRef(pageNum: number, pageRef: Object): void;
139
+ export class SimpleLinkService extends PDFLinkService implements IPDFLinkService {
243
140
  }
@@ -54,15 +54,10 @@ export type PDFPageViewOptions = {
54
54
  * for annotation icons. Include trailing slash.
55
55
  */
56
56
  imageResourcesPath?: string | undefined;
57
- /**
58
- * - Allows to use an
59
- * OffscreenCanvas if needed.
60
- */
61
- isOffscreenCanvasSupported?: boolean | undefined;
62
57
  /**
63
58
  * - The maximum supported canvas size in
64
59
  * total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
65
- * CSS-only zooming. The default value is 4096 * 4096 (16 mega-pixels).
60
+ * CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).
66
61
  */
67
62
  maxCanvasPixels?: number | undefined;
68
63
  /**
@@ -99,19 +94,11 @@ export class PDFPageView implements IRenderableView {
99
94
  pdfPageRotate: number;
100
95
  _optionalContentConfigPromise: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | null;
101
96
  imageResourcesPath: string;
102
- isOffscreenCanvasSupported: boolean;
103
97
  maxCanvasPixels: any;
104
98
  pageColors: Object | null;
105
99
  eventBus: import("./event_utils").EventBus;
106
100
  renderingQueue: import("./pdf_rendering_queue").PDFRenderingQueue | undefined;
107
- l10n: {
108
- getLanguage(): any;
109
- getDirection(): any;
110
- get(ids: any, args: null | undefined, fallback: any): Promise<any>;
111
- translate(element: any): Promise<any>;
112
- pause(): any;
113
- resume(): any;
114
- };
101
+ l10n: import("./interfaces").IL10n | GenericL10n | undefined;
115
102
  renderTask: any;
116
103
  resume: (() => void) | null;
117
104
  _isStandalone: boolean | undefined;
@@ -205,6 +192,7 @@ export class PDFPageView implements IRenderableView {
205
192
  get thumbnailCanvas(): HTMLCanvasElement | null | undefined;
206
193
  #private;
207
194
  }
195
+ import { GenericL10n } from "./genericl10n";
208
196
  import { AnnotationLayerBuilder } from "./annotation_layer_builder.js";
209
197
  import { AnnotationEditorLayerBuilder } from "./annotation_editor_layer_builder.js";
210
198
  import { TextLayerBuilder } from "./text_layer_builder.js";
@@ -45,10 +45,6 @@ export class PDFScriptingManager {
45
45
  dispatchDidPrint(): Promise<any>;
46
46
  get destroyPromise(): any;
47
47
  get ready(): boolean;
48
- /**
49
- * @private
50
- */
51
- private get _internalEvents();
52
48
  /**
53
49
  * @private
54
50
  */
@@ -81,21 +81,9 @@ export class PDFThumbnailView implements IRenderableView {
81
81
  * rather than calling this one directly.
82
82
  */
83
83
  cancelRendering(): void;
84
- /**
85
- * @private
86
- */
87
- private _getPageDrawContext;
88
- /**
89
- * @private
90
- */
91
- private _convertCanvasToImage;
92
84
  image: HTMLImageElement | undefined;
93
85
  draw(): Promise<any>;
94
86
  setImage(pageView: any): void;
95
- /**
96
- * @private
97
- */
98
- private _reduceImage;
99
87
  /**
100
88
  * @param {string|null} label
101
89
  */
@@ -118,7 +106,7 @@ export class PDFThumbnailView implements IRenderableView {
118
106
  * mode.
119
107
  */
120
108
  export class TempImageFactory {
121
- static "__#62@#tempCanvas": null;
109
+ static "__#69@#tempCanvas": null;
122
110
  static getCanvas(width: any, height: any): (HTMLCanvasElement | CanvasRenderingContext2D | null)[];
123
111
  static destroyCanvas(): void;
124
112
  }
@@ -59,25 +59,13 @@ export class PDFThumbnailViewer {
59
59
  lastY: any;
60
60
  _eventHandler: (evt: any) => void;
61
61
  };
62
- /**
63
- * @private
64
- */
65
- private _scrollUpdated;
66
62
  getThumbnail(index: any): any;
67
- /**
68
- * @private
69
- */
70
- private _getVisibleThumbs;
71
63
  scrollThumbnailIntoView(pageNumber: any): void;
72
64
  _currentPageNumber: any;
73
65
  set pagesRotation(rotation: any);
74
66
  get pagesRotation(): any;
75
67
  _pagesRotation: any;
76
68
  cleanup(): void;
77
- /**
78
- * @private
79
- */
80
- private _resetView;
81
69
  _thumbnails: any[] | undefined;
82
70
  _pageLabels: any[] | null | undefined;
83
71
  /**
@@ -85,10 +73,6 @@ export class PDFThumbnailViewer {
85
73
  */
86
74
  setDocument(pdfDocument: PDFDocumentProxy): void;
87
75
  pdfDocument: import("../src/display/api").PDFDocumentProxy | undefined;
88
- /**
89
- * @private
90
- */
91
- private _cancelRendering;
92
76
  /**
93
77
  * @param {Array|null} labels
94
78
  */
@@ -4,7 +4,6 @@ import { EventBus } from "./event_utils.js";
4
4
  import { FindState } from "./pdf_find_controller.js";
5
5
  import { GenericL10n } from "./genericl10n.js";
6
6
  import { LinkTarget } from "./pdf_link_service.js";
7
- import { NullL10n } from "./l10n_utils.js";
8
7
  import { parseQueryString } from "./ui_utils.js";
9
8
  import { PDFFindController } from "./pdf_find_controller.js";
10
9
  import { PDFHistory } from "./pdf_history.js";
@@ -21,4 +20,4 @@ import { SpreadMode } from "./ui_utils.js";
21
20
  import { StructTreeLayerBuilder } from "./struct_tree_layer_builder.js";
22
21
  import { TextLayerBuilder } from "./text_layer_builder.js";
23
22
  import { XfaLayerBuilder } from "./xfa_layer_builder.js";
24
- export { AnnotationLayerBuilder, DownloadManager, EventBus, FindState, GenericL10n, LinkTarget, NullL10n, parseQueryString, PDFFindController, PDFHistory, PDFLinkService, PDFPageView, PDFScriptingManager, PDFSinglePageViewer, PDFViewer, ProgressBar, RenderingStates, ScrollMode, SimpleLinkService, SpreadMode, StructTreeLayerBuilder, TextLayerBuilder, XfaLayerBuilder };
23
+ export { AnnotationLayerBuilder, DownloadManager, EventBus, FindState, GenericL10n, LinkTarget, parseQueryString, PDFFindController, PDFHistory, PDFLinkService, PDFPageView, PDFScriptingManager, PDFSinglePageViewer, PDFViewer, ProgressBar, RenderingStates, ScrollMode, SimpleLinkService, SpreadMode, StructTreeLayerBuilder, TextLayerBuilder, XfaLayerBuilder };