@nocobase/plugin-file-manager 2.1.0-beta.36 → 2.1.0-beta.37

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 (468) hide show
  1. package/dist/client/764.96d72bc6fd4adb28.js +15 -0
  2. package/dist/client/876.ca16d7a6e6387862.js +11 -0
  3. package/dist/client/index.js +1 -1
  4. package/dist/client-v2/764.d5a27ea47a2d3239.js +15 -0
  5. package/dist/client-v2/876.22cd8e41ac8631ed.js +11 -0
  6. package/dist/client-v2/index.js +1 -1
  7. package/dist/externalVersion.js +9 -9
  8. package/dist/node_modules/@aws-sdk/client-s3/package.json +1 -1
  9. package/dist/node_modules/@aws-sdk/lib-storage/package.json +1 -1
  10. package/dist/node_modules/ali-oss/package.json +1 -1
  11. package/dist/node_modules/cos-nodejs-sdk-v5/package.json +1 -1
  12. package/dist/node_modules/mime-match/package.json +1 -1
  13. package/dist/node_modules/mime-types/package.json +1 -1
  14. package/dist/node_modules/mkdirp/package.json +1 -1
  15. package/dist/node_modules/pdfjs-dist/LICENSE +177 -0
  16. package/dist/node_modules/pdfjs-dist/build/pdf.mjs +26514 -0
  17. package/dist/node_modules/pdfjs-dist/cmaps/78-EUC-H.bcmap +0 -0
  18. package/dist/node_modules/pdfjs-dist/cmaps/78-EUC-V.bcmap +0 -0
  19. package/dist/node_modules/pdfjs-dist/cmaps/78-H.bcmap +0 -0
  20. package/dist/node_modules/pdfjs-dist/cmaps/78-RKSJ-H.bcmap +0 -0
  21. package/dist/node_modules/pdfjs-dist/cmaps/78-RKSJ-V.bcmap +0 -0
  22. package/dist/node_modules/pdfjs-dist/cmaps/78-V.bcmap +0 -0
  23. package/dist/node_modules/pdfjs-dist/cmaps/78ms-RKSJ-H.bcmap +0 -0
  24. package/dist/node_modules/pdfjs-dist/cmaps/78ms-RKSJ-V.bcmap +0 -0
  25. package/dist/node_modules/pdfjs-dist/cmaps/83pv-RKSJ-H.bcmap +0 -0
  26. package/dist/node_modules/pdfjs-dist/cmaps/90ms-RKSJ-H.bcmap +0 -0
  27. package/dist/node_modules/pdfjs-dist/cmaps/90ms-RKSJ-V.bcmap +0 -0
  28. package/dist/node_modules/pdfjs-dist/cmaps/90msp-RKSJ-H.bcmap +0 -0
  29. package/dist/node_modules/pdfjs-dist/cmaps/90msp-RKSJ-V.bcmap +0 -0
  30. package/dist/node_modules/pdfjs-dist/cmaps/90pv-RKSJ-H.bcmap +0 -0
  31. package/dist/node_modules/pdfjs-dist/cmaps/90pv-RKSJ-V.bcmap +0 -0
  32. package/dist/node_modules/pdfjs-dist/cmaps/Add-H.bcmap +0 -0
  33. package/dist/node_modules/pdfjs-dist/cmaps/Add-RKSJ-H.bcmap +0 -0
  34. package/dist/node_modules/pdfjs-dist/cmaps/Add-RKSJ-V.bcmap +0 -0
  35. package/dist/node_modules/pdfjs-dist/cmaps/Add-V.bcmap +0 -0
  36. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-0.bcmap +0 -0
  37. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-1.bcmap +0 -0
  38. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-2.bcmap +0 -0
  39. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-3.bcmap +0 -0
  40. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-4.bcmap +0 -0
  41. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-5.bcmap +0 -0
  42. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-6.bcmap +0 -0
  43. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  44. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-0.bcmap +0 -0
  45. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-1.bcmap +0 -0
  46. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-2.bcmap +0 -0
  47. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-3.bcmap +0 -0
  48. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-4.bcmap +0 -0
  49. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-5.bcmap +0 -0
  50. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  51. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-0.bcmap +0 -0
  52. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-1.bcmap +0 -0
  53. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-2.bcmap +0 -0
  54. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-3.bcmap +0 -0
  55. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-4.bcmap +0 -0
  56. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-5.bcmap +0 -0
  57. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-6.bcmap +0 -0
  58. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  59. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Korea1-0.bcmap +0 -0
  60. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Korea1-1.bcmap +0 -0
  61. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Korea1-2.bcmap +0 -0
  62. package/dist/node_modules/pdfjs-dist/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  63. package/dist/node_modules/pdfjs-dist/cmaps/B5-H.bcmap +0 -0
  64. package/dist/node_modules/pdfjs-dist/cmaps/B5-V.bcmap +0 -0
  65. package/dist/node_modules/pdfjs-dist/cmaps/B5pc-H.bcmap +0 -0
  66. package/dist/node_modules/pdfjs-dist/cmaps/B5pc-V.bcmap +0 -0
  67. package/dist/node_modules/pdfjs-dist/cmaps/CNS-EUC-H.bcmap +0 -0
  68. package/dist/node_modules/pdfjs-dist/cmaps/CNS-EUC-V.bcmap +0 -0
  69. package/dist/node_modules/pdfjs-dist/cmaps/CNS1-H.bcmap +0 -0
  70. package/dist/node_modules/pdfjs-dist/cmaps/CNS1-V.bcmap +0 -0
  71. package/dist/node_modules/pdfjs-dist/cmaps/CNS2-H.bcmap +0 -0
  72. package/dist/node_modules/pdfjs-dist/cmaps/CNS2-V.bcmap +3 -0
  73. package/dist/node_modules/pdfjs-dist/cmaps/ETHK-B5-H.bcmap +0 -0
  74. package/dist/node_modules/pdfjs-dist/cmaps/ETHK-B5-V.bcmap +0 -0
  75. package/dist/node_modules/pdfjs-dist/cmaps/ETen-B5-H.bcmap +0 -0
  76. package/dist/node_modules/pdfjs-dist/cmaps/ETen-B5-V.bcmap +0 -0
  77. package/dist/node_modules/pdfjs-dist/cmaps/ETenms-B5-H.bcmap +3 -0
  78. package/dist/node_modules/pdfjs-dist/cmaps/ETenms-B5-V.bcmap +0 -0
  79. package/dist/node_modules/pdfjs-dist/cmaps/EUC-H.bcmap +0 -0
  80. package/dist/node_modules/pdfjs-dist/cmaps/EUC-V.bcmap +0 -0
  81. package/dist/node_modules/pdfjs-dist/cmaps/Ext-H.bcmap +0 -0
  82. package/dist/node_modules/pdfjs-dist/cmaps/Ext-RKSJ-H.bcmap +0 -0
  83. package/dist/node_modules/pdfjs-dist/cmaps/Ext-RKSJ-V.bcmap +0 -0
  84. package/dist/node_modules/pdfjs-dist/cmaps/Ext-V.bcmap +0 -0
  85. package/dist/node_modules/pdfjs-dist/cmaps/GB-EUC-H.bcmap +0 -0
  86. package/dist/node_modules/pdfjs-dist/cmaps/GB-EUC-V.bcmap +0 -0
  87. package/dist/node_modules/pdfjs-dist/cmaps/GB-H.bcmap +4 -0
  88. package/dist/node_modules/pdfjs-dist/cmaps/GB-V.bcmap +0 -0
  89. package/dist/node_modules/pdfjs-dist/cmaps/GBK-EUC-H.bcmap +0 -0
  90. package/dist/node_modules/pdfjs-dist/cmaps/GBK-EUC-V.bcmap +0 -0
  91. package/dist/node_modules/pdfjs-dist/cmaps/GBK2K-H.bcmap +0 -0
  92. package/dist/node_modules/pdfjs-dist/cmaps/GBK2K-V.bcmap +0 -0
  93. package/dist/node_modules/pdfjs-dist/cmaps/GBKp-EUC-H.bcmap +0 -0
  94. package/dist/node_modules/pdfjs-dist/cmaps/GBKp-EUC-V.bcmap +0 -0
  95. package/dist/node_modules/pdfjs-dist/cmaps/GBT-EUC-H.bcmap +0 -0
  96. package/dist/node_modules/pdfjs-dist/cmaps/GBT-EUC-V.bcmap +0 -0
  97. package/dist/node_modules/pdfjs-dist/cmaps/GBT-H.bcmap +0 -0
  98. package/dist/node_modules/pdfjs-dist/cmaps/GBT-V.bcmap +0 -0
  99. package/dist/node_modules/pdfjs-dist/cmaps/GBTpc-EUC-H.bcmap +0 -0
  100. package/dist/node_modules/pdfjs-dist/cmaps/GBTpc-EUC-V.bcmap +0 -0
  101. package/dist/node_modules/pdfjs-dist/cmaps/GBpc-EUC-H.bcmap +0 -0
  102. package/dist/node_modules/pdfjs-dist/cmaps/GBpc-EUC-V.bcmap +0 -0
  103. package/dist/node_modules/pdfjs-dist/cmaps/H.bcmap +0 -0
  104. package/dist/node_modules/pdfjs-dist/cmaps/HKdla-B5-H.bcmap +0 -0
  105. package/dist/node_modules/pdfjs-dist/cmaps/HKdla-B5-V.bcmap +0 -0
  106. package/dist/node_modules/pdfjs-dist/cmaps/HKdlb-B5-H.bcmap +0 -0
  107. package/dist/node_modules/pdfjs-dist/cmaps/HKdlb-B5-V.bcmap +0 -0
  108. package/dist/node_modules/pdfjs-dist/cmaps/HKgccs-B5-H.bcmap +0 -0
  109. package/dist/node_modules/pdfjs-dist/cmaps/HKgccs-B5-V.bcmap +0 -0
  110. package/dist/node_modules/pdfjs-dist/cmaps/HKm314-B5-H.bcmap +0 -0
  111. package/dist/node_modules/pdfjs-dist/cmaps/HKm314-B5-V.bcmap +0 -0
  112. package/dist/node_modules/pdfjs-dist/cmaps/HKm471-B5-H.bcmap +0 -0
  113. package/dist/node_modules/pdfjs-dist/cmaps/HKm471-B5-V.bcmap +0 -0
  114. package/dist/node_modules/pdfjs-dist/cmaps/HKscs-B5-H.bcmap +0 -0
  115. package/dist/node_modules/pdfjs-dist/cmaps/HKscs-B5-V.bcmap +0 -0
  116. package/dist/node_modules/pdfjs-dist/cmaps/Hankaku.bcmap +0 -0
  117. package/dist/node_modules/pdfjs-dist/cmaps/Hiragana.bcmap +0 -0
  118. package/dist/node_modules/pdfjs-dist/cmaps/KSC-EUC-H.bcmap +0 -0
  119. package/dist/node_modules/pdfjs-dist/cmaps/KSC-EUC-V.bcmap +0 -0
  120. package/dist/node_modules/pdfjs-dist/cmaps/KSC-H.bcmap +0 -0
  121. package/dist/node_modules/pdfjs-dist/cmaps/KSC-Johab-H.bcmap +0 -0
  122. package/dist/node_modules/pdfjs-dist/cmaps/KSC-Johab-V.bcmap +0 -0
  123. package/dist/node_modules/pdfjs-dist/cmaps/KSC-V.bcmap +0 -0
  124. package/dist/node_modules/pdfjs-dist/cmaps/KSCms-UHC-H.bcmap +0 -0
  125. package/dist/node_modules/pdfjs-dist/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  126. package/dist/node_modules/pdfjs-dist/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  127. package/dist/node_modules/pdfjs-dist/cmaps/KSCms-UHC-V.bcmap +0 -0
  128. package/dist/node_modules/pdfjs-dist/cmaps/KSCpc-EUC-H.bcmap +0 -0
  129. package/dist/node_modules/pdfjs-dist/cmaps/KSCpc-EUC-V.bcmap +0 -0
  130. package/dist/node_modules/pdfjs-dist/cmaps/Katakana.bcmap +0 -0
  131. package/dist/node_modules/pdfjs-dist/cmaps/NWP-H.bcmap +0 -0
  132. package/dist/node_modules/pdfjs-dist/cmaps/NWP-V.bcmap +0 -0
  133. package/dist/node_modules/pdfjs-dist/cmaps/RKSJ-H.bcmap +0 -0
  134. package/dist/node_modules/pdfjs-dist/cmaps/RKSJ-V.bcmap +0 -0
  135. package/dist/node_modules/pdfjs-dist/cmaps/Roman.bcmap +0 -0
  136. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  137. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  138. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  139. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  140. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  141. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  142. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  143. package/dist/node_modules/pdfjs-dist/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  144. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UCS2-H.bcmap +0 -0
  145. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UCS2-V.bcmap +0 -0
  146. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF16-H.bcmap +0 -0
  147. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF16-V.bcmap +0 -0
  148. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF32-H.bcmap +0 -0
  149. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF32-V.bcmap +0 -0
  150. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF8-H.bcmap +0 -0
  151. package/dist/node_modules/pdfjs-dist/cmaps/UniGB-UTF8-V.bcmap +0 -0
  152. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  153. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  154. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  155. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  156. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  157. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  158. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  159. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  160. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  161. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  162. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  163. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  164. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  165. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  166. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  167. package/dist/node_modules/pdfjs-dist/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  168. package/dist/node_modules/pdfjs-dist/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  169. package/dist/node_modules/pdfjs-dist/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  170. package/dist/node_modules/pdfjs-dist/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  171. package/dist/node_modules/pdfjs-dist/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  172. package/dist/node_modules/pdfjs-dist/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  173. package/dist/node_modules/pdfjs-dist/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  174. package/dist/node_modules/pdfjs-dist/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  175. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UCS2-H.bcmap +0 -0
  176. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UCS2-V.bcmap +0 -0
  177. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF16-H.bcmap +0 -0
  178. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF16-V.bcmap +0 -0
  179. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF32-H.bcmap +0 -0
  180. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF32-V.bcmap +0 -0
  181. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF8-H.bcmap +0 -0
  182. package/dist/node_modules/pdfjs-dist/cmaps/UniKS-UTF8-V.bcmap +0 -0
  183. package/dist/node_modules/pdfjs-dist/cmaps/V.bcmap +0 -0
  184. package/dist/node_modules/pdfjs-dist/cmaps/WP-Symbol.bcmap +0 -0
  185. package/dist/node_modules/pdfjs-dist/iccs/CGATS001Compat-v2-micro.icc +0 -0
  186. package/dist/node_modules/pdfjs-dist/legacy/build/pdf.d.mts +1 -0
  187. package/dist/node_modules/pdfjs-dist/legacy/web/images/altText_add.svg +3 -0
  188. package/dist/node_modules/pdfjs-dist/legacy/web/images/altText_disclaimer.svg +3 -0
  189. package/dist/node_modules/pdfjs-dist/legacy/web/images/altText_done.svg +3 -0
  190. package/dist/node_modules/pdfjs-dist/legacy/web/images/altText_spinner.svg +30 -0
  191. package/dist/node_modules/pdfjs-dist/legacy/web/images/altText_warning.svg +3 -0
  192. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-check.svg +11 -0
  193. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-comment.svg +16 -0
  194. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-help.svg +26 -0
  195. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-insert.svg +10 -0
  196. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-key.svg +11 -0
  197. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-newparagraph.svg +11 -0
  198. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-noicon.svg +7 -0
  199. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-note.svg +42 -0
  200. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-paperclip.svg +6 -0
  201. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-paragraph.svg +16 -0
  202. package/dist/node_modules/pdfjs-dist/legacy/web/images/annotation-pushpin.svg +7 -0
  203. package/dist/node_modules/pdfjs-dist/legacy/web/images/checkmark.svg +5 -0
  204. package/dist/node_modules/pdfjs-dist/legacy/web/images/comment-actionsButton.svg +3 -0
  205. package/dist/node_modules/pdfjs-dist/legacy/web/images/comment-closeButton.svg +3 -0
  206. package/dist/node_modules/pdfjs-dist/legacy/web/images/comment-editButton.svg +8 -0
  207. package/dist/node_modules/pdfjs-dist/legacy/web/images/comment-popup-editButton.svg +5 -0
  208. package/dist/node_modules/pdfjs-dist/legacy/web/images/cursor-editorFreeHighlight.svg +6 -0
  209. package/dist/node_modules/pdfjs-dist/legacy/web/images/cursor-editorFreeText.svg +3 -0
  210. package/dist/node_modules/pdfjs-dist/legacy/web/images/cursor-editorInk.svg +4 -0
  211. package/dist/node_modules/pdfjs-dist/legacy/web/images/cursor-editorTextHighlight.svg +8 -0
  212. package/dist/node_modules/pdfjs-dist/legacy/web/images/editor-toolbar-delete.svg +5 -0
  213. package/dist/node_modules/pdfjs-dist/legacy/web/images/editor-toolbar-edit.svg +3 -0
  214. package/dist/node_modules/pdfjs-dist/legacy/web/images/findbarButton-next.svg +3 -0
  215. package/dist/node_modules/pdfjs-dist/legacy/web/images/findbarButton-previous.svg +3 -0
  216. package/dist/node_modules/pdfjs-dist/legacy/web/images/gv-toolbarButton-download.svg +3 -0
  217. package/dist/node_modules/pdfjs-dist/legacy/web/images/loading.svg +1 -0
  218. package/dist/node_modules/pdfjs-dist/legacy/web/images/messageBar_closingButton.svg +3 -0
  219. package/dist/node_modules/pdfjs-dist/legacy/web/images/messageBar_info.svg +3 -0
  220. package/dist/node_modules/pdfjs-dist/legacy/web/images/messageBar_warning.svg +3 -0
  221. package/dist/node_modules/pdfjs-dist/legacy/web/images/pages_closeButton.svg +3 -0
  222. package/dist/node_modules/pdfjs-dist/legacy/web/images/pages_selected.svg +7 -0
  223. package/dist/node_modules/pdfjs-dist/legacy/web/images/pages_viewArrow.svg +3 -0
  224. package/dist/node_modules/pdfjs-dist/legacy/web/images/pages_viewButton.svg +3 -0
  225. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
  226. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-firstPage.svg +3 -0
  227. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-handTool.svg +3 -0
  228. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-lastPage.svg +3 -0
  229. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
  230. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
  231. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
  232. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
  233. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
  234. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
  235. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-selectTool.svg +3 -0
  236. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
  237. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
  238. package/dist/node_modules/pdfjs-dist/legacy/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
  239. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-bookmark.svg +3 -0
  240. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-currentOutlineItem.svg +3 -0
  241. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-download.svg +4 -0
  242. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-editorFreeText.svg +5 -0
  243. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-editorHighlight.svg +6 -0
  244. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-editorInk.svg +4 -0
  245. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-editorSignature.svg +6 -0
  246. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-editorStamp.svg +8 -0
  247. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-menuArrow.svg +3 -0
  248. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-openFile.svg +3 -0
  249. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-pageDown.svg +3 -0
  250. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-pageUp.svg +3 -0
  251. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-presentationMode.svg +3 -0
  252. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-print.svg +3 -0
  253. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-search.svg +3 -0
  254. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
  255. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-viewAttachments.svg +3 -0
  256. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-viewLayers.svg +3 -0
  257. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-viewOutline.svg +3 -0
  258. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-viewThumbnail.svg +3 -0
  259. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-viewsManagerToggle.svg +3 -0
  260. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-zoomIn.svg +3 -0
  261. package/dist/node_modules/pdfjs-dist/legacy/web/images/toolbarButton-zoomOut.svg +3 -0
  262. package/dist/node_modules/pdfjs-dist/legacy/web/images/treeitem-collapsed.svg +1 -0
  263. package/dist/node_modules/pdfjs-dist/legacy/web/images/treeitem-expanded.svg +1 -0
  264. package/dist/node_modules/pdfjs-dist/legacy/web/pdf_viewer.css +6989 -0
  265. package/dist/node_modules/pdfjs-dist/legacy/web/pdf_viewer.d.mts +1 -0
  266. package/dist/node_modules/pdfjs-dist/package.json +1 -0
  267. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitDingbats.pfb +0 -0
  268. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitFixed.pfb +0 -0
  269. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitFixedBold.pfb +0 -0
  270. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  271. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitFixedItalic.pfb +0 -0
  272. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitSerif.pfb +0 -0
  273. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitSerifBold.pfb +0 -0
  274. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  275. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitSerifItalic.pfb +0 -0
  276. package/dist/node_modules/pdfjs-dist/standard_fonts/FoxitSymbol.pfb +0 -0
  277. package/dist/node_modules/pdfjs-dist/standard_fonts/LICENSE_FOXIT +27 -0
  278. package/dist/node_modules/pdfjs-dist/standard_fonts/LICENSE_LIBERATION +102 -0
  279. package/dist/node_modules/pdfjs-dist/standard_fonts/LiberationSans-Bold.ttf +0 -0
  280. package/dist/node_modules/pdfjs-dist/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  281. package/dist/node_modules/pdfjs-dist/standard_fonts/LiberationSans-Italic.ttf +0 -0
  282. package/dist/node_modules/pdfjs-dist/standard_fonts/LiberationSans-Regular.ttf +0 -0
  283. package/dist/node_modules/pdfjs-dist/types/src/display/annotation_layer.d.ts +276 -0
  284. package/dist/node_modules/pdfjs-dist/types/src/display/annotation_storage.d.ts +94 -0
  285. package/dist/node_modules/pdfjs-dist/types/src/display/api.d.ts +1630 -0
  286. package/dist/node_modules/pdfjs-dist/types/src/display/api_utils.d.ts +13 -0
  287. package/dist/node_modules/pdfjs-dist/types/src/display/canvas.d.ts +207 -0
  288. package/dist/node_modules/pdfjs-dist/types/src/display/canvas_dependency_tracker.d.ts +160 -0
  289. package/dist/node_modules/pdfjs-dist/types/src/display/canvas_factory.d.ts +27 -0
  290. package/dist/node_modules/pdfjs-dist/types/src/display/cmap_reader_factory.d.ts +25 -0
  291. package/dist/node_modules/pdfjs-dist/types/src/display/content_disposition.d.ts +7 -0
  292. package/dist/node_modules/pdfjs-dist/types/src/display/display_utils.d.ts +366 -0
  293. package/dist/node_modules/pdfjs-dist/types/src/display/draw_layer.d.ts +22 -0
  294. package/dist/node_modules/pdfjs-dist/types/src/display/editor/alt_text.d.ts +34 -0
  295. package/dist/node_modules/pdfjs-dist/types/src/display/editor/annotation_editor_layer.d.ts +233 -0
  296. package/dist/node_modules/pdfjs-dist/types/src/display/editor/color_picker.d.ts +39 -0
  297. package/dist/node_modules/pdfjs-dist/types/src/display/editor/comment.d.ts +59 -0
  298. package/dist/node_modules/pdfjs-dist/types/src/display/editor/draw.d.ts +117 -0
  299. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/contour.d.ts +3 -0
  300. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/freedraw.d.ts +32 -0
  301. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/highlight.d.ts +37 -0
  302. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/inkdraw.d.ts +129 -0
  303. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/outline.d.ts +19 -0
  304. package/dist/node_modules/pdfjs-dist/types/src/display/editor/drawers/signaturedraw.d.ts +79 -0
  305. package/dist/node_modules/pdfjs-dist/types/src/display/editor/editor.d.ts +578 -0
  306. package/dist/node_modules/pdfjs-dist/types/src/display/editor/freetext.d.ts +63 -0
  307. package/dist/node_modules/pdfjs-dist/types/src/display/editor/highlight.d.ts +76 -0
  308. package/dist/node_modules/pdfjs-dist/types/src/display/editor/ink.d.ts +42 -0
  309. package/dist/node_modules/pdfjs-dist/types/src/display/editor/signature.d.ts +77 -0
  310. package/dist/node_modules/pdfjs-dist/types/src/display/editor/stamp.d.ts +49 -0
  311. package/dist/node_modules/pdfjs-dist/types/src/display/editor/toolbar.d.ts +26 -0
  312. package/dist/node_modules/pdfjs-dist/types/src/display/editor/tools.d.ts +481 -0
  313. package/dist/node_modules/pdfjs-dist/types/src/display/fetch_stream.d.ts +7 -0
  314. package/dist/node_modules/pdfjs-dist/types/src/display/filter_factory.d.ts +29 -0
  315. package/dist/node_modules/pdfjs-dist/types/src/display/font_loader.d.ts +67 -0
  316. package/dist/node_modules/pdfjs-dist/types/src/display/metadata.d.ts +10 -0
  317. package/dist/node_modules/pdfjs-dist/types/src/display/network.d.ts +20 -0
  318. package/dist/node_modules/pdfjs-dist/types/src/display/network_utils.d.ts +15 -0
  319. package/dist/node_modules/pdfjs-dist/types/src/display/node_stream.d.ts +5 -0
  320. package/dist/node_modules/pdfjs-dist/types/src/display/node_utils.d.ts +32 -0
  321. package/dist/node_modules/pdfjs-dist/types/src/display/optional_content_config.d.ts +18 -0
  322. package/dist/node_modules/pdfjs-dist/types/src/display/pattern_helper.d.ts +77 -0
  323. package/dist/node_modules/pdfjs-dist/types/src/display/pdf_objects.d.ts +40 -0
  324. package/dist/node_modules/pdfjs-dist/types/src/display/standard_fontdata_factory.d.ts +20 -0
  325. package/dist/node_modules/pdfjs-dist/types/src/display/svg_factory.d.ts +14 -0
  326. package/dist/node_modules/pdfjs-dist/types/src/display/text_layer.d.ts +85 -0
  327. package/dist/node_modules/pdfjs-dist/types/src/display/touch_manager.d.ts +18 -0
  328. package/dist/node_modules/pdfjs-dist/types/src/display/transport_stream.d.ts +10 -0
  329. package/dist/node_modules/pdfjs-dist/types/src/display/wasm_factory.d.ts +20 -0
  330. package/dist/node_modules/pdfjs-dist/types/src/display/worker_options.d.ts +25 -0
  331. package/dist/node_modules/pdfjs-dist/types/src/display/xfa_layer.d.ts +47 -0
  332. package/dist/node_modules/pdfjs-dist/types/src/display/xfa_text.d.ts +21 -0
  333. package/dist/node_modules/pdfjs-dist/types/src/pdf.d.ts +64 -0
  334. package/dist/node_modules/pdfjs-dist/types/src/shared/base_pdf_stream.d.ts +120 -0
  335. package/dist/node_modules/pdfjs-dist/types/src/shared/image_utils.d.ts +17 -0
  336. package/dist/node_modules/pdfjs-dist/types/src/shared/message_handler.d.ts +48 -0
  337. package/dist/node_modules/pdfjs-dist/types/src/shared/murmurhash3.d.ts +7 -0
  338. package/dist/node_modules/pdfjs-dist/types/src/shared/obj-bin-transform.d.ts +90 -0
  339. package/dist/node_modules/pdfjs-dist/types/src/shared/scripting_utils.d.ts +18 -0
  340. package/dist/node_modules/pdfjs-dist/types/src/shared/util.d.ts +420 -0
  341. package/dist/node_modules/pdfjs-dist/types/web/annotation_editor_layer_builder.d.ts +65 -0
  342. package/dist/node_modules/pdfjs-dist/types/web/annotation_layer_builder.d.ts +108 -0
  343. package/dist/node_modules/pdfjs-dist/types/web/app_options.d.ts +16 -0
  344. package/dist/node_modules/pdfjs-dist/types/web/autolinker.d.ts +29 -0
  345. package/dist/node_modules/pdfjs-dist/types/web/base_pdf_page_view.d.ts +28 -0
  346. package/dist/node_modules/pdfjs-dist/types/web/comment_manager.d.ts +20 -0
  347. package/dist/node_modules/pdfjs-dist/types/web/download_manager.d.ts +13 -0
  348. package/dist/node_modules/pdfjs-dist/types/web/draw_layer_builder.d.ts +22 -0
  349. package/dist/node_modules/pdfjs-dist/types/web/event_utils.d.ts +77 -0
  350. package/dist/node_modules/pdfjs-dist/types/web/generic_scripting.d.ts +8 -0
  351. package/dist/node_modules/pdfjs-dist/types/web/genericl10n.d.ts +22 -0
  352. package/dist/node_modules/pdfjs-dist/types/web/interfaces.d.ts +174 -0
  353. package/dist/node_modules/pdfjs-dist/types/web/l10n.d.ts +34 -0
  354. package/dist/node_modules/pdfjs-dist/types/web/menu.d.ts +11 -0
  355. package/dist/node_modules/pdfjs-dist/types/web/pdf_find_controller.d.ts +134 -0
  356. package/dist/node_modules/pdfjs-dist/types/web/pdf_find_utils.d.ts +16 -0
  357. package/dist/node_modules/pdfjs-dist/types/web/pdf_history.d.ts +116 -0
  358. package/dist/node_modules/pdfjs-dist/types/web/pdf_link_service.d.ts +147 -0
  359. package/dist/node_modules/pdfjs-dist/types/web/pdf_page_detail_view.d.ts +33 -0
  360. package/dist/node_modules/pdfjs-dist/types/web/pdf_page_view.d.ts +244 -0
  361. package/dist/node_modules/pdfjs-dist/types/web/pdf_rendering_queue.d.ts +54 -0
  362. package/dist/node_modules/pdfjs-dist/types/web/pdf_scripting_manager.component.d.ts +5 -0
  363. package/dist/node_modules/pdfjs-dist/types/web/pdf_scripting_manager.d.ts +57 -0
  364. package/dist/node_modules/pdfjs-dist/types/web/pdf_single_page_viewer.d.ts +7 -0
  365. package/dist/node_modules/pdfjs-dist/types/web/pdf_thumbnail_view.d.ts +108 -0
  366. package/dist/node_modules/pdfjs-dist/types/web/pdf_thumbnail_viewer.d.ts +136 -0
  367. package/dist/node_modules/pdfjs-dist/types/web/pdf_viewer.component.d.ts +23 -0
  368. package/dist/node_modules/pdfjs-dist/types/web/pdf_viewer.d.ts +625 -0
  369. package/dist/node_modules/pdfjs-dist/types/web/sidebar.d.ts +65 -0
  370. package/dist/node_modules/pdfjs-dist/types/web/struct_tree_layer_builder.d.ts +25 -0
  371. package/dist/node_modules/pdfjs-dist/types/web/text_accessibility.d.ts +44 -0
  372. package/dist/node_modules/pdfjs-dist/types/web/text_highlighter.d.ts +63 -0
  373. package/dist/node_modules/pdfjs-dist/types/web/text_layer_builder.d.ts +65 -0
  374. package/dist/node_modules/pdfjs-dist/types/web/ui_utils.d.ts +274 -0
  375. package/dist/node_modules/pdfjs-dist/types/web/xfa_layer_builder.d.ts +50 -0
  376. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_JBIG2 +196 -0
  377. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_OPENJPEG +39 -0
  378. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  379. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  380. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_PDFJS_QCMS +22 -0
  381. package/dist/node_modules/pdfjs-dist/wasm/LICENSE_QCMS +21 -0
  382. package/dist/node_modules/pdfjs-dist/wasm/jbig2.wasm +0 -0
  383. package/dist/node_modules/pdfjs-dist/wasm/openjpeg.wasm +0 -0
  384. package/dist/node_modules/pdfjs-dist/wasm/openjpeg_nowasm_fallback.js +17 -0
  385. package/dist/node_modules/pdfjs-dist/wasm/qcms_bg.wasm +0 -0
  386. package/dist/node_modules/pdfjs-dist/web/images/altText_add.svg +3 -0
  387. package/dist/node_modules/pdfjs-dist/web/images/altText_disclaimer.svg +3 -0
  388. package/dist/node_modules/pdfjs-dist/web/images/altText_done.svg +3 -0
  389. package/dist/node_modules/pdfjs-dist/web/images/altText_spinner.svg +30 -0
  390. package/dist/node_modules/pdfjs-dist/web/images/altText_warning.svg +3 -0
  391. package/dist/node_modules/pdfjs-dist/web/images/annotation-check.svg +11 -0
  392. package/dist/node_modules/pdfjs-dist/web/images/annotation-comment.svg +16 -0
  393. package/dist/node_modules/pdfjs-dist/web/images/annotation-help.svg +26 -0
  394. package/dist/node_modules/pdfjs-dist/web/images/annotation-insert.svg +10 -0
  395. package/dist/node_modules/pdfjs-dist/web/images/annotation-key.svg +11 -0
  396. package/dist/node_modules/pdfjs-dist/web/images/annotation-newparagraph.svg +11 -0
  397. package/dist/node_modules/pdfjs-dist/web/images/annotation-noicon.svg +7 -0
  398. package/dist/node_modules/pdfjs-dist/web/images/annotation-note.svg +42 -0
  399. package/dist/node_modules/pdfjs-dist/web/images/annotation-paperclip.svg +6 -0
  400. package/dist/node_modules/pdfjs-dist/web/images/annotation-paragraph.svg +16 -0
  401. package/dist/node_modules/pdfjs-dist/web/images/annotation-pushpin.svg +7 -0
  402. package/dist/node_modules/pdfjs-dist/web/images/checkmark.svg +5 -0
  403. package/dist/node_modules/pdfjs-dist/web/images/comment-actionsButton.svg +3 -0
  404. package/dist/node_modules/pdfjs-dist/web/images/comment-closeButton.svg +3 -0
  405. package/dist/node_modules/pdfjs-dist/web/images/comment-editButton.svg +8 -0
  406. package/dist/node_modules/pdfjs-dist/web/images/comment-popup-editButton.svg +5 -0
  407. package/dist/node_modules/pdfjs-dist/web/images/cursor-editorFreeHighlight.svg +6 -0
  408. package/dist/node_modules/pdfjs-dist/web/images/cursor-editorFreeText.svg +3 -0
  409. package/dist/node_modules/pdfjs-dist/web/images/cursor-editorInk.svg +4 -0
  410. package/dist/node_modules/pdfjs-dist/web/images/cursor-editorTextHighlight.svg +8 -0
  411. package/dist/node_modules/pdfjs-dist/web/images/editor-toolbar-delete.svg +5 -0
  412. package/dist/node_modules/pdfjs-dist/web/images/editor-toolbar-edit.svg +3 -0
  413. package/dist/node_modules/pdfjs-dist/web/images/findbarButton-next.svg +3 -0
  414. package/dist/node_modules/pdfjs-dist/web/images/findbarButton-previous.svg +3 -0
  415. package/dist/node_modules/pdfjs-dist/web/images/gv-toolbarButton-download.svg +3 -0
  416. package/dist/node_modules/pdfjs-dist/web/images/loading.svg +1 -0
  417. package/dist/node_modules/pdfjs-dist/web/images/messageBar_closingButton.svg +3 -0
  418. package/dist/node_modules/pdfjs-dist/web/images/messageBar_info.svg +3 -0
  419. package/dist/node_modules/pdfjs-dist/web/images/messageBar_warning.svg +3 -0
  420. package/dist/node_modules/pdfjs-dist/web/images/pages_closeButton.svg +3 -0
  421. package/dist/node_modules/pdfjs-dist/web/images/pages_selected.svg +7 -0
  422. package/dist/node_modules/pdfjs-dist/web/images/pages_viewArrow.svg +3 -0
  423. package/dist/node_modules/pdfjs-dist/web/images/pages_viewButton.svg +3 -0
  424. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
  425. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-firstPage.svg +3 -0
  426. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-handTool.svg +3 -0
  427. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-lastPage.svg +3 -0
  428. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
  429. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
  430. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
  431. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
  432. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
  433. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
  434. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-selectTool.svg +3 -0
  435. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
  436. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
  437. package/dist/node_modules/pdfjs-dist/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
  438. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-bookmark.svg +3 -0
  439. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-currentOutlineItem.svg +3 -0
  440. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-download.svg +4 -0
  441. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-editorFreeText.svg +5 -0
  442. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-editorHighlight.svg +6 -0
  443. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-editorInk.svg +4 -0
  444. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-editorSignature.svg +6 -0
  445. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-editorStamp.svg +8 -0
  446. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-menuArrow.svg +3 -0
  447. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-openFile.svg +3 -0
  448. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-pageDown.svg +3 -0
  449. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-pageUp.svg +3 -0
  450. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-presentationMode.svg +3 -0
  451. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-print.svg +3 -0
  452. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-search.svg +3 -0
  453. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
  454. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-viewAttachments.svg +3 -0
  455. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-viewLayers.svg +3 -0
  456. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-viewOutline.svg +3 -0
  457. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-viewThumbnail.svg +3 -0
  458. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-viewsManagerToggle.svg +3 -0
  459. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-zoomIn.svg +3 -0
  460. package/dist/node_modules/pdfjs-dist/web/images/toolbarButton-zoomOut.svg +3 -0
  461. package/dist/node_modules/pdfjs-dist/web/images/treeitem-collapsed.svg +1 -0
  462. package/dist/node_modules/pdfjs-dist/web/images/treeitem-expanded.svg +1 -0
  463. package/dist/node_modules/pdfjs-dist/web/pdf_viewer.css +6989 -0
  464. package/dist/node_modules/pdfjs-dist/web/pdf_viewer.d.mts +1 -0
  465. package/dist/node_modules/url-join/package.json +1 -1
  466. package/dist/shared/previewer/filePreviewTypes.d.ts +1 -0
  467. package/dist/shared/previewer/filePreviewTypes.js +238 -6
  468. package/package.json +4 -5
@@ -0,0 +1,1630 @@
1
+ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
2
+ export type RefProxy = {
3
+ num: number;
4
+ gen: number;
5
+ };
6
+ /**
7
+ * Document initialization / loading parameters object.
8
+ */
9
+ export type DocumentInitParameters = {
10
+ /**
11
+ * - The URL of the PDF.
12
+ */
13
+ url?: string | URL | undefined;
14
+ /**
15
+ * -
16
+ * Binary PDF data.
17
+ * Use TypedArrays (Uint8Array) to improve the memory usage. If PDF data is
18
+ * BASE64-encoded, use `atob()` to convert it to a binary string first.
19
+ *
20
+ * NOTE: If TypedArrays are used they will generally be transferred to the
21
+ * worker-thread. This will help reduce main-thread memory usage, however
22
+ * it will take ownership of the TypedArrays.
23
+ */
24
+ data?: string | number[] | ArrayBuffer | TypedArray | undefined;
25
+ /**
26
+ * - Basic authentication headers.
27
+ */
28
+ httpHeaders?: Object | undefined;
29
+ /**
30
+ * - Indicates whether or not
31
+ * cross-site Access-Control requests should be made using credentials such
32
+ * as cookies or authorization headers. The default is `false`.
33
+ */
34
+ withCredentials?: boolean | undefined;
35
+ /**
36
+ * - For decrypting password-protected PDFs.
37
+ */
38
+ password?: string | undefined;
39
+ /**
40
+ * - The PDF file length. It's used for progress
41
+ * reports and range requests operations.
42
+ */
43
+ length?: number | undefined;
44
+ /**
45
+ * - Allows for using a custom range
46
+ * transport implementation.
47
+ */
48
+ range?: PDFDataRangeTransport | undefined;
49
+ /**
50
+ * - Specify maximum number of bytes fetched
51
+ * per range request. The default value is 65536 (= 2^16).
52
+ */
53
+ rangeChunkSize?: number | undefined;
54
+ /**
55
+ * - The worker that will be used for loading and
56
+ * parsing the PDF data.
57
+ */
58
+ worker?: PDFWorker | undefined;
59
+ /**
60
+ * - Controls the logging level; the constants
61
+ * from {@link VerbosityLevel} should be used.
62
+ */
63
+ verbosity?: number | undefined;
64
+ /**
65
+ * - The base URL of the document, used when
66
+ * attempting to recover valid absolute URLs for annotations, and outline
67
+ * items, that (incorrectly) only specify relative URLs.
68
+ */
69
+ docBaseUrl?: string | undefined;
70
+ /**
71
+ * - The URL where the predefined Adobe CMaps are
72
+ * located. Include the trailing slash.
73
+ */
74
+ cMapUrl?: string | undefined;
75
+ /**
76
+ * - Specifies if the Adobe CMaps are binary
77
+ * packed or not. The default value is `true`.
78
+ */
79
+ cMapPacked?: boolean | undefined;
80
+ /**
81
+ * - The factory that will be used when
82
+ * reading built-in CMap files.
83
+ * The default value is {DOMCMapReaderFactory}.
84
+ */
85
+ CMapReaderFactory?: Object | undefined;
86
+ /**
87
+ * - The URL where the predefined ICC profiles are
88
+ * located. Include the trailing slash.
89
+ */
90
+ iccUrl?: string | undefined;
91
+ /**
92
+ * - When `true`, fonts that aren't
93
+ * embedded in the PDF document will fallback to a system font.
94
+ * The default value is `true` in web environments and `false` in Node.js;
95
+ * unless `disableFontFace === true` in which case this defaults to `false`
96
+ * regardless of the environment (to prevent completely broken fonts).
97
+ */
98
+ useSystemFonts?: boolean | undefined;
99
+ /**
100
+ * - The URL where the standard font
101
+ * files are located. Include the trailing slash.
102
+ */
103
+ standardFontDataUrl?: string | undefined;
104
+ /**
105
+ * - The factory that will be used
106
+ * when reading the standard font files.
107
+ * The default value is {DOMStandardFontDataFactory}.
108
+ */
109
+ StandardFontDataFactory?: Object | undefined;
110
+ /**
111
+ * - The URL where the wasm files are located.
112
+ * Include the trailing slash.
113
+ */
114
+ wasmUrl?: string | undefined;
115
+ /**
116
+ * - The factory that will be used
117
+ * when reading the wasm files.
118
+ * The default value is {DOMWasmFactory}.
119
+ */
120
+ WasmFactory?: Object | undefined;
121
+ /**
122
+ * - Enable using the Fetch API in the
123
+ * worker-thread when reading CMap and standard font files. When `true`,
124
+ * the `CMapReaderFactory`, `StandardFontDataFactory`, and `WasmFactory`
125
+ * options are ignored.
126
+ * The default value is `true` in web environments and `false` in Node.js.
127
+ */
128
+ useWorkerFetch?: boolean | undefined;
129
+ /**
130
+ * - Attempt to use WebAssembly in order to
131
+ * improve e.g. image decoding performance.
132
+ * The default value is `true`.
133
+ */
134
+ useWasm?: boolean | undefined;
135
+ /**
136
+ * - Reject certain promises, e.g.
137
+ * `getOperatorList`, `getTextContent`, and `RenderTask`, when the associated
138
+ * PDF data cannot be successfully parsed, instead of attempting to recover
139
+ * whatever possible of the data. The default value is `false`.
140
+ */
141
+ stopAtErrors?: boolean | undefined;
142
+ /**
143
+ * - The maximum allowed image size in total
144
+ * pixels, i.e. width * height. Images above this value will not be rendered.
145
+ * Use -1 for no limit, which is also the default value.
146
+ */
147
+ maxImageSize?: number | undefined;
148
+ /**
149
+ * - Determines if we can evaluate strings
150
+ * as JavaScript. Primarily used to improve performance of PDF functions.
151
+ * The default value is `true`.
152
+ */
153
+ isEvalSupported?: boolean | undefined;
154
+ /**
155
+ * - Determines if we can use
156
+ * `OffscreenCanvas` in the worker. Primarily used to improve performance of
157
+ * image conversion/rendering.
158
+ * The default value is `true` in web environments and `false` in Node.js.
159
+ */
160
+ isOffscreenCanvasSupported?: boolean | undefined;
161
+ /**
162
+ * - Determines if we can use
163
+ * `ImageDecoder` in the worker. Primarily used to improve performance of
164
+ * image conversion/rendering.
165
+ * The default value is `true` in web environments and `false` in Node.js.
166
+ *
167
+ * NOTE: Also temporarily disabled in Chromium browsers, until we no longer
168
+ * support the affected browser versions, because of various bugs:
169
+ *
170
+ * - Crashes when using the BMP decoder with huge images, e.g. issue6741.pdf;
171
+ * see https://issues.chromium.org/issues/374807001
172
+ *
173
+ * - Broken images when using the JPEG decoder with images that have custom
174
+ * colour profiles, e.g. GitHub discussion 19030;
175
+ * see https://issues.chromium.org/issues/378869810
176
+ */
177
+ isImageDecoderSupported?: boolean | undefined;
178
+ /**
179
+ * - The integer value is used to
180
+ * know when an image must be resized (uses `OffscreenCanvas` in the worker).
181
+ * If it's -1 then a possibly slow algorithm is used to guess the max value.
182
+ */
183
+ canvasMaxAreaInBytes?: number | undefined;
184
+ /**
185
+ * - By default fonts are converted to
186
+ * OpenType fonts and loaded via the Font Loading API or `@font-face` rules.
187
+ * If disabled, fonts will be rendered using a built-in font renderer that
188
+ * constructs the glyphs with primitive path commands.
189
+ * The default value is `false` in web environments and `true` in Node.js.
190
+ */
191
+ disableFontFace?: boolean | undefined;
192
+ /**
193
+ * - Include additional properties,
194
+ * which are unused during rendering of PDF documents, when exporting the
195
+ * parsed font data from the worker-thread. This may be useful for debugging
196
+ * purposes (and backwards compatibility), but note that it will lead to
197
+ * increased memory usage. The default value is `false`.
198
+ */
199
+ fontExtraProperties?: boolean | undefined;
200
+ /**
201
+ * - Render Xfa forms if any.
202
+ * The default value is `false`.
203
+ */
204
+ enableXfa?: boolean | undefined;
205
+ /**
206
+ * - Specify an explicit document
207
+ * context to create elements with and to load resources, such as fonts,
208
+ * into. Defaults to the current document.
209
+ */
210
+ ownerDocument?: HTMLDocument | undefined;
211
+ /**
212
+ * - Disable range request loading of PDF
213
+ * files. When enabled, and if the server supports partial content requests,
214
+ * then the PDF will be fetched in chunks. The default value is `false`.
215
+ */
216
+ disableRange?: boolean | undefined;
217
+ /**
218
+ * - Disable streaming of PDF file data.
219
+ * By default PDF.js attempts to load PDF files in chunks. The default value
220
+ * is `false`.
221
+ */
222
+ disableStream?: boolean | undefined;
223
+ /**
224
+ * - Disable pre-fetching of PDF file
225
+ * data. When range requests are enabled PDF.js will automatically keep
226
+ * fetching more data even if it isn't needed to display the current page.
227
+ * The default value is `false`.
228
+ *
229
+ * NOTE: It is also necessary to disable streaming, see above, in order for
230
+ * disabling of pre-fetching to work correctly.
231
+ */
232
+ disableAutoFetch?: boolean | undefined;
233
+ /**
234
+ * - Enables special hooks for debugging PDF.js
235
+ * (see `web/debugger.js`). The default value is `false`.
236
+ */
237
+ pdfBug?: boolean | undefined;
238
+ /**
239
+ * - The factory that will be used when
240
+ * creating canvases. The default value is {DOMCanvasFactory}.
241
+ */
242
+ CanvasFactory?: Object | undefined;
243
+ /**
244
+ * - The factory that will be used to
245
+ * create SVG filters when rendering some images on the main canvas.
246
+ * The default value is {DOMFilterFactory}.
247
+ */
248
+ FilterFactory?: Object | undefined;
249
+ /**
250
+ * - Enables hardware acceleration for
251
+ * rendering. The default value is `false`.
252
+ */
253
+ enableHWA?: boolean | undefined;
254
+ };
255
+ export type OnProgressParameters = {
256
+ /**
257
+ * - Currently loaded number of bytes.
258
+ */
259
+ loaded: number;
260
+ /**
261
+ * - Total number of bytes in the PDF file.
262
+ */
263
+ total: number;
264
+ /**
265
+ * - Currently loaded percentage, as an integer value
266
+ * in the [0, 100] range. If `total` is undefined, the percentage is `NaN`.
267
+ */
268
+ percent: number;
269
+ };
270
+ /**
271
+ * Page getViewport parameters.
272
+ */
273
+ export type GetViewportParameters = {
274
+ /**
275
+ * - The desired scale of the viewport.
276
+ */
277
+ scale: number;
278
+ /**
279
+ * - The desired rotation, in degrees, of
280
+ * the viewport. If omitted it defaults to the page rotation.
281
+ */
282
+ rotation?: number | undefined;
283
+ /**
284
+ * - The horizontal, i.e. x-axis, offset.
285
+ * The default value is `0`.
286
+ */
287
+ offsetX?: number | undefined;
288
+ /**
289
+ * - The vertical, i.e. y-axis, offset.
290
+ * The default value is `0`.
291
+ */
292
+ offsetY?: number | undefined;
293
+ /**
294
+ * - If true, the y-axis will not be
295
+ * flipped. The default value is `false`.
296
+ */
297
+ dontFlip?: boolean | undefined;
298
+ };
299
+ /**
300
+ * Page getTextContent parameters.
301
+ */
302
+ export type getTextContentParameters = {
303
+ /**
304
+ * - When true include marked
305
+ * content items in the items array of TextContent. The default is `false`.
306
+ */
307
+ includeMarkedContent?: boolean | undefined;
308
+ /**
309
+ * - When true the text is *not*
310
+ * normalized in the worker-thread. The default is `false`.
311
+ */
312
+ disableNormalization?: boolean | undefined;
313
+ };
314
+ /**
315
+ * Page text content.
316
+ */
317
+ export type TextContent = {
318
+ /**
319
+ * - Array of
320
+ * {@link TextItem} and {@link TextMarkedContent} objects. TextMarkedContent
321
+ * items are included when includeMarkedContent is true.
322
+ */
323
+ items: Array<TextItem | TextMarkedContent>;
324
+ /**
325
+ * - {@link TextStyle} objects,
326
+ * indexed by font name.
327
+ */
328
+ styles: {
329
+ [x: string]: TextStyle;
330
+ };
331
+ /**
332
+ * - The document /Lang attribute.
333
+ */
334
+ lang: string | null;
335
+ };
336
+ /**
337
+ * Page text content part.
338
+ */
339
+ export type TextItem = {
340
+ /**
341
+ * - Text content.
342
+ */
343
+ str: string;
344
+ /**
345
+ * - Text direction: 'ttb', 'ltr' or 'rtl'.
346
+ */
347
+ dir: string;
348
+ /**
349
+ * - Transformation matrix.
350
+ */
351
+ transform: Array<any>;
352
+ /**
353
+ * - Width in device space.
354
+ */
355
+ width: number;
356
+ /**
357
+ * - Height in device space.
358
+ */
359
+ height: number;
360
+ /**
361
+ * - Font name used by PDF.js for converted font.
362
+ */
363
+ fontName: string;
364
+ /**
365
+ * - Indicating if the text content is followed by a
366
+ * line-break.
367
+ */
368
+ hasEOL: boolean;
369
+ };
370
+ /**
371
+ * Page text marked content part.
372
+ */
373
+ export type TextMarkedContent = {
374
+ /**
375
+ * - Either 'beginMarkedContent',
376
+ * 'beginMarkedContentProps', or 'endMarkedContent'.
377
+ */
378
+ type: string;
379
+ /**
380
+ * - The marked content identifier. Only used for type
381
+ * 'beginMarkedContentProps'.
382
+ */
383
+ id: string;
384
+ };
385
+ /**
386
+ * Text style.
387
+ */
388
+ export type TextStyle = {
389
+ /**
390
+ * - Font ascent.
391
+ */
392
+ ascent: number;
393
+ /**
394
+ * - Font descent.
395
+ */
396
+ descent: number;
397
+ /**
398
+ * - Whether or not the text is in vertical mode.
399
+ */
400
+ vertical: boolean;
401
+ /**
402
+ * - The possible font family.
403
+ */
404
+ fontFamily: string;
405
+ };
406
+ /**
407
+ * Page annotation parameters.
408
+ */
409
+ export type GetAnnotationsParameters = {
410
+ /**
411
+ * - Determines the annotations that are fetched,
412
+ * can be 'display' (viewable annotations), 'print' (printable annotations),
413
+ * or 'any' (all annotations). The default value is 'display'.
414
+ */
415
+ intent?: string | undefined;
416
+ };
417
+ /**
418
+ * Page render parameters.
419
+ */
420
+ export type RenderParameters = {
421
+ /**
422
+ * - A DOM Canvas object. The default
423
+ * value is the canvas associated with the `canvasContext` parameter if no
424
+ * value is provided explicitly.
425
+ */
426
+ canvas: HTMLCanvasElement | null;
427
+ /**
428
+ * - Rendering viewport obtained by calling
429
+ * the `PDFPageProxy.getViewport` method.
430
+ */
431
+ viewport: PageViewport;
432
+ /**
433
+ * - 2D context of a DOM
434
+ * Canvas object for backwards compatibility; it is recommended to use the
435
+ * `canvas` parameter instead.
436
+ * If the context must absolutely be used to render the page, the canvas must
437
+ * be null.
438
+ */
439
+ canvasContext?: CanvasRenderingContext2D | undefined;
440
+ /**
441
+ * - Rendering intent, can be 'display', 'print',
442
+ * or 'any'. The default value is 'display'.
443
+ */
444
+ intent?: string | undefined;
445
+ /**
446
+ * Controls which annotations are rendered
447
+ * onto the canvas, for annotations with appearance-data; the values from
448
+ * {@link AnnotationMode} should be used. The following values are supported:
449
+ * - `AnnotationMode.DISABLE`, which disables all annotations.
450
+ * - `AnnotationMode.ENABLE`, which includes all possible annotations (thus
451
+ * it also depends on the `intent`-option, see above).
452
+ * - `AnnotationMode.ENABLE_FORMS`, which excludes annotations that contain
453
+ * interactive form elements (those will be rendered in the display layer).
454
+ * - `AnnotationMode.ENABLE_STORAGE`, which includes all possible annotations
455
+ * (as above) but where interactive form elements are updated with data
456
+ * from the {@link AnnotationStorage}-instance; useful e.g. for printing.
457
+ * The default value is `AnnotationMode.ENABLE`.
458
+ */
459
+ annotationMode?: number | undefined;
460
+ /**
461
+ * - Additional transform, applied just
462
+ * before viewport transform.
463
+ */
464
+ transform?: any[] | undefined;
465
+ /**
466
+ * - Background
467
+ * to use for the canvas.
468
+ * Any valid `canvas.fillStyle` can be used: a `DOMString` parsed as CSS
469
+ * <color> value, a `CanvasGradient` object (a linear or radial gradient) or
470
+ * a `CanvasPattern` object (a repetitive image). The default value is
471
+ * 'rgb(255,255,255)'.
472
+ *
473
+ * NOTE: This option may be partially, or completely, ignored when the
474
+ * `pageColors`-option is used.
475
+ */
476
+ background?: string | CanvasGradient | CanvasPattern | undefined;
477
+ /**
478
+ * - Overwrites background and foreground colors
479
+ * with user defined ones in order to improve readability in high contrast
480
+ * mode.
481
+ */
482
+ pageColors?: Object | undefined;
483
+ /**
484
+ * -
485
+ * A promise that should resolve with an {@link OptionalContentConfig}created from `PDFDocumentProxy.getOptionalContentConfig`. If `null`,
486
+ * the configuration will be fetched automatically with the default visibility
487
+ * states set.
488
+ */
489
+ optionalContentConfigPromise?: Promise<OptionalContentConfig> | undefined;
490
+ /**
491
+ * - Map some
492
+ * annotation ids with canvases used to render them.
493
+ */
494
+ annotationCanvasMap?: Map<string, HTMLCanvasElement> | undefined;
495
+ printAnnotationStorage?: PrintAnnotationStorage | undefined;
496
+ /**
497
+ * - Render the page in editing mode.
498
+ */
499
+ isEditing?: boolean | undefined;
500
+ /**
501
+ * - Record the dependencies and bounding
502
+ * boxes of all PDF operations that render onto the canvas.
503
+ */
504
+ recordOperations?: boolean | undefined;
505
+ /**
506
+ * - If provided, only
507
+ * run for which this function returns `true`.
508
+ */
509
+ operationsFilter?: OperationsFilter | undefined;
510
+ };
511
+ export type OperationsFilter = (index: number) => boolean;
512
+ /**
513
+ * Page getOperatorList parameters.
514
+ */
515
+ export type GetOperatorListParameters = {
516
+ /**
517
+ * - Rendering intent, can be 'display', 'print',
518
+ * or 'any'. The default value is 'display'.
519
+ */
520
+ intent?: string | undefined;
521
+ /**
522
+ * Controls which annotations are included
523
+ * in the operatorList, for annotations with appearance-data; the values from
524
+ * {@link AnnotationMode} should be used. The following values are supported:
525
+ * - `AnnotationMode.DISABLE`, which disables all annotations.
526
+ * - `AnnotationMode.ENABLE`, which includes all possible annotations (thus
527
+ * it also depends on the `intent`-option, see above).
528
+ * - `AnnotationMode.ENABLE_FORMS`, which excludes annotations that contain
529
+ * interactive form elements (those will be rendered in the display layer).
530
+ * - `AnnotationMode.ENABLE_STORAGE`, which includes all possible annotations
531
+ * (as above) but where interactive form elements are updated with data
532
+ * from the {@link AnnotationStorage}-instance; useful e.g. for printing.
533
+ * The default value is `AnnotationMode.ENABLE`.
534
+ */
535
+ annotationMode?: number | undefined;
536
+ printAnnotationStorage?: PrintAnnotationStorage | undefined;
537
+ /**
538
+ * - Render the page in editing mode.
539
+ */
540
+ isEditing?: boolean | undefined;
541
+ };
542
+ /**
543
+ * Structure tree node. The root node will have a role "Root".
544
+ */
545
+ export type StructTreeNode = {
546
+ /**
547
+ * - Array of
548
+ * {@link StructTreeNode} and {@link StructTreeContent} objects.
549
+ */
550
+ children: Array<StructTreeNode | StructTreeContent>;
551
+ /**
552
+ * - element's role, already mapped if a role map exists
553
+ * in the PDF.
554
+ */
555
+ role: string;
556
+ };
557
+ /**
558
+ * Structure tree content.
559
+ */
560
+ export type StructTreeContent = {
561
+ /**
562
+ * - either "content" for page and stream structure
563
+ * elements or "object" for object references.
564
+ */
565
+ type: string;
566
+ /**
567
+ * - unique id that will map to the text layer.
568
+ */
569
+ id: string;
570
+ };
571
+ /**
572
+ * PDF page operator list.
573
+ */
574
+ export type PDFOperatorList = {
575
+ /**
576
+ * - Array containing the operator functions.
577
+ */
578
+ fnArray: Array<number>;
579
+ /**
580
+ * - Array containing the arguments of the
581
+ * functions.
582
+ */
583
+ argsArray: Array<any>;
584
+ };
585
+ export type PDFWorkerParameters = {
586
+ /**
587
+ * - The name of the worker.
588
+ */
589
+ name?: string | undefined;
590
+ /**
591
+ * - The `workerPort` object.
592
+ */
593
+ port?: Worker | undefined;
594
+ /**
595
+ * - Controls the logging level;
596
+ * the constants from {@link VerbosityLevel} should be used.
597
+ */
598
+ verbosity?: number | undefined;
599
+ };
600
+ /** @type {string} */
601
+ export const build: string;
602
+ /**
603
+ * @typedef { Int8Array | Uint8Array | Uint8ClampedArray |
604
+ * Int16Array | Uint16Array |
605
+ * Int32Array | Uint32Array | Float32Array |
606
+ * Float64Array
607
+ * } TypedArray
608
+ */
609
+ /**
610
+ * @typedef {Object} RefProxy
611
+ * @property {number} num
612
+ * @property {number} gen
613
+ */
614
+ /**
615
+ * Document initialization / loading parameters object.
616
+ *
617
+ * @typedef {Object} DocumentInitParameters
618
+ * @property {string | URL} [url] - The URL of the PDF.
619
+ * @property {TypedArray | ArrayBuffer | Array<number> | string} [data] -
620
+ * Binary PDF data.
621
+ * Use TypedArrays (Uint8Array) to improve the memory usage. If PDF data is
622
+ * BASE64-encoded, use `atob()` to convert it to a binary string first.
623
+ *
624
+ * NOTE: If TypedArrays are used they will generally be transferred to the
625
+ * worker-thread. This will help reduce main-thread memory usage, however
626
+ * it will take ownership of the TypedArrays.
627
+ * @property {Object} [httpHeaders] - Basic authentication headers.
628
+ * @property {boolean} [withCredentials] - Indicates whether or not
629
+ * cross-site Access-Control requests should be made using credentials such
630
+ * as cookies or authorization headers. The default is `false`.
631
+ * @property {string} [password] - For decrypting password-protected PDFs.
632
+ * @property {number} [length] - The PDF file length. It's used for progress
633
+ * reports and range requests operations.
634
+ * @property {PDFDataRangeTransport} [range] - Allows for using a custom range
635
+ * transport implementation.
636
+ * @property {number} [rangeChunkSize] - Specify maximum number of bytes fetched
637
+ * per range request. The default value is 65536 (= 2^16).
638
+ * @property {PDFWorker} [worker] - The worker that will be used for loading and
639
+ * parsing the PDF data.
640
+ * @property {number} [verbosity] - Controls the logging level; the constants
641
+ * from {@link VerbosityLevel} should be used.
642
+ * @property {string} [docBaseUrl] - The base URL of the document, used when
643
+ * attempting to recover valid absolute URLs for annotations, and outline
644
+ * items, that (incorrectly) only specify relative URLs.
645
+ * @property {string} [cMapUrl] - The URL where the predefined Adobe CMaps are
646
+ * located. Include the trailing slash.
647
+ * @property {boolean} [cMapPacked] - Specifies if the Adobe CMaps are binary
648
+ * packed or not. The default value is `true`.
649
+ * @property {Object} [CMapReaderFactory] - The factory that will be used when
650
+ * reading built-in CMap files.
651
+ * The default value is {DOMCMapReaderFactory}.
652
+ * @property {string} [iccUrl] - The URL where the predefined ICC profiles are
653
+ * located. Include the trailing slash.
654
+ * @property {boolean} [useSystemFonts] - When `true`, fonts that aren't
655
+ * embedded in the PDF document will fallback to a system font.
656
+ * The default value is `true` in web environments and `false` in Node.js;
657
+ * unless `disableFontFace === true` in which case this defaults to `false`
658
+ * regardless of the environment (to prevent completely broken fonts).
659
+ * @property {string} [standardFontDataUrl] - The URL where the standard font
660
+ * files are located. Include the trailing slash.
661
+ * @property {Object} [StandardFontDataFactory] - The factory that will be used
662
+ * when reading the standard font files.
663
+ * The default value is {DOMStandardFontDataFactory}.
664
+ * @property {string} [wasmUrl] - The URL where the wasm files are located.
665
+ * Include the trailing slash.
666
+ * @property {Object} [WasmFactory] - The factory that will be used
667
+ * when reading the wasm files.
668
+ * The default value is {DOMWasmFactory}.
669
+ * @property {boolean} [useWorkerFetch] - Enable using the Fetch API in the
670
+ * worker-thread when reading CMap and standard font files. When `true`,
671
+ * the `CMapReaderFactory`, `StandardFontDataFactory`, and `WasmFactory`
672
+ * options are ignored.
673
+ * The default value is `true` in web environments and `false` in Node.js.
674
+ * @property {boolean} [useWasm] - Attempt to use WebAssembly in order to
675
+ * improve e.g. image decoding performance.
676
+ * The default value is `true`.
677
+ * @property {boolean} [stopAtErrors] - Reject certain promises, e.g.
678
+ * `getOperatorList`, `getTextContent`, and `RenderTask`, when the associated
679
+ * PDF data cannot be successfully parsed, instead of attempting to recover
680
+ * whatever possible of the data. The default value is `false`.
681
+ * @property {number} [maxImageSize] - The maximum allowed image size in total
682
+ * pixels, i.e. width * height. Images above this value will not be rendered.
683
+ * Use -1 for no limit, which is also the default value.
684
+ * @property {boolean} [isEvalSupported] - Determines if we can evaluate strings
685
+ * as JavaScript. Primarily used to improve performance of PDF functions.
686
+ * The default value is `true`.
687
+ * @property {boolean} [isOffscreenCanvasSupported] - Determines if we can use
688
+ * `OffscreenCanvas` in the worker. Primarily used to improve performance of
689
+ * image conversion/rendering.
690
+ * The default value is `true` in web environments and `false` in Node.js.
691
+ * @property {boolean} [isImageDecoderSupported] - Determines if we can use
692
+ * `ImageDecoder` in the worker. Primarily used to improve performance of
693
+ * image conversion/rendering.
694
+ * The default value is `true` in web environments and `false` in Node.js.
695
+ *
696
+ * NOTE: Also temporarily disabled in Chromium browsers, until we no longer
697
+ * support the affected browser versions, because of various bugs:
698
+ *
699
+ * - Crashes when using the BMP decoder with huge images, e.g. issue6741.pdf;
700
+ * see https://issues.chromium.org/issues/374807001
701
+ *
702
+ * - Broken images when using the JPEG decoder with images that have custom
703
+ * colour profiles, e.g. GitHub discussion 19030;
704
+ * see https://issues.chromium.org/issues/378869810
705
+ *
706
+ * @property {number} [canvasMaxAreaInBytes] - The integer value is used to
707
+ * know when an image must be resized (uses `OffscreenCanvas` in the worker).
708
+ * If it's -1 then a possibly slow algorithm is used to guess the max value.
709
+ * @property {boolean} [disableFontFace] - By default fonts are converted to
710
+ * OpenType fonts and loaded via the Font Loading API or `@font-face` rules.
711
+ * If disabled, fonts will be rendered using a built-in font renderer that
712
+ * constructs the glyphs with primitive path commands.
713
+ * The default value is `false` in web environments and `true` in Node.js.
714
+ * @property {boolean} [fontExtraProperties] - Include additional properties,
715
+ * which are unused during rendering of PDF documents, when exporting the
716
+ * parsed font data from the worker-thread. This may be useful for debugging
717
+ * purposes (and backwards compatibility), but note that it will lead to
718
+ * increased memory usage. The default value is `false`.
719
+ * @property {boolean} [enableXfa] - Render Xfa forms if any.
720
+ * The default value is `false`.
721
+ * @property {HTMLDocument} [ownerDocument] - Specify an explicit document
722
+ * context to create elements with and to load resources, such as fonts,
723
+ * into. Defaults to the current document.
724
+ * @property {boolean} [disableRange] - Disable range request loading of PDF
725
+ * files. When enabled, and if the server supports partial content requests,
726
+ * then the PDF will be fetched in chunks. The default value is `false`.
727
+ * @property {boolean} [disableStream] - Disable streaming of PDF file data.
728
+ * By default PDF.js attempts to load PDF files in chunks. The default value
729
+ * is `false`.
730
+ * @property {boolean} [disableAutoFetch] - Disable pre-fetching of PDF file
731
+ * data. When range requests are enabled PDF.js will automatically keep
732
+ * fetching more data even if it isn't needed to display the current page.
733
+ * The default value is `false`.
734
+ *
735
+ * NOTE: It is also necessary to disable streaming, see above, in order for
736
+ * disabling of pre-fetching to work correctly.
737
+ * @property {boolean} [pdfBug] - Enables special hooks for debugging PDF.js
738
+ * (see `web/debugger.js`). The default value is `false`.
739
+ * @property {Object} [CanvasFactory] - The factory that will be used when
740
+ * creating canvases. The default value is {DOMCanvasFactory}.
741
+ * @property {Object} [FilterFactory] - The factory that will be used to
742
+ * create SVG filters when rendering some images on the main canvas.
743
+ * The default value is {DOMFilterFactory}.
744
+ * @property {boolean} [enableHWA] - Enables hardware acceleration for
745
+ * rendering. The default value is `false`.
746
+ */
747
+ /**
748
+ * This is the main entry point for loading a PDF and interacting with it.
749
+ *
750
+ * NOTE: If a URL is used to fetch the PDF data a standard Fetch API call (or
751
+ * XHR as fallback) is used, which means it must follow same origin rules,
752
+ * e.g. no cross-domain requests without CORS.
753
+ *
754
+ * @param {string | URL | TypedArray | ArrayBuffer | DocumentInitParameters}
755
+ * src - Can be a URL where a PDF file is located, a typed array (Uint8Array)
756
+ * already populated with data, or a parameter object.
757
+ * @returns {PDFDocumentLoadingTask}
758
+ */
759
+ export function getDocument(src?: string | URL | TypedArray | ArrayBuffer | DocumentInitParameters): PDFDocumentLoadingTask;
760
+ /**
761
+ * Abstract class to support range requests file loading.
762
+ *
763
+ * NOTE: The TypedArrays passed to the constructor and relevant methods below
764
+ * will generally be transferred to the worker-thread. This will help reduce
765
+ * main-thread memory usage, however it will take ownership of the TypedArrays.
766
+ */
767
+ export class PDFDataRangeTransport {
768
+ /**
769
+ * @param {number} length
770
+ * @param {Uint8Array|null} initialData
771
+ * @param {boolean} [progressiveDone]
772
+ * @param {string} [contentDispositionFilename]
773
+ */
774
+ constructor(length: number, initialData: Uint8Array | null, progressiveDone?: boolean, contentDispositionFilename?: string);
775
+ length: number;
776
+ initialData: Uint8Array<ArrayBufferLike> | null;
777
+ progressiveDone: boolean;
778
+ contentDispositionFilename: string;
779
+ /**
780
+ * @param {function} listener
781
+ */
782
+ addRangeListener(listener: Function): void;
783
+ /**
784
+ * @param {function} listener
785
+ */
786
+ addProgressListener(listener: Function): void;
787
+ /**
788
+ * @param {function} listener
789
+ */
790
+ addProgressiveReadListener(listener: Function): void;
791
+ /**
792
+ * @param {function} listener
793
+ */
794
+ addProgressiveDoneListener(listener: Function): void;
795
+ /**
796
+ * @param {number} begin
797
+ * @param {Uint8Array|null} chunk
798
+ */
799
+ onDataRange(begin: number, chunk: Uint8Array | null): void;
800
+ /**
801
+ * @param {number} loaded
802
+ * @param {number|undefined} total
803
+ */
804
+ onDataProgress(loaded: number, total: number | undefined): void;
805
+ /**
806
+ * @param {Uint8Array|null} chunk
807
+ */
808
+ onDataProgressiveRead(chunk: Uint8Array | null): void;
809
+ onDataProgressiveDone(): void;
810
+ transportReady(): void;
811
+ /**
812
+ * @param {number} begin
813
+ * @param {number} end
814
+ */
815
+ requestDataRange(begin: number, end: number): void;
816
+ abort(): void;
817
+ #private;
818
+ }
819
+ /**
820
+ * @typedef {Object} OnProgressParameters
821
+ * @property {number} loaded - Currently loaded number of bytes.
822
+ * @property {number} total - Total number of bytes in the PDF file.
823
+ * @property {number} percent - Currently loaded percentage, as an integer value
824
+ * in the [0, 100] range. If `total` is undefined, the percentage is `NaN`.
825
+ */
826
+ /**
827
+ * The loading task controls the operations required to load a PDF document
828
+ * (such as network requests) and provides a way to listen for completion,
829
+ * after which individual pages can be rendered.
830
+ */
831
+ export class PDFDocumentLoadingTask {
832
+ static "__#private@#docId": number;
833
+ /**
834
+ * @private
835
+ */
836
+ private _capability;
837
+ /**
838
+ * @private
839
+ */
840
+ private _transport;
841
+ /**
842
+ * @private
843
+ */
844
+ private _worker;
845
+ /**
846
+ * Unique identifier for the document loading task.
847
+ * @type {string}
848
+ */
849
+ docId: string;
850
+ /**
851
+ * Whether the loading task is destroyed or not.
852
+ * @type {boolean}
853
+ */
854
+ destroyed: boolean;
855
+ /**
856
+ * Callback to request a password if a wrong or no password was provided.
857
+ * The callback receives two parameters: a function that should be called
858
+ * with the new password, and a reason (see {@link PasswordResponses}).
859
+ * @type {function}
860
+ */
861
+ onPassword: Function;
862
+ /**
863
+ * Callback to be able to monitor the loading progress of the PDF file
864
+ * (necessary to implement e.g. a loading bar).
865
+ * The callback receives an {@link OnProgressParameters} argument.
866
+ * @type {function}
867
+ */
868
+ onProgress: Function;
869
+ /**
870
+ * Promise for document loading task completion.
871
+ * @type {Promise<PDFDocumentProxy>}
872
+ */
873
+ get promise(): Promise<PDFDocumentProxy>;
874
+ /**
875
+ * Abort all network requests and destroy the worker.
876
+ * @returns {Promise<void>} A promise that is resolved when destruction is
877
+ * completed.
878
+ */
879
+ destroy(): Promise<void>;
880
+ /**
881
+ * Attempt to fetch the raw data of the PDF document, when e.g.
882
+ * - An exception was thrown during document initialization.
883
+ * - An `onPassword` callback is delaying initialization.
884
+ * @returns {Promise<Uint8Array>}
885
+ */
886
+ getData(): Promise<Uint8Array>;
887
+ }
888
+ /**
889
+ * Proxy to a `PDFDocument` in the worker thread.
890
+ */
891
+ export class PDFDocumentProxy {
892
+ constructor(pdfInfo: any, transport: any);
893
+ _pdfInfo: any;
894
+ _transport: any;
895
+ /**
896
+ * @type {AnnotationStorage} Storage for annotation data in forms.
897
+ */
898
+ get annotationStorage(): AnnotationStorage;
899
+ /**
900
+ * @type {Object} The canvas factory instance.
901
+ */
902
+ get canvasFactory(): Object;
903
+ /**
904
+ * @type {Object} The filter factory instance.
905
+ */
906
+ get filterFactory(): Object;
907
+ /**
908
+ * @type {number} Total number of pages in the PDF file.
909
+ */
910
+ get numPages(): number;
911
+ /**
912
+ * @type {Array<string | null>} A (not guaranteed to be) unique ID to identify
913
+ * the PDF document.
914
+ * NOTE: The first element will always be defined for all PDF documents,
915
+ * whereas the second element is only defined for *modified* PDF documents.
916
+ */
917
+ get fingerprints(): Array<string | null>;
918
+ /**
919
+ * @type {boolean} True if only XFA form.
920
+ */
921
+ get isPureXfa(): boolean;
922
+ /**
923
+ * NOTE: This is (mostly) intended to support printing of XFA forms.
924
+ *
925
+ * @type {Object | null} An object representing a HTML tree structure
926
+ * to render the XFA, or `null` when no XFA form exists.
927
+ */
928
+ get allXfaHtml(): Object | null;
929
+ /**
930
+ * @param {number} pageNumber - The page number to get. The first page is 1.
931
+ * @returns {Promise<PDFPageProxy>} A promise that is resolved with
932
+ * a {@link PDFPageProxy} object.
933
+ */
934
+ getPage(pageNumber: number): Promise<PDFPageProxy>;
935
+ /**
936
+ * @param {RefProxy} ref - The page reference.
937
+ * @returns {Promise<number>} A promise that is resolved with the page index,
938
+ * starting from zero, that is associated with the reference.
939
+ */
940
+ getPageIndex(ref: RefProxy): Promise<number>;
941
+ /**
942
+ * @returns {Promise<Object<string, Array<any>>>} A promise that is resolved
943
+ * with a mapping from named destinations to references.
944
+ *
945
+ * This can be slow for large documents. Use `getDestination` instead.
946
+ */
947
+ getDestinations(): Promise<{
948
+ [x: string]: Array<any>;
949
+ }>;
950
+ /**
951
+ * @param {string} id - The named destination to get.
952
+ * @returns {Promise<Array<any> | null>} A promise that is resolved with all
953
+ * information of the given named destination, or `null` when the named
954
+ * destination is not present in the PDF file.
955
+ */
956
+ getDestination(id: string): Promise<Array<any> | null>;
957
+ /**
958
+ * @returns {Promise<Array<string> | null>} A promise that is resolved with
959
+ * an {Array} containing the page labels that correspond to the page
960
+ * indexes, or `null` when no page labels are present in the PDF file.
961
+ */
962
+ getPageLabels(): Promise<Array<string> | null>;
963
+ /**
964
+ * @returns {Promise<string>} A promise that is resolved with a {string}
965
+ * containing the page layout name.
966
+ */
967
+ getPageLayout(): Promise<string>;
968
+ /**
969
+ * @returns {Promise<string>} A promise that is resolved with a {string}
970
+ * containing the page mode name.
971
+ */
972
+ getPageMode(): Promise<string>;
973
+ /**
974
+ * @returns {Promise<Object | null>} A promise that is resolved with an
975
+ * {Object} containing the viewer preferences, or `null` when no viewer
976
+ * preferences are present in the PDF file.
977
+ */
978
+ getViewerPreferences(): Promise<Object | null>;
979
+ /**
980
+ * @returns {Promise<any | null>} A promise that is resolved with an {Array}
981
+ * containing the destination, or `null` when no open action is present
982
+ * in the PDF.
983
+ */
984
+ getOpenAction(): Promise<any | null>;
985
+ /**
986
+ * @returns {Promise<any>} A promise that is resolved with a lookup table
987
+ * for mapping named attachments to their content.
988
+ */
989
+ getAttachments(): Promise<any>;
990
+ /**
991
+ * @param {Set<number>} types - The annotation types to retrieve.
992
+ * @param {Set<number>} pageIndexesToSkip
993
+ * @returns {Promise<Array<Object>>} A promise that is resolved with a list of
994
+ * annotations data.
995
+ */
996
+ getAnnotationsByType(types: Set<number>, pageIndexesToSkip: Set<number>): Promise<Array<Object>>;
997
+ /**
998
+ * @returns {Promise<Object | null>} A promise that is resolved with
999
+ * an {Object} with the JavaScript actions:
1000
+ * - from the name tree.
1001
+ * - from A or AA entries in the catalog dictionary.
1002
+ * , or `null` if no JavaScript exists.
1003
+ */
1004
+ getJSActions(): Promise<Object | null>;
1005
+ /**
1006
+ * @typedef {Object} OutlineNode
1007
+ * @property {string} title
1008
+ * @property {boolean} bold
1009
+ * @property {boolean} italic
1010
+ * @property {Uint8ClampedArray} color - The color in RGB format to use for
1011
+ * display purposes.
1012
+ * @property {string | Array<any> | null} dest
1013
+ * @property {string | null} url
1014
+ * @property {string | undefined} unsafeUrl
1015
+ * @property {boolean | undefined} newWindow
1016
+ * @property {number | undefined} count
1017
+ * @property {Array<OutlineNode>} items
1018
+ */
1019
+ /**
1020
+ * @returns {Promise<Array<OutlineNode>>} A promise that is resolved with an
1021
+ * {Array} that is a tree outline (if it has one) of the PDF file.
1022
+ */
1023
+ getOutline(): Promise<Array<{
1024
+ title: string;
1025
+ bold: boolean;
1026
+ italic: boolean;
1027
+ /**
1028
+ * - The color in RGB format to use for
1029
+ * display purposes.
1030
+ */
1031
+ color: Uint8ClampedArray;
1032
+ dest: string | Array<any> | null;
1033
+ url: string | null;
1034
+ unsafeUrl: string | undefined;
1035
+ newWindow: boolean | undefined;
1036
+ count: number | undefined;
1037
+ items: Array</*elided*/ any>;
1038
+ }>>;
1039
+ /**
1040
+ * @typedef {Object} GetOptionalContentConfigParameters
1041
+ * @property {string} [intent] - Determines the optional content groups that
1042
+ * are visible by default; valid values are:
1043
+ * - 'display' (viewable groups).
1044
+ * - 'print' (printable groups).
1045
+ * - 'any' (all groups).
1046
+ * The default value is 'display'.
1047
+ */
1048
+ /**
1049
+ * @param {GetOptionalContentConfigParameters} [params] - Optional content
1050
+ * config parameters.
1051
+ * @returns {Promise<OptionalContentConfig>} A promise that is resolved with
1052
+ * an {@link OptionalContentConfig} that contains all the optional content
1053
+ * groups (assuming that the document has any).
1054
+ */
1055
+ getOptionalContentConfig({ intent }?: {
1056
+ /**
1057
+ * - Determines the optional content groups that
1058
+ * are visible by default; valid values are:
1059
+ * - 'display' (viewable groups).
1060
+ * - 'print' (printable groups).
1061
+ * - 'any' (all groups).
1062
+ * The default value is 'display'.
1063
+ */
1064
+ intent?: string | undefined;
1065
+ }): Promise<OptionalContentConfig>;
1066
+ /**
1067
+ * @returns {Promise<Array<number> | null>} A promise that is resolved with
1068
+ * an {Array} that contains the permission flags for the PDF document, or
1069
+ * `null` when no permissions are present in the PDF file.
1070
+ */
1071
+ getPermissions(): Promise<Array<number> | null>;
1072
+ /**
1073
+ * @returns {Promise<{ info: Object, metadata: Metadata }>} A promise that is
1074
+ * resolved with an {Object} that has `info` and `metadata` properties.
1075
+ * `info` is an {Object} filled with anything available in the information
1076
+ * dictionary and similarly `metadata` is a {Metadata} object with
1077
+ * information from the metadata section of the PDF.
1078
+ */
1079
+ getMetadata(): Promise<{
1080
+ info: Object;
1081
+ metadata: Metadata;
1082
+ }>;
1083
+ /**
1084
+ * @typedef {Object} MarkInfo
1085
+ * Properties correspond to Table 321 of the PDF 32000-1:2008 spec.
1086
+ * @property {boolean} Marked
1087
+ * @property {boolean} UserProperties
1088
+ * @property {boolean} Suspects
1089
+ */
1090
+ /**
1091
+ * @returns {Promise<MarkInfo | null>} A promise that is resolved with
1092
+ * a {MarkInfo} object that contains the MarkInfo flags for the PDF
1093
+ * document, or `null` when no MarkInfo values are present in the PDF file.
1094
+ */
1095
+ getMarkInfo(): Promise<{
1096
+ Marked: boolean;
1097
+ UserProperties: boolean;
1098
+ Suspects: boolean;
1099
+ } | null>;
1100
+ /**
1101
+ * @returns {Promise<Uint8Array>} A promise that is resolved with a
1102
+ * {Uint8Array} containing the raw data of the PDF document.
1103
+ */
1104
+ getData(): Promise<Uint8Array>;
1105
+ /**
1106
+ * @returns {Promise<Uint8Array>} A promise that is resolved with a
1107
+ * {Uint8Array} containing the full data of the saved document.
1108
+ */
1109
+ saveDocument(): Promise<Uint8Array>;
1110
+ /**
1111
+ * @typedef {Object} PageInfo
1112
+ * @property {null|Uint8Array} document
1113
+ * @property {Array<Array<number>|number>} [includePages]
1114
+ * included ranges or indices.
1115
+ * @property {Array<Array<number>|number>} [excludePages]
1116
+ * excluded ranges or indices.
1117
+ */
1118
+ /**
1119
+ * @param {Array<PageInfo>} pageInfos - The pages to extract.
1120
+ * @returns {Promise<Uint8Array>} A promise that is resolved with a
1121
+ * {Uint8Array} containing the full data of the saved document.
1122
+ */
1123
+ extractPages(pageInfos: Array<{
1124
+ document: null | Uint8Array;
1125
+ /**
1126
+ * included ranges or indices.
1127
+ */
1128
+ includePages?: (number | number[])[] | undefined;
1129
+ /**
1130
+ * excluded ranges or indices.
1131
+ */
1132
+ excludePages?: (number | number[])[] | undefined;
1133
+ }>): Promise<Uint8Array>;
1134
+ /**
1135
+ * @returns {Promise<{ length: number }>} A promise that is resolved when the
1136
+ * document's data is loaded. It is resolved with an {Object} that contains
1137
+ * the `length` property that indicates size of the PDF data in bytes.
1138
+ */
1139
+ getDownloadInfo(): Promise<{
1140
+ length: number;
1141
+ }>;
1142
+ /**
1143
+ * Cleans up resources allocated by the document on both the main and worker
1144
+ * threads.
1145
+ *
1146
+ * NOTE: Do not, under any circumstances, call this method when rendering is
1147
+ * currently ongoing since that may lead to rendering errors.
1148
+ *
1149
+ * @param {boolean} [keepLoadedFonts] - Let fonts remain attached to the DOM.
1150
+ * NOTE: This will increase persistent memory usage, hence don't use this
1151
+ * option unless absolutely necessary. The default value is `false`.
1152
+ * @returns {Promise} A promise that is resolved when clean-up has finished.
1153
+ */
1154
+ cleanup(keepLoadedFonts?: boolean): Promise<any>;
1155
+ /**
1156
+ * Destroys the current document instance and terminates the worker.
1157
+ */
1158
+ destroy(): Promise<void>;
1159
+ /**
1160
+ * @param {RefProxy} ref - The page reference.
1161
+ * @returns {number | null} The page number, if it's cached.
1162
+ */
1163
+ cachedPageNumber(ref: RefProxy): number | null;
1164
+ /**
1165
+ * @type {DocumentInitParameters} A subset of the current
1166
+ * {DocumentInitParameters}, which are needed in the viewer.
1167
+ */
1168
+ get loadingParams(): DocumentInitParameters;
1169
+ /**
1170
+ * @type {PDFDocumentLoadingTask} The loadingTask for the current document.
1171
+ */
1172
+ get loadingTask(): PDFDocumentLoadingTask;
1173
+ /**
1174
+ * @returns {Promise<Object<string, Array<Object>> | null>} A promise that is
1175
+ * resolved with an {Object} containing /AcroForm field data for the JS
1176
+ * sandbox, or `null` when no field data is present in the PDF file.
1177
+ */
1178
+ getFieldObjects(): Promise<{
1179
+ [x: string]: Array<Object>;
1180
+ } | null>;
1181
+ /**
1182
+ * @returns {Promise<boolean>} A promise that is resolved with `true`
1183
+ * if some /AcroForm fields have JavaScript actions.
1184
+ */
1185
+ hasJSActions(): Promise<boolean>;
1186
+ /**
1187
+ * @returns {Promise<Array<string> | null>} A promise that is resolved with an
1188
+ * {Array<string>} containing IDs of annotations that have a calculation
1189
+ * action, or `null` when no such annotations are present in the PDF file.
1190
+ */
1191
+ getCalculationOrderIds(): Promise<Array<string> | null>;
1192
+ }
1193
+ /**
1194
+ * Page getViewport parameters.
1195
+ *
1196
+ * @typedef {Object} GetViewportParameters
1197
+ * @property {number} scale - The desired scale of the viewport.
1198
+ * @property {number} [rotation] - The desired rotation, in degrees, of
1199
+ * the viewport. If omitted it defaults to the page rotation.
1200
+ * @property {number} [offsetX] - The horizontal, i.e. x-axis, offset.
1201
+ * The default value is `0`.
1202
+ * @property {number} [offsetY] - The vertical, i.e. y-axis, offset.
1203
+ * The default value is `0`.
1204
+ * @property {boolean} [dontFlip] - If true, the y-axis will not be
1205
+ * flipped. The default value is `false`.
1206
+ */
1207
+ /**
1208
+ * Page getTextContent parameters.
1209
+ *
1210
+ * @typedef {Object} getTextContentParameters
1211
+ * @property {boolean} [includeMarkedContent] - When true include marked
1212
+ * content items in the items array of TextContent. The default is `false`.
1213
+ * @property {boolean} [disableNormalization] - When true the text is *not*
1214
+ * normalized in the worker-thread. The default is `false`.
1215
+ */
1216
+ /**
1217
+ * Page text content.
1218
+ *
1219
+ * @typedef {Object} TextContent
1220
+ * @property {Array<TextItem | TextMarkedContent>} items - Array of
1221
+ * {@link TextItem} and {@link TextMarkedContent} objects. TextMarkedContent
1222
+ * items are included when includeMarkedContent is true.
1223
+ * @property {Object<string, TextStyle>} styles - {@link TextStyle} objects,
1224
+ * indexed by font name.
1225
+ * @property {string | null} lang - The document /Lang attribute.
1226
+ */
1227
+ /**
1228
+ * Page text content part.
1229
+ *
1230
+ * @typedef {Object} TextItem
1231
+ * @property {string} str - Text content.
1232
+ * @property {string} dir - Text direction: 'ttb', 'ltr' or 'rtl'.
1233
+ * @property {Array<any>} transform - Transformation matrix.
1234
+ * @property {number} width - Width in device space.
1235
+ * @property {number} height - Height in device space.
1236
+ * @property {string} fontName - Font name used by PDF.js for converted font.
1237
+ * @property {boolean} hasEOL - Indicating if the text content is followed by a
1238
+ * line-break.
1239
+ */
1240
+ /**
1241
+ * Page text marked content part.
1242
+ *
1243
+ * @typedef {Object} TextMarkedContent
1244
+ * @property {string} type - Either 'beginMarkedContent',
1245
+ * 'beginMarkedContentProps', or 'endMarkedContent'.
1246
+ * @property {string} id - The marked content identifier. Only used for type
1247
+ * 'beginMarkedContentProps'.
1248
+ */
1249
+ /**
1250
+ * Text style.
1251
+ *
1252
+ * @typedef {Object} TextStyle
1253
+ * @property {number} ascent - Font ascent.
1254
+ * @property {number} descent - Font descent.
1255
+ * @property {boolean} vertical - Whether or not the text is in vertical mode.
1256
+ * @property {string} fontFamily - The possible font family.
1257
+ */
1258
+ /**
1259
+ * Page annotation parameters.
1260
+ *
1261
+ * @typedef {Object} GetAnnotationsParameters
1262
+ * @property {string} [intent] - Determines the annotations that are fetched,
1263
+ * can be 'display' (viewable annotations), 'print' (printable annotations),
1264
+ * or 'any' (all annotations). The default value is 'display'.
1265
+ */
1266
+ /**
1267
+ * Page render parameters.
1268
+ *
1269
+ * @typedef {Object} RenderParameters
1270
+ * @property {HTMLCanvasElement|null} canvas - A DOM Canvas object. The default
1271
+ * value is the canvas associated with the `canvasContext` parameter if no
1272
+ * value is provided explicitly.
1273
+ * @property {PageViewport} viewport - Rendering viewport obtained by calling
1274
+ * the `PDFPageProxy.getViewport` method.
1275
+ * @property {CanvasRenderingContext2D} [canvasContext] - 2D context of a DOM
1276
+ * Canvas object for backwards compatibility; it is recommended to use the
1277
+ * `canvas` parameter instead.
1278
+ * If the context must absolutely be used to render the page, the canvas must
1279
+ * be null.
1280
+ * @property {string} [intent] - Rendering intent, can be 'display', 'print',
1281
+ * or 'any'. The default value is 'display'.
1282
+ * @property {number} [annotationMode] Controls which annotations are rendered
1283
+ * onto the canvas, for annotations with appearance-data; the values from
1284
+ * {@link AnnotationMode} should be used. The following values are supported:
1285
+ * - `AnnotationMode.DISABLE`, which disables all annotations.
1286
+ * - `AnnotationMode.ENABLE`, which includes all possible annotations (thus
1287
+ * it also depends on the `intent`-option, see above).
1288
+ * - `AnnotationMode.ENABLE_FORMS`, which excludes annotations that contain
1289
+ * interactive form elements (those will be rendered in the display layer).
1290
+ * - `AnnotationMode.ENABLE_STORAGE`, which includes all possible annotations
1291
+ * (as above) but where interactive form elements are updated with data
1292
+ * from the {@link AnnotationStorage}-instance; useful e.g. for printing.
1293
+ * The default value is `AnnotationMode.ENABLE`.
1294
+ * @property {Array<any>} [transform] - Additional transform, applied just
1295
+ * before viewport transform.
1296
+ * @property {CanvasGradient | CanvasPattern | string} [background] - Background
1297
+ * to use for the canvas.
1298
+ * Any valid `canvas.fillStyle` can be used: a `DOMString` parsed as CSS
1299
+ * <color> value, a `CanvasGradient` object (a linear or radial gradient) or
1300
+ * a `CanvasPattern` object (a repetitive image). The default value is
1301
+ * 'rgb(255,255,255)'.
1302
+ *
1303
+ * NOTE: This option may be partially, or completely, ignored when the
1304
+ * `pageColors`-option is used.
1305
+ * @property {Object} [pageColors] - Overwrites background and foreground colors
1306
+ * with user defined ones in order to improve readability in high contrast
1307
+ * mode.
1308
+ * @property {Promise<OptionalContentConfig>} [optionalContentConfigPromise] -
1309
+ * A promise that should resolve with an {@link OptionalContentConfig}
1310
+ * created from `PDFDocumentProxy.getOptionalContentConfig`. If `null`,
1311
+ * the configuration will be fetched automatically with the default visibility
1312
+ * states set.
1313
+ * @property {Map<string, HTMLCanvasElement>} [annotationCanvasMap] - Map some
1314
+ * annotation ids with canvases used to render them.
1315
+ * @property {PrintAnnotationStorage} [printAnnotationStorage]
1316
+ * @property {boolean} [isEditing] - Render the page in editing mode.
1317
+ * @property {boolean} [recordOperations] - Record the dependencies and bounding
1318
+ * boxes of all PDF operations that render onto the canvas.
1319
+ * @property {OperationsFilter} [operationsFilter] - If provided, only
1320
+ * run for which this function returns `true`.
1321
+ */
1322
+ /**
1323
+ * @callback OperationsFilter
1324
+ * @param {number} index - The index of the operation.
1325
+ * @returns {boolean} If false, the operation is ignored.
1326
+ */
1327
+ /**
1328
+ * Page getOperatorList parameters.
1329
+ *
1330
+ * @typedef {Object} GetOperatorListParameters
1331
+ * @property {string} [intent] - Rendering intent, can be 'display', 'print',
1332
+ * or 'any'. The default value is 'display'.
1333
+ * @property {number} [annotationMode] Controls which annotations are included
1334
+ * in the operatorList, for annotations with appearance-data; the values from
1335
+ * {@link AnnotationMode} should be used. The following values are supported:
1336
+ * - `AnnotationMode.DISABLE`, which disables all annotations.
1337
+ * - `AnnotationMode.ENABLE`, which includes all possible annotations (thus
1338
+ * it also depends on the `intent`-option, see above).
1339
+ * - `AnnotationMode.ENABLE_FORMS`, which excludes annotations that contain
1340
+ * interactive form elements (those will be rendered in the display layer).
1341
+ * - `AnnotationMode.ENABLE_STORAGE`, which includes all possible annotations
1342
+ * (as above) but where interactive form elements are updated with data
1343
+ * from the {@link AnnotationStorage}-instance; useful e.g. for printing.
1344
+ * The default value is `AnnotationMode.ENABLE`.
1345
+ * @property {PrintAnnotationStorage} [printAnnotationStorage]
1346
+ * @property {boolean} [isEditing] - Render the page in editing mode.
1347
+ */
1348
+ /**
1349
+ * Structure tree node. The root node will have a role "Root".
1350
+ *
1351
+ * @typedef {Object} StructTreeNode
1352
+ * @property {Array<StructTreeNode | StructTreeContent>} children - Array of
1353
+ * {@link StructTreeNode} and {@link StructTreeContent} objects.
1354
+ * @property {string} role - element's role, already mapped if a role map exists
1355
+ * in the PDF.
1356
+ */
1357
+ /**
1358
+ * Structure tree content.
1359
+ *
1360
+ * @typedef {Object} StructTreeContent
1361
+ * @property {string} type - either "content" for page and stream structure
1362
+ * elements or "object" for object references.
1363
+ * @property {string} id - unique id that will map to the text layer.
1364
+ */
1365
+ /**
1366
+ * PDF page operator list.
1367
+ *
1368
+ * @typedef {Object} PDFOperatorList
1369
+ * @property {Array<number>} fnArray - Array containing the operator functions.
1370
+ * @property {Array<any>} argsArray - Array containing the arguments of the
1371
+ * functions.
1372
+ */
1373
+ /**
1374
+ * Proxy to a `PDFPage` in the worker thread.
1375
+ */
1376
+ export class PDFPageProxy {
1377
+ constructor(pageIndex: any, pageInfo: any, transport: any, pdfBug?: boolean);
1378
+ _pageIndex: any;
1379
+ _pageInfo: any;
1380
+ _transport: any;
1381
+ _stats: StatTimer | null;
1382
+ _pdfBug: boolean;
1383
+ /** @type {PDFObjects} */
1384
+ commonObjs: PDFObjects;
1385
+ objs: PDFObjects;
1386
+ _intentStates: Map<any, any>;
1387
+ destroyed: boolean;
1388
+ recordedBBoxes: any;
1389
+ /**
1390
+ * @param {number} value - The page number to set. First page is 1.
1391
+ */
1392
+ set pageNumber(value: number);
1393
+ /**
1394
+ * @type {number} Page number of the page. First page is 1.
1395
+ */
1396
+ get pageNumber(): number;
1397
+ /**
1398
+ * @type {number} The number of degrees the page is rotated clockwise.
1399
+ */
1400
+ get rotate(): number;
1401
+ /**
1402
+ * @type {RefProxy | null} The reference that points to this page.
1403
+ */
1404
+ get ref(): RefProxy | null;
1405
+ /**
1406
+ * @type {number} The default size of units in 1/72nds of an inch.
1407
+ */
1408
+ get userUnit(): number;
1409
+ /**
1410
+ * @type {Array<number>} An array of the visible portion of the PDF page in
1411
+ * user space units [x1, y1, x2, y2].
1412
+ */
1413
+ get view(): Array<number>;
1414
+ /**
1415
+ * @param {GetViewportParameters} params - Viewport parameters.
1416
+ * @returns {PageViewport} Contains 'width' and 'height' properties
1417
+ * along with transforms required for rendering.
1418
+ */
1419
+ getViewport({ scale, rotation, offsetX, offsetY, dontFlip, }?: GetViewportParameters): PageViewport;
1420
+ /**
1421
+ * @param {GetAnnotationsParameters} [params] - Annotation parameters.
1422
+ * @returns {Promise<Array<any>>} A promise that is resolved with an
1423
+ * {Array} of the annotation objects.
1424
+ */
1425
+ getAnnotations({ intent }?: GetAnnotationsParameters): Promise<Array<any>>;
1426
+ /**
1427
+ * @returns {Promise<Object>} A promise that is resolved with an
1428
+ * {Object} with JS actions.
1429
+ */
1430
+ getJSActions(): Promise<Object>;
1431
+ /**
1432
+ * @type {Object} The filter factory instance.
1433
+ */
1434
+ get filterFactory(): Object;
1435
+ /**
1436
+ * @type {boolean} True if only XFA form.
1437
+ */
1438
+ get isPureXfa(): boolean;
1439
+ /**
1440
+ * @returns {Promise<Object | null>} A promise that is resolved with
1441
+ * an {Object} with a fake DOM object (a tree structure where elements
1442
+ * are {Object} with a name, attributes (class, style, ...), value and
1443
+ * children, very similar to a HTML DOM tree), or `null` if no XFA exists.
1444
+ */
1445
+ getXfa(): Promise<Object | null>;
1446
+ /**
1447
+ * Begins the process of rendering a page to the desired context.
1448
+ *
1449
+ * @param {RenderParameters} params - Page render parameters.
1450
+ * @returns {RenderTask} An object that contains a promise that is
1451
+ * resolved when the page finishes rendering.
1452
+ */
1453
+ render({ canvasContext, canvas, viewport, intent, annotationMode, transform, background, optionalContentConfigPromise, annotationCanvasMap, pageColors, printAnnotationStorage, isEditing, recordOperations, operationsFilter, }: RenderParameters): RenderTask;
1454
+ /**
1455
+ * @param {GetOperatorListParameters} params - Page getOperatorList
1456
+ * parameters.
1457
+ * @returns {Promise<PDFOperatorList>} A promise resolved with an
1458
+ * {@link PDFOperatorList} object that represents the page's operator list.
1459
+ */
1460
+ getOperatorList({ intent, annotationMode, printAnnotationStorage, isEditing, }?: GetOperatorListParameters): Promise<PDFOperatorList>;
1461
+ /**
1462
+ * NOTE: All occurrences of whitespace will be replaced by
1463
+ * standard spaces (0x20).
1464
+ *
1465
+ * @param {getTextContentParameters} params - getTextContent parameters.
1466
+ * @returns {ReadableStream} Stream for reading text content chunks.
1467
+ */
1468
+ streamTextContent({ includeMarkedContent, disableNormalization, }?: getTextContentParameters): ReadableStream;
1469
+ /**
1470
+ * NOTE: All occurrences of whitespace will be replaced by
1471
+ * standard spaces (0x20).
1472
+ *
1473
+ * @param {getTextContentParameters} params - getTextContent parameters.
1474
+ * @returns {Promise<TextContent>} A promise that is resolved with a
1475
+ * {@link TextContent} object that represents the page's text content.
1476
+ */
1477
+ getTextContent(params?: getTextContentParameters): Promise<TextContent>;
1478
+ /**
1479
+ * @returns {Promise<StructTreeNode>} A promise that is resolved with a
1480
+ * {@link StructTreeNode} object that represents the page's structure tree,
1481
+ * or `null` when no structure tree is present for the current page.
1482
+ */
1483
+ getStructTree(): Promise<StructTreeNode>;
1484
+ /**
1485
+ * Destroys the page object.
1486
+ * @private
1487
+ */
1488
+ private _destroy;
1489
+ /**
1490
+ * Cleans up resources allocated by the page.
1491
+ *
1492
+ * @param {boolean} [resetStats] - Reset page stats, if enabled.
1493
+ * The default value is `false`.
1494
+ * @returns {boolean} Indicates if clean-up was successfully run.
1495
+ */
1496
+ cleanup(resetStats?: boolean): boolean;
1497
+ /**
1498
+ * @private
1499
+ */
1500
+ private _startRenderPage;
1501
+ /**
1502
+ * @private
1503
+ */
1504
+ private _renderPageChunk;
1505
+ /**
1506
+ * @private
1507
+ */
1508
+ private _pumpOperatorList;
1509
+ /**
1510
+ * @private
1511
+ */
1512
+ private _abortOperatorList;
1513
+ /**
1514
+ * @type {StatTimer | null} Returns page stats, if enabled; returns `null`
1515
+ * otherwise.
1516
+ */
1517
+ get stats(): StatTimer | null;
1518
+ #private;
1519
+ }
1520
+ /**
1521
+ * @typedef {Object} PDFWorkerParameters
1522
+ * @property {string} [name] - The name of the worker.
1523
+ * @property {Worker} [port] - The `workerPort` object.
1524
+ * @property {number} [verbosity] - Controls the logging level;
1525
+ * the constants from {@link VerbosityLevel} should be used.
1526
+ */
1527
+ /**
1528
+ * PDF.js web worker abstraction that controls the instantiation of PDF
1529
+ * documents. Message handlers are used to pass information from the main
1530
+ * thread to the worker thread and vice versa. If the creation of a web
1531
+ * worker is not possible, a "fake" worker will be used instead.
1532
+ *
1533
+ * @param {PDFWorkerParameters} params - The worker initialization parameters.
1534
+ */
1535
+ export class PDFWorker {
1536
+ static "__#private@#fakeWorkerId": number;
1537
+ static "__#private@#isWorkerDisabled": boolean;
1538
+ static "__#private@#workerPorts": WeakMap<object, any>;
1539
+ /**
1540
+ * @param {PDFWorkerParameters} params - The worker initialization parameters.
1541
+ * @returns {PDFWorker}
1542
+ */
1543
+ static create(params: PDFWorkerParameters): PDFWorker;
1544
+ /**
1545
+ * The current `workerSrc`, when it exists.
1546
+ * @type {string}
1547
+ */
1548
+ static get workerSrc(): string;
1549
+ static get "__#private@#mainThreadWorkerMessageHandler"(): any;
1550
+ static get _setupFakeWorkerGlobal(): any;
1551
+ constructor({ name, port, verbosity, }?: {
1552
+ name?: null | undefined;
1553
+ port?: null | undefined;
1554
+ verbosity?: number | undefined;
1555
+ });
1556
+ name: any;
1557
+ destroyed: boolean;
1558
+ verbosity: number;
1559
+ /**
1560
+ * Promise for worker initialization completion.
1561
+ * @type {Promise<void>}
1562
+ */
1563
+ get promise(): Promise<void>;
1564
+ /**
1565
+ * The current `workerPort`, when it exists.
1566
+ * @type {Worker}
1567
+ */
1568
+ get port(): Worker;
1569
+ /**
1570
+ * The current MessageHandler-instance.
1571
+ * @type {MessageHandler}
1572
+ */
1573
+ get messageHandler(): MessageHandler;
1574
+ /**
1575
+ * Destroys the worker instance.
1576
+ */
1577
+ destroy(): void;
1578
+ #private;
1579
+ }
1580
+ /**
1581
+ * Allows controlling of the rendering tasks.
1582
+ */
1583
+ export class RenderTask {
1584
+ constructor(internalRenderTask: any);
1585
+ _internalRenderTask: null;
1586
+ /**
1587
+ * Callback for incremental rendering -- a function that will be called
1588
+ * each time the rendering is paused. To continue rendering call the
1589
+ * function that is the first argument to the callback.
1590
+ * @type {function}
1591
+ */
1592
+ onContinue: Function;
1593
+ /**
1594
+ * A function that will be synchronously called when the rendering tasks
1595
+ * finishes with an error (either because of an actual error, or because the
1596
+ * rendering is cancelled).
1597
+ *
1598
+ * @type {function}
1599
+ * @param {Error} error
1600
+ */
1601
+ onError: Function;
1602
+ /**
1603
+ * Promise for rendering task completion.
1604
+ * @type {Promise<void>}
1605
+ */
1606
+ get promise(): Promise<void>;
1607
+ /**
1608
+ * Cancels the rendering task. If the task is currently rendering it will
1609
+ * not be cancelled until graphics pauses with a timeout. The promise that
1610
+ * this object extends will be rejected when cancelled.
1611
+ *
1612
+ * @param {number} [extraDelay]
1613
+ */
1614
+ cancel(extraDelay?: number): void;
1615
+ /**
1616
+ * Whether form fields are rendered separately from the main operatorList.
1617
+ * @type {boolean}
1618
+ */
1619
+ get separateAnnots(): boolean;
1620
+ }
1621
+ /** @type {string} */
1622
+ export const version: string;
1623
+ import { PageViewport } from "./display_utils.js";
1624
+ import { OptionalContentConfig } from "./optional_content_config.js";
1625
+ import { PrintAnnotationStorage } from "./annotation_storage.js";
1626
+ import { AnnotationStorage } from "./annotation_storage.js";
1627
+ import { Metadata } from "./metadata.js";
1628
+ import { StatTimer } from "./display_utils.js";
1629
+ import { PDFObjects } from "./pdf_objects.js";
1630
+ import { MessageHandler } from "../shared/message_handler.js";