@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.
Files changed (305) hide show
  1. package/CODE_OF_CONDUCT.md +15 -0
  2. package/LICENSE +177 -0
  3. package/README.md +14 -0
  4. package/build/pdf.js +18009 -0
  5. package/build/pdf.js.map +1 -0
  6. package/build/pdf.min.js +22 -0
  7. package/build/pdf.sandbox.js +280 -0
  8. package/build/pdf.sandbox.js.map +1 -0
  9. package/build/pdf.sandbox.min.js +22 -0
  10. package/build/pdf.worker.entry.js +19 -0
  11. package/build/pdf.worker.js +57863 -0
  12. package/build/pdf.worker.js.map +1 -0
  13. package/build/pdf.worker.min.js +22 -0
  14. package/cmaps/78-EUC-H.bcmap +0 -0
  15. package/cmaps/78-EUC-V.bcmap +0 -0
  16. package/cmaps/78-H.bcmap +0 -0
  17. package/cmaps/78-RKSJ-H.bcmap +0 -0
  18. package/cmaps/78-RKSJ-V.bcmap +0 -0
  19. package/cmaps/78-V.bcmap +0 -0
  20. package/cmaps/78ms-RKSJ-H.bcmap +0 -0
  21. package/cmaps/78ms-RKSJ-V.bcmap +0 -0
  22. package/cmaps/83pv-RKSJ-H.bcmap +0 -0
  23. package/cmaps/90ms-RKSJ-H.bcmap +0 -0
  24. package/cmaps/90ms-RKSJ-V.bcmap +0 -0
  25. package/cmaps/90msp-RKSJ-H.bcmap +0 -0
  26. package/cmaps/90msp-RKSJ-V.bcmap +0 -0
  27. package/cmaps/90pv-RKSJ-H.bcmap +0 -0
  28. package/cmaps/90pv-RKSJ-V.bcmap +0 -0
  29. package/cmaps/Add-H.bcmap +0 -0
  30. package/cmaps/Add-RKSJ-H.bcmap +0 -0
  31. package/cmaps/Add-RKSJ-V.bcmap +0 -0
  32. package/cmaps/Add-V.bcmap +0 -0
  33. package/cmaps/Adobe-CNS1-0.bcmap +0 -0
  34. package/cmaps/Adobe-CNS1-1.bcmap +0 -0
  35. package/cmaps/Adobe-CNS1-2.bcmap +0 -0
  36. package/cmaps/Adobe-CNS1-3.bcmap +0 -0
  37. package/cmaps/Adobe-CNS1-4.bcmap +0 -0
  38. package/cmaps/Adobe-CNS1-5.bcmap +0 -0
  39. package/cmaps/Adobe-CNS1-6.bcmap +0 -0
  40. package/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  41. package/cmaps/Adobe-GB1-0.bcmap +0 -0
  42. package/cmaps/Adobe-GB1-1.bcmap +0 -0
  43. package/cmaps/Adobe-GB1-2.bcmap +0 -0
  44. package/cmaps/Adobe-GB1-3.bcmap +0 -0
  45. package/cmaps/Adobe-GB1-4.bcmap +0 -0
  46. package/cmaps/Adobe-GB1-5.bcmap +0 -0
  47. package/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  48. package/cmaps/Adobe-Japan1-0.bcmap +0 -0
  49. package/cmaps/Adobe-Japan1-1.bcmap +0 -0
  50. package/cmaps/Adobe-Japan1-2.bcmap +0 -0
  51. package/cmaps/Adobe-Japan1-3.bcmap +0 -0
  52. package/cmaps/Adobe-Japan1-4.bcmap +0 -0
  53. package/cmaps/Adobe-Japan1-5.bcmap +0 -0
  54. package/cmaps/Adobe-Japan1-6.bcmap +0 -0
  55. package/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  56. package/cmaps/Adobe-Korea1-0.bcmap +0 -0
  57. package/cmaps/Adobe-Korea1-1.bcmap +0 -0
  58. package/cmaps/Adobe-Korea1-2.bcmap +0 -0
  59. package/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  60. package/cmaps/B5-H.bcmap +0 -0
  61. package/cmaps/B5-V.bcmap +0 -0
  62. package/cmaps/B5pc-H.bcmap +0 -0
  63. package/cmaps/B5pc-V.bcmap +0 -0
  64. package/cmaps/CNS-EUC-H.bcmap +0 -0
  65. package/cmaps/CNS-EUC-V.bcmap +0 -0
  66. package/cmaps/CNS1-H.bcmap +0 -0
  67. package/cmaps/CNS1-V.bcmap +0 -0
  68. package/cmaps/CNS2-H.bcmap +0 -0
  69. package/cmaps/CNS2-V.bcmap +3 -0
  70. package/cmaps/ETHK-B5-H.bcmap +0 -0
  71. package/cmaps/ETHK-B5-V.bcmap +0 -0
  72. package/cmaps/ETen-B5-H.bcmap +0 -0
  73. package/cmaps/ETen-B5-V.bcmap +0 -0
  74. package/cmaps/ETenms-B5-H.bcmap +3 -0
  75. package/cmaps/ETenms-B5-V.bcmap +0 -0
  76. package/cmaps/EUC-H.bcmap +0 -0
  77. package/cmaps/EUC-V.bcmap +0 -0
  78. package/cmaps/Ext-H.bcmap +0 -0
  79. package/cmaps/Ext-RKSJ-H.bcmap +0 -0
  80. package/cmaps/Ext-RKSJ-V.bcmap +0 -0
  81. package/cmaps/Ext-V.bcmap +0 -0
  82. package/cmaps/GB-EUC-H.bcmap +0 -0
  83. package/cmaps/GB-EUC-V.bcmap +0 -0
  84. package/cmaps/GB-H.bcmap +4 -0
  85. package/cmaps/GB-V.bcmap +0 -0
  86. package/cmaps/GBK-EUC-H.bcmap +0 -0
  87. package/cmaps/GBK-EUC-V.bcmap +0 -0
  88. package/cmaps/GBK2K-H.bcmap +0 -0
  89. package/cmaps/GBK2K-V.bcmap +0 -0
  90. package/cmaps/GBKp-EUC-H.bcmap +0 -0
  91. package/cmaps/GBKp-EUC-V.bcmap +0 -0
  92. package/cmaps/GBT-EUC-H.bcmap +0 -0
  93. package/cmaps/GBT-EUC-V.bcmap +0 -0
  94. package/cmaps/GBT-H.bcmap +0 -0
  95. package/cmaps/GBT-V.bcmap +0 -0
  96. package/cmaps/GBTpc-EUC-H.bcmap +0 -0
  97. package/cmaps/GBTpc-EUC-V.bcmap +0 -0
  98. package/cmaps/GBpc-EUC-H.bcmap +0 -0
  99. package/cmaps/GBpc-EUC-V.bcmap +0 -0
  100. package/cmaps/H.bcmap +0 -0
  101. package/cmaps/HKdla-B5-H.bcmap +0 -0
  102. package/cmaps/HKdla-B5-V.bcmap +0 -0
  103. package/cmaps/HKdlb-B5-H.bcmap +0 -0
  104. package/cmaps/HKdlb-B5-V.bcmap +0 -0
  105. package/cmaps/HKgccs-B5-H.bcmap +0 -0
  106. package/cmaps/HKgccs-B5-V.bcmap +0 -0
  107. package/cmaps/HKm314-B5-H.bcmap +0 -0
  108. package/cmaps/HKm314-B5-V.bcmap +0 -0
  109. package/cmaps/HKm471-B5-H.bcmap +0 -0
  110. package/cmaps/HKm471-B5-V.bcmap +0 -0
  111. package/cmaps/HKscs-B5-H.bcmap +0 -0
  112. package/cmaps/HKscs-B5-V.bcmap +0 -0
  113. package/cmaps/Hankaku.bcmap +0 -0
  114. package/cmaps/Hiragana.bcmap +0 -0
  115. package/cmaps/KSC-EUC-H.bcmap +0 -0
  116. package/cmaps/KSC-EUC-V.bcmap +0 -0
  117. package/cmaps/KSC-H.bcmap +0 -0
  118. package/cmaps/KSC-Johab-H.bcmap +0 -0
  119. package/cmaps/KSC-Johab-V.bcmap +0 -0
  120. package/cmaps/KSC-V.bcmap +0 -0
  121. package/cmaps/KSCms-UHC-H.bcmap +0 -0
  122. package/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  123. package/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  124. package/cmaps/KSCms-UHC-V.bcmap +0 -0
  125. package/cmaps/KSCpc-EUC-H.bcmap +0 -0
  126. package/cmaps/KSCpc-EUC-V.bcmap +0 -0
  127. package/cmaps/Katakana.bcmap +0 -0
  128. package/cmaps/LICENSE +36 -0
  129. package/cmaps/NWP-H.bcmap +0 -0
  130. package/cmaps/NWP-V.bcmap +0 -0
  131. package/cmaps/RKSJ-H.bcmap +0 -0
  132. package/cmaps/RKSJ-V.bcmap +0 -0
  133. package/cmaps/Roman.bcmap +0 -0
  134. package/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  135. package/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  136. package/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  137. package/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  138. package/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  139. package/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  140. package/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  141. package/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  142. package/cmaps/UniGB-UCS2-H.bcmap +0 -0
  143. package/cmaps/UniGB-UCS2-V.bcmap +0 -0
  144. package/cmaps/UniGB-UTF16-H.bcmap +0 -0
  145. package/cmaps/UniGB-UTF16-V.bcmap +0 -0
  146. package/cmaps/UniGB-UTF32-H.bcmap +0 -0
  147. package/cmaps/UniGB-UTF32-V.bcmap +0 -0
  148. package/cmaps/UniGB-UTF8-H.bcmap +0 -0
  149. package/cmaps/UniGB-UTF8-V.bcmap +0 -0
  150. package/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  151. package/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  152. package/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  153. package/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  154. package/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  155. package/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  156. package/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  157. package/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  158. package/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  159. package/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  160. package/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  161. package/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  162. package/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  163. package/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  164. package/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  165. package/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  166. package/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  167. package/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  168. package/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  169. package/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  170. package/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  171. package/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  172. package/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  173. package/cmaps/UniKS-UCS2-H.bcmap +0 -0
  174. package/cmaps/UniKS-UCS2-V.bcmap +0 -0
  175. package/cmaps/UniKS-UTF16-H.bcmap +0 -0
  176. package/cmaps/UniKS-UTF16-V.bcmap +0 -0
  177. package/cmaps/UniKS-UTF32-H.bcmap +0 -0
  178. package/cmaps/UniKS-UTF32-V.bcmap +0 -0
  179. package/cmaps/UniKS-UTF8-H.bcmap +0 -0
  180. package/cmaps/UniKS-UTF8-V.bcmap +0 -0
  181. package/cmaps/V.bcmap +0 -0
  182. package/cmaps/WP-Symbol.bcmap +0 -0
  183. package/image_decoders/pdf.image_decoders.js +7490 -0
  184. package/image_decoders/pdf.image_decoders.js.map +1 -0
  185. package/image_decoders/pdf.image_decoders.min.js +22 -0
  186. package/legacy/build/pdf.d.ts +1 -0
  187. package/legacy/build/pdf.js +22941 -0
  188. package/legacy/build/pdf.js.map +1 -0
  189. package/legacy/build/pdf.min.js +22 -0
  190. package/legacy/build/pdf.sandbox.js +3274 -0
  191. package/legacy/build/pdf.sandbox.js.map +1 -0
  192. package/legacy/build/pdf.sandbox.min.js +22 -0
  193. package/legacy/build/pdf.worker.entry.js +19 -0
  194. package/legacy/build/pdf.worker.js +62058 -0
  195. package/legacy/build/pdf.worker.js.map +1 -0
  196. package/legacy/build/pdf.worker.min.js +22 -0
  197. package/legacy/image_decoders/pdf.image_decoders.js +10615 -0
  198. package/legacy/image_decoders/pdf.image_decoders.js.map +1 -0
  199. package/legacy/image_decoders/pdf.image_decoders.min.js +22 -0
  200. package/legacy/web/images/annotation-check.svg +11 -0
  201. package/legacy/web/images/annotation-comment.svg +16 -0
  202. package/legacy/web/images/annotation-help.svg +26 -0
  203. package/legacy/web/images/annotation-insert.svg +10 -0
  204. package/legacy/web/images/annotation-key.svg +11 -0
  205. package/legacy/web/images/annotation-newparagraph.svg +11 -0
  206. package/legacy/web/images/annotation-noicon.svg +7 -0
  207. package/legacy/web/images/annotation-note.svg +42 -0
  208. package/legacy/web/images/annotation-paperclip.svg +6 -0
  209. package/legacy/web/images/annotation-paragraph.svg +16 -0
  210. package/legacy/web/images/annotation-pushpin.svg +7 -0
  211. package/legacy/web/images/loading-icon.gif +0 -0
  212. package/legacy/web/pdf_viewer.css +1375 -0
  213. package/legacy/web/pdf_viewer.d.ts +1 -0
  214. package/legacy/web/pdf_viewer.js +10502 -0
  215. package/legacy/web/pdf_viewer.js.map +1 -0
  216. package/package.json +35 -0
  217. package/standard_fonts/FoxitDingbats.pfb +0 -0
  218. package/standard_fonts/FoxitFixed.pfb +0 -0
  219. package/standard_fonts/FoxitFixedBold.pfb +0 -0
  220. package/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  221. package/standard_fonts/FoxitFixedItalic.pfb +0 -0
  222. package/standard_fonts/FoxitSerif.pfb +0 -0
  223. package/standard_fonts/FoxitSerifBold.pfb +0 -0
  224. package/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  225. package/standard_fonts/FoxitSerifItalic.pfb +0 -0
  226. package/standard_fonts/FoxitSymbol.pfb +0 -0
  227. package/standard_fonts/LICENSE_FOXIT +27 -0
  228. package/standard_fonts/LICENSE_LIBERATION +102 -0
  229. package/standard_fonts/LiberationSans-Bold.ttf +0 -0
  230. package/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  231. package/standard_fonts/LiberationSans-Italic.ttf +0 -0
  232. package/standard_fonts/LiberationSans-Regular.ttf +0 -0
  233. package/types/external/webL10n/l10n.d.ts +0 -0
  234. package/types/src/display/annotation_layer.d.ts +203 -0
  235. package/types/src/display/annotation_storage.d.ts +89 -0
  236. package/types/src/display/api.d.ts +1592 -0
  237. package/types/src/display/base_factory.d.ts +54 -0
  238. package/types/src/display/canvas.d.ts +208 -0
  239. package/types/src/display/display_utils.d.ts +277 -0
  240. package/types/src/display/editor/annotation_editor_layer.d.ts +196 -0
  241. package/types/src/display/editor/editor.d.ts +325 -0
  242. package/types/src/display/editor/freetext.d.ts +72 -0
  243. package/types/src/display/editor/ink.d.ts +95 -0
  244. package/types/src/display/editor/stamp.d.ts +28 -0
  245. package/types/src/display/editor/tools.d.ts +349 -0
  246. package/types/src/display/font_loader.d.ts +43 -0
  247. package/types/src/display/metadata.d.ts +11 -0
  248. package/types/src/display/optional_content_config.d.ts +13 -0
  249. package/types/src/display/pattern_helper.d.ts +73 -0
  250. package/types/src/display/text_layer.d.ts +151 -0
  251. package/types/src/display/transport_stream.d.ts +68 -0
  252. package/types/src/display/worker_options.d.ts +27 -0
  253. package/types/src/display/xfa_layer.d.ts +46 -0
  254. package/types/src/display/xfa_text.d.ts +19 -0
  255. package/types/src/pdf.d.ts +62 -0
  256. package/types/src/shared/image_utils.d.ts +17 -0
  257. package/types/src/shared/message_handler.d.ts +43 -0
  258. package/types/src/shared/murmurhash3.d.ts +7 -0
  259. package/types/src/shared/scripting_utils.d.ts +16 -0
  260. package/types/src/shared/util.d.ts +398 -0
  261. package/types/web/annotation_editor_layer_builder.d.ts +50 -0
  262. package/types/web/annotation_layer_builder.d.ts +83 -0
  263. package/types/web/app_options.d.ts +14 -0
  264. package/types/web/download_manager.d.ts +14 -0
  265. package/types/web/event_utils.d.ts +75 -0
  266. package/types/web/generic_scripting.d.ts +8 -0
  267. package/types/web/genericl10n.d.ts +13 -0
  268. package/types/web/interfaces.d.ts +163 -0
  269. package/types/web/l10n_utils.d.ts +7 -0
  270. package/types/web/pdf_find_controller.d.ts +108 -0
  271. package/types/web/pdf_find_utils.d.ts +16 -0
  272. package/types/web/pdf_history.d.ts +168 -0
  273. package/types/web/pdf_link_service.d.ts +243 -0
  274. package/types/web/pdf_page_view.d.ts +209 -0
  275. package/types/web/pdf_rendering_queue.d.ts +53 -0
  276. package/types/web/pdf_scripting_manager.component.d.ts +5 -0
  277. package/types/web/pdf_scripting_manager.d.ts +61 -0
  278. package/types/web/pdf_single_page_viewer.d.ts +7 -0
  279. package/types/web/pdf_thumbnail_view.d.ts +131 -0
  280. package/types/web/pdf_thumbnail_viewer.d.ts +104 -0
  281. package/types/web/pdf_viewer.component.d.ts +24 -0
  282. package/types/web/pdf_viewer.d.ts +455 -0
  283. package/types/web/struct_tree_layer_builder.d.ts +7 -0
  284. package/types/web/text_accessibility.d.ts +42 -0
  285. package/types/web/text_highlighter.d.ts +63 -0
  286. package/types/web/text_layer_builder.d.ts +64 -0
  287. package/types/web/ui_utils.d.ts +288 -0
  288. package/types/web/xfa_layer_builder.d.ts +41 -0
  289. package/web/images/annotation-check.svg +11 -0
  290. package/web/images/annotation-comment.svg +16 -0
  291. package/web/images/annotation-help.svg +26 -0
  292. package/web/images/annotation-insert.svg +10 -0
  293. package/web/images/annotation-key.svg +11 -0
  294. package/web/images/annotation-newparagraph.svg +11 -0
  295. package/web/images/annotation-noicon.svg +7 -0
  296. package/web/images/annotation-note.svg +42 -0
  297. package/web/images/annotation-paperclip.svg +6 -0
  298. package/web/images/annotation-paragraph.svg +16 -0
  299. package/web/images/annotation-pushpin.svg +7 -0
  300. package/web/images/loading-icon.gif +0 -0
  301. package/web/pdf_viewer.css +1375 -0
  302. package/web/pdf_viewer.d.ts +1 -0
  303. package/web/pdf_viewer.js +7752 -0
  304. package/web/pdf_viewer.js.map +1 -0
  305. 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,5 @@
1
+ export { PDFScriptingManagerComponents as PDFScriptingManager };
2
+ declare class PDFScriptingManagerComponents extends PDFScriptingManager {
3
+ constructor(options: any);
4
+ }
5
+ import { PDFScriptingManager } from "./pdf_scripting_manager.js";
@@ -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,7 @@
1
+ export class PDFSinglePageViewer extends PDFViewer {
2
+ set scrollMode(arg: any);
3
+ _updateScrollMode(): void;
4
+ set spreadMode(arg: any);
5
+ _updateSpreadMode(): void;
6
+ }
7
+ import { PDFViewer } from "./pdf_viewer.js";
@@ -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 };