@divriots/pdfjs-dist 3.10.111-divriots2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CODE_OF_CONDUCT.md +15 -0
- package/LICENSE +177 -0
- package/README.md +14 -0
- package/build/pdf.js +18009 -0
- package/build/pdf.js.map +1 -0
- package/build/pdf.min.js +22 -0
- package/build/pdf.sandbox.js +280 -0
- package/build/pdf.sandbox.js.map +1 -0
- package/build/pdf.sandbox.min.js +22 -0
- package/build/pdf.worker.entry.js +19 -0
- package/build/pdf.worker.js +57863 -0
- package/build/pdf.worker.js.map +1 -0
- package/build/pdf.worker.min.js +22 -0
- package/cmaps/78-EUC-H.bcmap +0 -0
- package/cmaps/78-EUC-V.bcmap +0 -0
- package/cmaps/78-H.bcmap +0 -0
- package/cmaps/78-RKSJ-H.bcmap +0 -0
- package/cmaps/78-RKSJ-V.bcmap +0 -0
- package/cmaps/78-V.bcmap +0 -0
- package/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/cmaps/Add-H.bcmap +0 -0
- package/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/cmaps/Add-V.bcmap +0 -0
- package/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/cmaps/B5-H.bcmap +0 -0
- package/cmaps/B5-V.bcmap +0 -0
- package/cmaps/B5pc-H.bcmap +0 -0
- package/cmaps/B5pc-V.bcmap +0 -0
- package/cmaps/CNS-EUC-H.bcmap +0 -0
- package/cmaps/CNS-EUC-V.bcmap +0 -0
- package/cmaps/CNS1-H.bcmap +0 -0
- package/cmaps/CNS1-V.bcmap +0 -0
- package/cmaps/CNS2-H.bcmap +0 -0
- package/cmaps/CNS2-V.bcmap +3 -0
- package/cmaps/ETHK-B5-H.bcmap +0 -0
- package/cmaps/ETHK-B5-V.bcmap +0 -0
- package/cmaps/ETen-B5-H.bcmap +0 -0
- package/cmaps/ETen-B5-V.bcmap +0 -0
- package/cmaps/ETenms-B5-H.bcmap +3 -0
- package/cmaps/ETenms-B5-V.bcmap +0 -0
- package/cmaps/EUC-H.bcmap +0 -0
- package/cmaps/EUC-V.bcmap +0 -0
- package/cmaps/Ext-H.bcmap +0 -0
- package/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/cmaps/Ext-V.bcmap +0 -0
- package/cmaps/GB-EUC-H.bcmap +0 -0
- package/cmaps/GB-EUC-V.bcmap +0 -0
- package/cmaps/GB-H.bcmap +4 -0
- package/cmaps/GB-V.bcmap +0 -0
- package/cmaps/GBK-EUC-H.bcmap +0 -0
- package/cmaps/GBK-EUC-V.bcmap +0 -0
- package/cmaps/GBK2K-H.bcmap +0 -0
- package/cmaps/GBK2K-V.bcmap +0 -0
- package/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/cmaps/GBT-EUC-H.bcmap +0 -0
- package/cmaps/GBT-EUC-V.bcmap +0 -0
- package/cmaps/GBT-H.bcmap +0 -0
- package/cmaps/GBT-V.bcmap +0 -0
- package/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/cmaps/H.bcmap +0 -0
- package/cmaps/HKdla-B5-H.bcmap +0 -0
- package/cmaps/HKdla-B5-V.bcmap +0 -0
- package/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/cmaps/HKm314-B5-H.bcmap +0 -0
- package/cmaps/HKm314-B5-V.bcmap +0 -0
- package/cmaps/HKm471-B5-H.bcmap +0 -0
- package/cmaps/HKm471-B5-V.bcmap +0 -0
- package/cmaps/HKscs-B5-H.bcmap +0 -0
- package/cmaps/HKscs-B5-V.bcmap +0 -0
- package/cmaps/Hankaku.bcmap +0 -0
- package/cmaps/Hiragana.bcmap +0 -0
- package/cmaps/KSC-EUC-H.bcmap +0 -0
- package/cmaps/KSC-EUC-V.bcmap +0 -0
- package/cmaps/KSC-H.bcmap +0 -0
- package/cmaps/KSC-Johab-H.bcmap +0 -0
- package/cmaps/KSC-Johab-V.bcmap +0 -0
- package/cmaps/KSC-V.bcmap +0 -0
- package/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/cmaps/Katakana.bcmap +0 -0
- package/cmaps/LICENSE +36 -0
- package/cmaps/NWP-H.bcmap +0 -0
- package/cmaps/NWP-V.bcmap +0 -0
- package/cmaps/RKSJ-H.bcmap +0 -0
- package/cmaps/RKSJ-V.bcmap +0 -0
- package/cmaps/Roman.bcmap +0 -0
- package/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/cmaps/V.bcmap +0 -0
- package/cmaps/WP-Symbol.bcmap +0 -0
- package/image_decoders/pdf.image_decoders.js +7490 -0
- package/image_decoders/pdf.image_decoders.js.map +1 -0
- package/image_decoders/pdf.image_decoders.min.js +22 -0
- package/legacy/build/pdf.d.ts +1 -0
- package/legacy/build/pdf.js +22941 -0
- package/legacy/build/pdf.js.map +1 -0
- package/legacy/build/pdf.min.js +22 -0
- package/legacy/build/pdf.sandbox.js +3274 -0
- package/legacy/build/pdf.sandbox.js.map +1 -0
- package/legacy/build/pdf.sandbox.min.js +22 -0
- package/legacy/build/pdf.worker.entry.js +19 -0
- package/legacy/build/pdf.worker.js +62058 -0
- package/legacy/build/pdf.worker.js.map +1 -0
- package/legacy/build/pdf.worker.min.js +22 -0
- package/legacy/image_decoders/pdf.image_decoders.js +10615 -0
- package/legacy/image_decoders/pdf.image_decoders.js.map +1 -0
- package/legacy/image_decoders/pdf.image_decoders.min.js +22 -0
- package/legacy/web/images/annotation-check.svg +11 -0
- package/legacy/web/images/annotation-comment.svg +16 -0
- package/legacy/web/images/annotation-help.svg +26 -0
- package/legacy/web/images/annotation-insert.svg +10 -0
- package/legacy/web/images/annotation-key.svg +11 -0
- package/legacy/web/images/annotation-newparagraph.svg +11 -0
- package/legacy/web/images/annotation-noicon.svg +7 -0
- package/legacy/web/images/annotation-note.svg +42 -0
- package/legacy/web/images/annotation-paperclip.svg +6 -0
- package/legacy/web/images/annotation-paragraph.svg +16 -0
- package/legacy/web/images/annotation-pushpin.svg +7 -0
- package/legacy/web/images/loading-icon.gif +0 -0
- package/legacy/web/pdf_viewer.css +1375 -0
- package/legacy/web/pdf_viewer.d.ts +1 -0
- package/legacy/web/pdf_viewer.js +10502 -0
- package/legacy/web/pdf_viewer.js.map +1 -0
- package/package.json +35 -0
- package/standard_fonts/FoxitDingbats.pfb +0 -0
- package/standard_fonts/FoxitFixed.pfb +0 -0
- package/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/standard_fonts/FoxitSerif.pfb +0 -0
- package/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/standard_fonts/FoxitSymbol.pfb +0 -0
- package/standard_fonts/LICENSE_FOXIT +27 -0
- package/standard_fonts/LICENSE_LIBERATION +102 -0
- package/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/types/external/webL10n/l10n.d.ts +0 -0
- package/types/src/display/annotation_layer.d.ts +203 -0
- package/types/src/display/annotation_storage.d.ts +89 -0
- package/types/src/display/api.d.ts +1592 -0
- package/types/src/display/base_factory.d.ts +54 -0
- package/types/src/display/canvas.d.ts +208 -0
- package/types/src/display/display_utils.d.ts +277 -0
- package/types/src/display/editor/annotation_editor_layer.d.ts +196 -0
- package/types/src/display/editor/editor.d.ts +325 -0
- package/types/src/display/editor/freetext.d.ts +72 -0
- package/types/src/display/editor/ink.d.ts +95 -0
- package/types/src/display/editor/stamp.d.ts +28 -0
- package/types/src/display/editor/tools.d.ts +349 -0
- package/types/src/display/font_loader.d.ts +43 -0
- package/types/src/display/metadata.d.ts +11 -0
- package/types/src/display/optional_content_config.d.ts +13 -0
- package/types/src/display/pattern_helper.d.ts +73 -0
- package/types/src/display/text_layer.d.ts +151 -0
- package/types/src/display/transport_stream.d.ts +68 -0
- package/types/src/display/worker_options.d.ts +27 -0
- package/types/src/display/xfa_layer.d.ts +46 -0
- package/types/src/display/xfa_text.d.ts +19 -0
- package/types/src/pdf.d.ts +62 -0
- package/types/src/shared/image_utils.d.ts +17 -0
- package/types/src/shared/message_handler.d.ts +43 -0
- package/types/src/shared/murmurhash3.d.ts +7 -0
- package/types/src/shared/scripting_utils.d.ts +16 -0
- package/types/src/shared/util.d.ts +398 -0
- package/types/web/annotation_editor_layer_builder.d.ts +50 -0
- package/types/web/annotation_layer_builder.d.ts +83 -0
- package/types/web/app_options.d.ts +14 -0
- package/types/web/download_manager.d.ts +14 -0
- package/types/web/event_utils.d.ts +75 -0
- package/types/web/generic_scripting.d.ts +8 -0
- package/types/web/genericl10n.d.ts +13 -0
- package/types/web/interfaces.d.ts +163 -0
- package/types/web/l10n_utils.d.ts +7 -0
- package/types/web/pdf_find_controller.d.ts +108 -0
- package/types/web/pdf_find_utils.d.ts +16 -0
- package/types/web/pdf_history.d.ts +168 -0
- package/types/web/pdf_link_service.d.ts +243 -0
- package/types/web/pdf_page_view.d.ts +209 -0
- package/types/web/pdf_rendering_queue.d.ts +53 -0
- package/types/web/pdf_scripting_manager.component.d.ts +5 -0
- package/types/web/pdf_scripting_manager.d.ts +61 -0
- package/types/web/pdf_single_page_viewer.d.ts +7 -0
- package/types/web/pdf_thumbnail_view.d.ts +131 -0
- package/types/web/pdf_thumbnail_viewer.d.ts +104 -0
- package/types/web/pdf_viewer.component.d.ts +24 -0
- package/types/web/pdf_viewer.d.ts +455 -0
- package/types/web/struct_tree_layer_builder.d.ts +7 -0
- package/types/web/text_accessibility.d.ts +42 -0
- package/types/web/text_highlighter.d.ts +63 -0
- package/types/web/text_layer_builder.d.ts +64 -0
- package/types/web/ui_utils.d.ts +288 -0
- package/types/web/xfa_layer_builder.d.ts +41 -0
- package/web/images/annotation-check.svg +11 -0
- package/web/images/annotation-comment.svg +16 -0
- package/web/images/annotation-help.svg +26 -0
- package/web/images/annotation-insert.svg +10 -0
- package/web/images/annotation-key.svg +11 -0
- package/web/images/annotation-newparagraph.svg +11 -0
- package/web/images/annotation-noicon.svg +7 -0
- package/web/images/annotation-note.svg +42 -0
- package/web/images/annotation-paperclip.svg +6 -0
- package/web/images/annotation-paragraph.svg +16 -0
- package/web/images/annotation-pushpin.svg +7 -0
- package/web/images/loading-icon.gif +0 -0
- package/web/pdf_viewer.css +1375 -0
- package/web/pdf_viewer.d.ts +1 -0
- package/web/pdf_viewer.js +7752 -0
- package/web/pdf_viewer.js.map +1 -0
- package/webpack.js +26 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
export type PageViewport = import("../src/display/display_utils").PageViewport;
|
|
2
|
+
export type OptionalContentConfig = import("../src/display/optional_content_config").OptionalContentConfig;
|
|
3
|
+
export type EventBus = import("./event_utils").EventBus;
|
|
4
|
+
export type IL10n = import("./interfaces").IL10n;
|
|
5
|
+
export type IRenderableView = import("./interfaces").IRenderableView;
|
|
6
|
+
export type PDFRenderingQueue = import("./pdf_rendering_queue").PDFRenderingQueue;
|
|
7
|
+
export type PDFPageViewOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* - The viewer element.
|
|
10
|
+
*/
|
|
11
|
+
container?: HTMLDivElement | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* - The application event bus.
|
|
14
|
+
*/
|
|
15
|
+
eventBus: EventBus;
|
|
16
|
+
/**
|
|
17
|
+
* - The page unique ID (normally its number).
|
|
18
|
+
*/
|
|
19
|
+
id: number;
|
|
20
|
+
/**
|
|
21
|
+
* - The page scale display.
|
|
22
|
+
*/
|
|
23
|
+
scale?: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* - The page viewport.
|
|
26
|
+
*/
|
|
27
|
+
defaultViewport: PageViewport;
|
|
28
|
+
/**
|
|
29
|
+
* -
|
|
30
|
+
* A promise that is resolved with an {@link OptionalContentConfig } instance.
|
|
31
|
+
* The default value is `null`.
|
|
32
|
+
*/
|
|
33
|
+
optionalContentConfigPromise?: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* - The rendering queue object.
|
|
36
|
+
*/
|
|
37
|
+
renderingQueue?: import("./pdf_rendering_queue").PDFRenderingQueue | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* - Controls if the text layer used for
|
|
40
|
+
* selection and searching is created. The constants from {TextLayerMode}
|
|
41
|
+
* should be used. The default value is `TextLayerMode.ENABLE`.
|
|
42
|
+
*/
|
|
43
|
+
textLayerMode?: number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* - Controls if the annotation layer is
|
|
46
|
+
* created, and if interactive form elements or `AnnotationStorage`-data are
|
|
47
|
+
* being rendered. The constants from {@link AnnotationMode } should be used;
|
|
48
|
+
* see also {@link RenderParameters } and {@link GetOperatorListParameters }.
|
|
49
|
+
* The default value is `AnnotationMode.ENABLE_FORMS`.
|
|
50
|
+
*/
|
|
51
|
+
annotationMode?: number | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* - Path for image resources, mainly
|
|
54
|
+
* for annotation icons. Include trailing slash.
|
|
55
|
+
*/
|
|
56
|
+
imageResourcesPath?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* - Allows to use an
|
|
59
|
+
* OffscreenCanvas if needed.
|
|
60
|
+
*/
|
|
61
|
+
isOffscreenCanvasSupported?: boolean | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* - The maximum supported canvas size in
|
|
64
|
+
* 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).
|
|
66
|
+
*/
|
|
67
|
+
maxCanvasPixels?: number | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* - Overwrites background and foreground colors
|
|
70
|
+
* with user defined ones in order to improve readability in high contrast
|
|
71
|
+
* mode.
|
|
72
|
+
*/
|
|
73
|
+
pageColors?: Object | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* - Localization service.
|
|
76
|
+
*/
|
|
77
|
+
l10n?: import("./interfaces").IL10n | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* - The function that is used to lookup
|
|
80
|
+
* the necessary layer-properties.
|
|
81
|
+
*/
|
|
82
|
+
layerProperties?: Function | undefined;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* @implements {IRenderableView}
|
|
86
|
+
*/
|
|
87
|
+
export class PDFPageView implements IRenderableView {
|
|
88
|
+
/**
|
|
89
|
+
* @param {PDFPageViewOptions} options
|
|
90
|
+
*/
|
|
91
|
+
constructor(options: PDFPageViewOptions);
|
|
92
|
+
id: number;
|
|
93
|
+
renderingId: string;
|
|
94
|
+
pdfPage: any;
|
|
95
|
+
pageLabel: string | null;
|
|
96
|
+
rotation: number;
|
|
97
|
+
scale: number;
|
|
98
|
+
viewport: import("../src/display/display_utils").PageViewport;
|
|
99
|
+
pdfPageRotate: number;
|
|
100
|
+
_optionalContentConfigPromise: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | null;
|
|
101
|
+
imageResourcesPath: string;
|
|
102
|
+
isOffscreenCanvasSupported: boolean;
|
|
103
|
+
maxCanvasPixels: any;
|
|
104
|
+
pageColors: Object | null;
|
|
105
|
+
eventBus: import("./event_utils").EventBus;
|
|
106
|
+
renderingQueue: import("./pdf_rendering_queue").PDFRenderingQueue | undefined;
|
|
107
|
+
l10n: {
|
|
108
|
+
getLanguage(): Promise<string>;
|
|
109
|
+
getDirection(): Promise<string>;
|
|
110
|
+
get(key: any, args?: null, fallback?: any): Promise<any>;
|
|
111
|
+
translate(element: any): Promise<void>;
|
|
112
|
+
};
|
|
113
|
+
renderTask: any;
|
|
114
|
+
resume: (() => void) | null;
|
|
115
|
+
_isStandalone: boolean | undefined;
|
|
116
|
+
_container: HTMLDivElement | undefined;
|
|
117
|
+
_annotationCanvasMap: any;
|
|
118
|
+
annotationLayer: AnnotationLayerBuilder | null;
|
|
119
|
+
annotationEditorLayer: AnnotationEditorLayerBuilder | null;
|
|
120
|
+
textLayer: TextLayerBuilder | null;
|
|
121
|
+
zoomLayer: ParentNode | null;
|
|
122
|
+
xfaLayer: XfaLayerBuilder | null;
|
|
123
|
+
structTreeLayer: any;
|
|
124
|
+
div: HTMLDivElement;
|
|
125
|
+
set renderingState(arg: number);
|
|
126
|
+
get renderingState(): number;
|
|
127
|
+
setPdfPage(pdfPage: any): void;
|
|
128
|
+
destroy(): void;
|
|
129
|
+
get _textHighlighter(): any;
|
|
130
|
+
/**
|
|
131
|
+
* @private
|
|
132
|
+
*/
|
|
133
|
+
private _resetZoomLayer;
|
|
134
|
+
reset({ keepZoomLayer, keepAnnotationLayer, keepAnnotationEditorLayer, keepXfaLayer, keepTextLayer, }?: {
|
|
135
|
+
keepZoomLayer?: boolean | undefined;
|
|
136
|
+
keepAnnotationLayer?: boolean | undefined;
|
|
137
|
+
keepAnnotationEditorLayer?: boolean | undefined;
|
|
138
|
+
keepXfaLayer?: boolean | undefined;
|
|
139
|
+
keepTextLayer?: boolean | undefined;
|
|
140
|
+
}): void;
|
|
141
|
+
/**
|
|
142
|
+
* @typedef {Object} PDFPageViewUpdateParameters
|
|
143
|
+
* @property {number} [scale] The new scale, if specified.
|
|
144
|
+
* @property {number} [rotation] The new rotation, if specified.
|
|
145
|
+
* @property {Promise<OptionalContentConfig>} [optionalContentConfigPromise]
|
|
146
|
+
* A promise that is resolved with an {@link OptionalContentConfig}
|
|
147
|
+
* instance. The default value is `null`.
|
|
148
|
+
* @property {number} [drawingDelay]
|
|
149
|
+
*/
|
|
150
|
+
/**
|
|
151
|
+
* Update e.g. the scale and/or rotation of the page.
|
|
152
|
+
* @param {PDFPageViewUpdateParameters}
|
|
153
|
+
*/
|
|
154
|
+
update({ scale, rotation, optionalContentConfigPromise, drawingDelay, }: {
|
|
155
|
+
/**
|
|
156
|
+
* The new scale, if specified.
|
|
157
|
+
*/
|
|
158
|
+
scale?: number | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* The new rotation, if specified.
|
|
161
|
+
*/
|
|
162
|
+
rotation?: number | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* A promise that is resolved with an {@link OptionalContentConfig }instance. The default value is `null`.
|
|
165
|
+
*/
|
|
166
|
+
optionalContentConfigPromise?: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | undefined;
|
|
167
|
+
drawingDelay?: number | undefined;
|
|
168
|
+
}): void;
|
|
169
|
+
/**
|
|
170
|
+
* PLEASE NOTE: Most likely you want to use the `this.reset()` method,
|
|
171
|
+
* rather than calling this one directly.
|
|
172
|
+
*/
|
|
173
|
+
cancelRendering({ keepAnnotationLayer, keepAnnotationEditorLayer, keepXfaLayer, keepTextLayer, cancelExtraDelay, }?: {
|
|
174
|
+
keepAnnotationLayer?: boolean | undefined;
|
|
175
|
+
keepAnnotationEditorLayer?: boolean | undefined;
|
|
176
|
+
keepXfaLayer?: boolean | undefined;
|
|
177
|
+
keepTextLayer?: boolean | undefined;
|
|
178
|
+
cancelExtraDelay?: number | undefined;
|
|
179
|
+
}): void;
|
|
180
|
+
cssTransform({ target, redrawAnnotationLayer, redrawAnnotationEditorLayer, redrawXfaLayer, redrawTextLayer, hideTextLayer, }: {
|
|
181
|
+
target: any;
|
|
182
|
+
redrawAnnotationLayer?: boolean | undefined;
|
|
183
|
+
redrawAnnotationEditorLayer?: boolean | undefined;
|
|
184
|
+
redrawXfaLayer?: boolean | undefined;
|
|
185
|
+
redrawTextLayer?: boolean | undefined;
|
|
186
|
+
hideTextLayer?: boolean | undefined;
|
|
187
|
+
}): void;
|
|
188
|
+
get width(): number;
|
|
189
|
+
get height(): number;
|
|
190
|
+
getPagePoint(x: any, y: any): any[];
|
|
191
|
+
draw(): Promise<any>;
|
|
192
|
+
canvas: HTMLCanvasElement | undefined;
|
|
193
|
+
outputScale: OutputScale | undefined;
|
|
194
|
+
/**
|
|
195
|
+
* @param {string|null} label
|
|
196
|
+
*/
|
|
197
|
+
setPageLabel(label: string | null): void;
|
|
198
|
+
/**
|
|
199
|
+
* For use by the `PDFThumbnailView.setImage`-method.
|
|
200
|
+
* @ignore
|
|
201
|
+
*/
|
|
202
|
+
get thumbnailCanvas(): HTMLCanvasElement | null | undefined;
|
|
203
|
+
#private;
|
|
204
|
+
}
|
|
205
|
+
import { AnnotationLayerBuilder } from "./annotation_layer_builder.js";
|
|
206
|
+
import { AnnotationEditorLayerBuilder } from "./annotation_editor_layer_builder.js";
|
|
207
|
+
import { TextLayerBuilder } from "./text_layer_builder.js";
|
|
208
|
+
import { XfaLayerBuilder } from "./xfa_layer_builder.js";
|
|
209
|
+
import { OutputScale } from "./ui_utils.js";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type IRenderableView = import("./interfaces").IRenderableView;
|
|
2
|
+
export type PDFViewer = import("./pdf_viewer").PDFViewer;
|
|
3
|
+
export type PDFThumbnailViewer = import("./pdf_thumbnail_viewer").PDFThumbnailViewer;
|
|
4
|
+
/**
|
|
5
|
+
* Controls rendering of the views for pages and thumbnails.
|
|
6
|
+
*/
|
|
7
|
+
export class PDFRenderingQueue {
|
|
8
|
+
pdfViewer: import("./pdf_viewer").PDFViewer | null;
|
|
9
|
+
pdfThumbnailViewer: import("./pdf_thumbnail_viewer").PDFThumbnailViewer | null;
|
|
10
|
+
onIdle: any;
|
|
11
|
+
highestPriorityPage: string | null;
|
|
12
|
+
/** @type {number} */
|
|
13
|
+
idleTimeout: number;
|
|
14
|
+
printing: boolean;
|
|
15
|
+
isThumbnailViewEnabled: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @param {PDFViewer} pdfViewer
|
|
18
|
+
*/
|
|
19
|
+
setViewer(pdfViewer: PDFViewer): void;
|
|
20
|
+
/**
|
|
21
|
+
* @param {PDFThumbnailViewer} pdfThumbnailViewer
|
|
22
|
+
*/
|
|
23
|
+
setThumbnailViewer(pdfThumbnailViewer: PDFThumbnailViewer): void;
|
|
24
|
+
/**
|
|
25
|
+
* @param {IRenderableView} view
|
|
26
|
+
* @returns {boolean}
|
|
27
|
+
*/
|
|
28
|
+
isHighestPriority(view: IRenderableView): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @param {Object} currentlyVisiblePages
|
|
31
|
+
*/
|
|
32
|
+
renderHighestPriority(currentlyVisiblePages: Object): void;
|
|
33
|
+
/**
|
|
34
|
+
* @param {Object} visible
|
|
35
|
+
* @param {Array} views
|
|
36
|
+
* @param {boolean} scrolledDown
|
|
37
|
+
* @param {boolean} [preRenderExtra]
|
|
38
|
+
*/
|
|
39
|
+
getHighestPriority(visible: Object, views: any[], scrolledDown: boolean, preRenderExtra?: boolean | undefined): any;
|
|
40
|
+
/**
|
|
41
|
+
* @param {IRenderableView} view
|
|
42
|
+
* @returns {boolean}
|
|
43
|
+
*/
|
|
44
|
+
isViewFinished(view: IRenderableView): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Render a page or thumbnail view. This calls the appropriate function
|
|
47
|
+
* based on the views state. If the view is already rendered it will return
|
|
48
|
+
* `false`.
|
|
49
|
+
*
|
|
50
|
+
* @param {IRenderableView} view
|
|
51
|
+
*/
|
|
52
|
+
renderView(view: IRenderableView): boolean;
|
|
53
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export type EventBus = import("./event_utils").EventBus;
|
|
2
|
+
export type PDFScriptingManagerOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* - The application event bus.
|
|
5
|
+
*/
|
|
6
|
+
eventBus: EventBus;
|
|
7
|
+
/**
|
|
8
|
+
* - The path and filename of the scripting
|
|
9
|
+
* bundle.
|
|
10
|
+
*/
|
|
11
|
+
sandboxBundleSrc: string;
|
|
12
|
+
/**
|
|
13
|
+
* - The factory that is used when
|
|
14
|
+
* initializing scripting; must contain a `createScripting` method.
|
|
15
|
+
* PLEASE NOTE: Primarily intended for the default viewer use-case.
|
|
16
|
+
*/
|
|
17
|
+
externalServices?: Object | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* - The function that is used to lookup
|
|
20
|
+
* the necessary document properties.
|
|
21
|
+
*/
|
|
22
|
+
docProperties?: Function | undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @typedef {Object} PDFScriptingManagerOptions
|
|
26
|
+
* @property {EventBus} eventBus - The application event bus.
|
|
27
|
+
* @property {string} sandboxBundleSrc - The path and filename of the scripting
|
|
28
|
+
* bundle.
|
|
29
|
+
* @property {Object} [externalServices] - The factory that is used when
|
|
30
|
+
* initializing scripting; must contain a `createScripting` method.
|
|
31
|
+
* PLEASE NOTE: Primarily intended for the default viewer use-case.
|
|
32
|
+
* @property {function} [docProperties] - The function that is used to lookup
|
|
33
|
+
* the necessary document properties.
|
|
34
|
+
*/
|
|
35
|
+
export class PDFScriptingManager {
|
|
36
|
+
/**
|
|
37
|
+
* @param {PDFScriptingManagerOptions} options
|
|
38
|
+
*/
|
|
39
|
+
constructor({ eventBus, sandboxBundleSrc, externalServices, docProperties, }: PDFScriptingManagerOptions);
|
|
40
|
+
setViewer(pdfViewer: any): void;
|
|
41
|
+
setDocument(pdfDocument: any): Promise<void>;
|
|
42
|
+
dispatchWillSave(): Promise<any>;
|
|
43
|
+
dispatchDidSave(): Promise<any>;
|
|
44
|
+
dispatchWillPrint(): Promise<void>;
|
|
45
|
+
dispatchDidPrint(): Promise<any>;
|
|
46
|
+
get destroyPromise(): any;
|
|
47
|
+
get ready(): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
private get _internalEvents();
|
|
52
|
+
/**
|
|
53
|
+
* @private
|
|
54
|
+
*/
|
|
55
|
+
private get _pageOpenPending();
|
|
56
|
+
/**
|
|
57
|
+
* @private
|
|
58
|
+
*/
|
|
59
|
+
private get _visitedPages();
|
|
60
|
+
#private;
|
|
61
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export type EventBus = import("./event_utils").EventBus;
|
|
2
|
+
export type IL10n = import("./interfaces").IL10n;
|
|
3
|
+
export type IPDFLinkService = import("./interfaces").IPDFLinkService;
|
|
4
|
+
export type IRenderableView = import("./interfaces").IRenderableView;
|
|
5
|
+
export type PDFRenderingQueue = import("./pdf_rendering_queue").PDFRenderingQueue;
|
|
6
|
+
export type PDFThumbnailViewOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* - The viewer element.
|
|
9
|
+
*/
|
|
10
|
+
container: HTMLDivElement;
|
|
11
|
+
/**
|
|
12
|
+
* - The application event bus.
|
|
13
|
+
*/
|
|
14
|
+
eventBus: EventBus;
|
|
15
|
+
/**
|
|
16
|
+
* - The thumbnail's unique ID (normally its number).
|
|
17
|
+
*/
|
|
18
|
+
id: number;
|
|
19
|
+
/**
|
|
20
|
+
* - The page viewport.
|
|
21
|
+
*/
|
|
22
|
+
defaultViewport: PageViewport;
|
|
23
|
+
/**
|
|
24
|
+
* -
|
|
25
|
+
* A promise that is resolved with an {@link OptionalContentConfig } instance.
|
|
26
|
+
* The default value is `null`.
|
|
27
|
+
*/
|
|
28
|
+
optionalContentConfigPromise?: Promise<OptionalContentConfig> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* - The navigation/linking service.
|
|
31
|
+
*/
|
|
32
|
+
linkService: IPDFLinkService;
|
|
33
|
+
/**
|
|
34
|
+
* - The rendering queue object.
|
|
35
|
+
*/
|
|
36
|
+
renderingQueue: PDFRenderingQueue;
|
|
37
|
+
/**
|
|
38
|
+
* - Localization service.
|
|
39
|
+
*/
|
|
40
|
+
l10n: IL10n;
|
|
41
|
+
/**
|
|
42
|
+
* - Overwrites background and foreground colors
|
|
43
|
+
* with user defined ones in order to improve readability in high contrast
|
|
44
|
+
* mode.
|
|
45
|
+
*/
|
|
46
|
+
pageColors?: Object | undefined;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @implements {IRenderableView}
|
|
50
|
+
*/
|
|
51
|
+
export class PDFThumbnailView implements IRenderableView {
|
|
52
|
+
/**
|
|
53
|
+
* @param {PDFThumbnailViewOptions} options
|
|
54
|
+
*/
|
|
55
|
+
constructor({ container, eventBus, id, defaultViewport, optionalContentConfigPromise, linkService, renderingQueue, l10n, pageColors, }: PDFThumbnailViewOptions);
|
|
56
|
+
id: number;
|
|
57
|
+
renderingId: string;
|
|
58
|
+
pageLabel: string | null;
|
|
59
|
+
pdfPage: any;
|
|
60
|
+
rotation: number;
|
|
61
|
+
viewport: PageViewport;
|
|
62
|
+
pdfPageRotate: any;
|
|
63
|
+
_optionalContentConfigPromise: Promise<OptionalContentConfig> | null;
|
|
64
|
+
pageColors: Object | null;
|
|
65
|
+
eventBus: import("./event_utils").EventBus;
|
|
66
|
+
linkService: import("./interfaces").IPDFLinkService;
|
|
67
|
+
renderingQueue: import("./pdf_rendering_queue").PDFRenderingQueue;
|
|
68
|
+
renderTask: any;
|
|
69
|
+
renderingState: number;
|
|
70
|
+
resume: (() => void) | null;
|
|
71
|
+
l10n: import("./interfaces").IL10n;
|
|
72
|
+
anchor: HTMLAnchorElement;
|
|
73
|
+
div: HTMLDivElement;
|
|
74
|
+
_placeholderImg: HTMLDivElement;
|
|
75
|
+
canvasWidth: number | undefined;
|
|
76
|
+
canvasHeight: number | undefined;
|
|
77
|
+
scale: number | undefined;
|
|
78
|
+
setPdfPage(pdfPage: any): void;
|
|
79
|
+
reset(): void;
|
|
80
|
+
update({ rotation }: {
|
|
81
|
+
rotation?: null | undefined;
|
|
82
|
+
}): void;
|
|
83
|
+
/**
|
|
84
|
+
* PLEASE NOTE: Most likely you want to use the `this.reset()` method,
|
|
85
|
+
* rather than calling this one directly.
|
|
86
|
+
*/
|
|
87
|
+
cancelRendering(): void;
|
|
88
|
+
/**
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
91
|
+
private _getPageDrawContext;
|
|
92
|
+
/**
|
|
93
|
+
* @private
|
|
94
|
+
*/
|
|
95
|
+
private _convertCanvasToImage;
|
|
96
|
+
image: HTMLImageElement | undefined;
|
|
97
|
+
draw(): Promise<any>;
|
|
98
|
+
setImage(pageView: any): void;
|
|
99
|
+
/**
|
|
100
|
+
* @private
|
|
101
|
+
*/
|
|
102
|
+
private _reduceImage;
|
|
103
|
+
get _thumbPageTitle(): Promise<string>;
|
|
104
|
+
get _thumbPageCanvas(): Promise<string>;
|
|
105
|
+
/**
|
|
106
|
+
* @param {string|null} label
|
|
107
|
+
*/
|
|
108
|
+
setPageLabel(label: string | null): void;
|
|
109
|
+
#private;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @typedef {Object} PDFThumbnailViewOptions
|
|
113
|
+
* @property {HTMLDivElement} container - The viewer element.
|
|
114
|
+
* @property {EventBus} eventBus - The application event bus.
|
|
115
|
+
* @property {number} id - The thumbnail's unique ID (normally its number).
|
|
116
|
+
* @property {PageViewport} defaultViewport - The page viewport.
|
|
117
|
+
* @property {Promise<OptionalContentConfig>} [optionalContentConfigPromise] -
|
|
118
|
+
* A promise that is resolved with an {@link OptionalContentConfig} instance.
|
|
119
|
+
* The default value is `null`.
|
|
120
|
+
* @property {IPDFLinkService} linkService - The navigation/linking service.
|
|
121
|
+
* @property {PDFRenderingQueue} renderingQueue - The rendering queue object.
|
|
122
|
+
* @property {IL10n} l10n - Localization service.
|
|
123
|
+
* @property {Object} [pageColors] - Overwrites background and foreground colors
|
|
124
|
+
* with user defined ones in order to improve readability in high contrast
|
|
125
|
+
* mode.
|
|
126
|
+
*/
|
|
127
|
+
export class TempImageFactory {
|
|
128
|
+
static "__#51@#tempCanvas": null;
|
|
129
|
+
static getCanvas(width: any, height: any): (HTMLCanvasElement | CanvasRenderingContext2D | null)[];
|
|
130
|
+
static destroyCanvas(): void;
|
|
131
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export type PDFDocumentProxy = import("../src/display/api").PDFDocumentProxy;
|
|
2
|
+
export type EventBus = import("./event_utils").EventBus;
|
|
3
|
+
export type IL10n = import("./interfaces").IL10n;
|
|
4
|
+
export type IPDFLinkService = import("./interfaces").IPDFLinkService;
|
|
5
|
+
export type PDFRenderingQueue = import("./pdf_rendering_queue").PDFRenderingQueue;
|
|
6
|
+
export type PDFThumbnailViewerOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* - The container for the thumbnail
|
|
9
|
+
* elements.
|
|
10
|
+
*/
|
|
11
|
+
container: HTMLDivElement;
|
|
12
|
+
/**
|
|
13
|
+
* - The application event bus.
|
|
14
|
+
*/
|
|
15
|
+
eventBus: EventBus;
|
|
16
|
+
/**
|
|
17
|
+
* - The navigation/linking service.
|
|
18
|
+
*/
|
|
19
|
+
linkService: IPDFLinkService;
|
|
20
|
+
/**
|
|
21
|
+
* - The rendering queue object.
|
|
22
|
+
*/
|
|
23
|
+
renderingQueue: PDFRenderingQueue;
|
|
24
|
+
/**
|
|
25
|
+
* - Localization service.
|
|
26
|
+
*/
|
|
27
|
+
l10n: IL10n;
|
|
28
|
+
/**
|
|
29
|
+
* - Overwrites background and foreground colors
|
|
30
|
+
* with user defined ones in order to improve readability in high contrast
|
|
31
|
+
* mode.
|
|
32
|
+
*/
|
|
33
|
+
pageColors?: Object | undefined;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @typedef {Object} PDFThumbnailViewerOptions
|
|
37
|
+
* @property {HTMLDivElement} container - The container for the thumbnail
|
|
38
|
+
* elements.
|
|
39
|
+
* @property {EventBus} eventBus - The application event bus.
|
|
40
|
+
* @property {IPDFLinkService} linkService - The navigation/linking service.
|
|
41
|
+
* @property {PDFRenderingQueue} renderingQueue - The rendering queue object.
|
|
42
|
+
* @property {IL10n} l10n - Localization service.
|
|
43
|
+
* @property {Object} [pageColors] - Overwrites background and foreground colors
|
|
44
|
+
* with user defined ones in order to improve readability in high contrast
|
|
45
|
+
* mode.
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* Viewer control to display thumbnails for pages in a PDF document.
|
|
49
|
+
*/
|
|
50
|
+
export class PDFThumbnailViewer {
|
|
51
|
+
/**
|
|
52
|
+
* @param {PDFThumbnailViewerOptions} options
|
|
53
|
+
*/
|
|
54
|
+
constructor({ container, eventBus, linkService, renderingQueue, l10n, pageColors, }: PDFThumbnailViewerOptions);
|
|
55
|
+
container: HTMLDivElement;
|
|
56
|
+
eventBus: import("./event_utils").EventBus;
|
|
57
|
+
linkService: import("./interfaces").IPDFLinkService;
|
|
58
|
+
renderingQueue: import("./pdf_rendering_queue").PDFRenderingQueue;
|
|
59
|
+
l10n: import("./interfaces").IL10n;
|
|
60
|
+
pageColors: Object | null;
|
|
61
|
+
scroll: {
|
|
62
|
+
right: boolean;
|
|
63
|
+
down: boolean;
|
|
64
|
+
lastX: any;
|
|
65
|
+
lastY: any;
|
|
66
|
+
_eventHandler: (evt: any) => void;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
private _scrollUpdated;
|
|
72
|
+
getThumbnail(index: any): any;
|
|
73
|
+
/**
|
|
74
|
+
* @private
|
|
75
|
+
*/
|
|
76
|
+
private _getVisibleThumbs;
|
|
77
|
+
scrollThumbnailIntoView(pageNumber: any): void;
|
|
78
|
+
_currentPageNumber: any;
|
|
79
|
+
set pagesRotation(arg: any);
|
|
80
|
+
get pagesRotation(): any;
|
|
81
|
+
_pagesRotation: any;
|
|
82
|
+
cleanup(): void;
|
|
83
|
+
/**
|
|
84
|
+
* @private
|
|
85
|
+
*/
|
|
86
|
+
private _resetView;
|
|
87
|
+
_thumbnails: any[] | undefined;
|
|
88
|
+
_pageLabels: any[] | null | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* @param {PDFDocumentProxy} pdfDocument
|
|
91
|
+
*/
|
|
92
|
+
setDocument(pdfDocument: PDFDocumentProxy): void;
|
|
93
|
+
pdfDocument: import("../src/display/api").PDFDocumentProxy | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* @private
|
|
96
|
+
*/
|
|
97
|
+
private _cancelRendering;
|
|
98
|
+
/**
|
|
99
|
+
* @param {Array|null} labels
|
|
100
|
+
*/
|
|
101
|
+
setPageLabels(labels: any[] | null): void;
|
|
102
|
+
forceRendering(): boolean;
|
|
103
|
+
#private;
|
|
104
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AnnotationLayerBuilder } from "./annotation_layer_builder.js";
|
|
2
|
+
import { DownloadManager } from "./download_manager.js";
|
|
3
|
+
import { EventBus } from "./event_utils.js";
|
|
4
|
+
import { FindState } from "./pdf_find_controller.js";
|
|
5
|
+
import { GenericL10n } from "./genericl10n.js";
|
|
6
|
+
import { LinkTarget } from "./pdf_link_service.js";
|
|
7
|
+
import { NullL10n } from "./l10n_utils.js";
|
|
8
|
+
import { parseQueryString } from "./ui_utils.js";
|
|
9
|
+
import { PDFFindController } from "./pdf_find_controller.js";
|
|
10
|
+
import { PDFHistory } from "./pdf_history.js";
|
|
11
|
+
import { PDFLinkService } from "./pdf_link_service.js";
|
|
12
|
+
import { PDFPageView } from "./pdf_page_view.js";
|
|
13
|
+
import { PDFScriptingManager } from "./pdf_scripting_manager.component.js";
|
|
14
|
+
import { PDFSinglePageViewer } from "./pdf_single_page_viewer.js";
|
|
15
|
+
import { PDFViewer } from "./pdf_viewer.js";
|
|
16
|
+
import { ProgressBar } from "./ui_utils.js";
|
|
17
|
+
import { RenderingStates } from "./ui_utils.js";
|
|
18
|
+
import { ScrollMode } from "./ui_utils.js";
|
|
19
|
+
import { SimpleLinkService } from "./pdf_link_service.js";
|
|
20
|
+
import { SpreadMode } from "./ui_utils.js";
|
|
21
|
+
import { StructTreeLayerBuilder } from "./struct_tree_layer_builder.js";
|
|
22
|
+
import { TextLayerBuilder } from "./text_layer_builder.js";
|
|
23
|
+
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 };
|