@box/pdfjs-dist 0.0.0-stage → 6.4.299-box.1

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 (554) hide show
  1. package/CODE_OF_CONDUCT.md +15 -0
  2. package/LICENSE +177 -0
  3. package/README.md +13 -2
  4. package/build/pdf.min.mjs +28 -0
  5. package/build/pdf.mjs +28211 -0
  6. package/build/pdf.mjs.map +1 -0
  7. package/build/pdf.sandbox.min.mjs +28 -0
  8. package/build/pdf.sandbox.mjs +211 -0
  9. package/build/pdf.sandbox.mjs.map +1 -0
  10. package/build/pdf.worker.min.mjs +28 -0
  11. package/build/pdf.worker.mjs +64908 -0
  12. package/build/pdf.worker.mjs.map +1 -0
  13. package/cmaps/78-EUC-H.bcmap +0 -0
  14. package/cmaps/78-EUC-V.bcmap +0 -0
  15. package/cmaps/78-H.bcmap +0 -0
  16. package/cmaps/78-RKSJ-H.bcmap +0 -0
  17. package/cmaps/78-RKSJ-V.bcmap +0 -0
  18. package/cmaps/78-V.bcmap +0 -0
  19. package/cmaps/78ms-RKSJ-H.bcmap +0 -0
  20. package/cmaps/78ms-RKSJ-V.bcmap +0 -0
  21. package/cmaps/83pv-RKSJ-H.bcmap +0 -0
  22. package/cmaps/90ms-RKSJ-H.bcmap +0 -0
  23. package/cmaps/90ms-RKSJ-V.bcmap +0 -0
  24. package/cmaps/90msp-RKSJ-H.bcmap +0 -0
  25. package/cmaps/90msp-RKSJ-V.bcmap +0 -0
  26. package/cmaps/90pv-RKSJ-H.bcmap +0 -0
  27. package/cmaps/90pv-RKSJ-V.bcmap +0 -0
  28. package/cmaps/Add-H.bcmap +0 -0
  29. package/cmaps/Add-RKSJ-H.bcmap +0 -0
  30. package/cmaps/Add-RKSJ-V.bcmap +0 -0
  31. package/cmaps/Add-V.bcmap +0 -0
  32. package/cmaps/Adobe-CNS1-0.bcmap +0 -0
  33. package/cmaps/Adobe-CNS1-1.bcmap +0 -0
  34. package/cmaps/Adobe-CNS1-2.bcmap +0 -0
  35. package/cmaps/Adobe-CNS1-3.bcmap +0 -0
  36. package/cmaps/Adobe-CNS1-4.bcmap +0 -0
  37. package/cmaps/Adobe-CNS1-5.bcmap +0 -0
  38. package/cmaps/Adobe-CNS1-6.bcmap +0 -0
  39. package/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  40. package/cmaps/Adobe-GB1-0.bcmap +0 -0
  41. package/cmaps/Adobe-GB1-1.bcmap +0 -0
  42. package/cmaps/Adobe-GB1-2.bcmap +0 -0
  43. package/cmaps/Adobe-GB1-3.bcmap +0 -0
  44. package/cmaps/Adobe-GB1-4.bcmap +0 -0
  45. package/cmaps/Adobe-GB1-5.bcmap +0 -0
  46. package/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  47. package/cmaps/Adobe-Japan1-0.bcmap +0 -0
  48. package/cmaps/Adobe-Japan1-1.bcmap +0 -0
  49. package/cmaps/Adobe-Japan1-2.bcmap +0 -0
  50. package/cmaps/Adobe-Japan1-3.bcmap +0 -0
  51. package/cmaps/Adobe-Japan1-4.bcmap +0 -0
  52. package/cmaps/Adobe-Japan1-5.bcmap +0 -0
  53. package/cmaps/Adobe-Japan1-6.bcmap +0 -0
  54. package/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  55. package/cmaps/Adobe-Korea1-0.bcmap +0 -0
  56. package/cmaps/Adobe-Korea1-1.bcmap +0 -0
  57. package/cmaps/Adobe-Korea1-2.bcmap +0 -0
  58. package/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  59. package/cmaps/B5-H.bcmap +0 -0
  60. package/cmaps/B5-V.bcmap +0 -0
  61. package/cmaps/B5pc-H.bcmap +0 -0
  62. package/cmaps/B5pc-V.bcmap +0 -0
  63. package/cmaps/CNS-EUC-H.bcmap +0 -0
  64. package/cmaps/CNS-EUC-V.bcmap +0 -0
  65. package/cmaps/CNS1-H.bcmap +0 -0
  66. package/cmaps/CNS1-V.bcmap +0 -0
  67. package/cmaps/CNS2-H.bcmap +0 -0
  68. package/cmaps/CNS2-V.bcmap +3 -0
  69. package/cmaps/ETHK-B5-H.bcmap +0 -0
  70. package/cmaps/ETHK-B5-V.bcmap +0 -0
  71. package/cmaps/ETen-B5-H.bcmap +0 -0
  72. package/cmaps/ETen-B5-V.bcmap +0 -0
  73. package/cmaps/ETenms-B5-H.bcmap +3 -0
  74. package/cmaps/ETenms-B5-V.bcmap +0 -0
  75. package/cmaps/EUC-H.bcmap +0 -0
  76. package/cmaps/EUC-V.bcmap +0 -0
  77. package/cmaps/Ext-H.bcmap +0 -0
  78. package/cmaps/Ext-RKSJ-H.bcmap +0 -0
  79. package/cmaps/Ext-RKSJ-V.bcmap +0 -0
  80. package/cmaps/Ext-V.bcmap +0 -0
  81. package/cmaps/GB-EUC-H.bcmap +0 -0
  82. package/cmaps/GB-EUC-V.bcmap +0 -0
  83. package/cmaps/GB-H.bcmap +4 -0
  84. package/cmaps/GB-V.bcmap +0 -0
  85. package/cmaps/GBK-EUC-H.bcmap +0 -0
  86. package/cmaps/GBK-EUC-V.bcmap +0 -0
  87. package/cmaps/GBK2K-H.bcmap +0 -0
  88. package/cmaps/GBK2K-V.bcmap +0 -0
  89. package/cmaps/GBKp-EUC-H.bcmap +0 -0
  90. package/cmaps/GBKp-EUC-V.bcmap +0 -0
  91. package/cmaps/GBT-EUC-H.bcmap +0 -0
  92. package/cmaps/GBT-EUC-V.bcmap +0 -0
  93. package/cmaps/GBT-H.bcmap +0 -0
  94. package/cmaps/GBT-V.bcmap +0 -0
  95. package/cmaps/GBTpc-EUC-H.bcmap +0 -0
  96. package/cmaps/GBTpc-EUC-V.bcmap +0 -0
  97. package/cmaps/GBpc-EUC-H.bcmap +0 -0
  98. package/cmaps/GBpc-EUC-V.bcmap +0 -0
  99. package/cmaps/H.bcmap +0 -0
  100. package/cmaps/HKdla-B5-H.bcmap +0 -0
  101. package/cmaps/HKdla-B5-V.bcmap +0 -0
  102. package/cmaps/HKdlb-B5-H.bcmap +0 -0
  103. package/cmaps/HKdlb-B5-V.bcmap +0 -0
  104. package/cmaps/HKgccs-B5-H.bcmap +0 -0
  105. package/cmaps/HKgccs-B5-V.bcmap +0 -0
  106. package/cmaps/HKm314-B5-H.bcmap +0 -0
  107. package/cmaps/HKm314-B5-V.bcmap +0 -0
  108. package/cmaps/HKm471-B5-H.bcmap +0 -0
  109. package/cmaps/HKm471-B5-V.bcmap +0 -0
  110. package/cmaps/HKscs-B5-H.bcmap +0 -0
  111. package/cmaps/HKscs-B5-V.bcmap +0 -0
  112. package/cmaps/Hankaku.bcmap +0 -0
  113. package/cmaps/Hiragana.bcmap +0 -0
  114. package/cmaps/KSC-EUC-H.bcmap +0 -0
  115. package/cmaps/KSC-EUC-V.bcmap +0 -0
  116. package/cmaps/KSC-H.bcmap +0 -0
  117. package/cmaps/KSC-Johab-H.bcmap +0 -0
  118. package/cmaps/KSC-Johab-V.bcmap +0 -0
  119. package/cmaps/KSC-V.bcmap +0 -0
  120. package/cmaps/KSCms-UHC-H.bcmap +0 -0
  121. package/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  122. package/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  123. package/cmaps/KSCms-UHC-V.bcmap +0 -0
  124. package/cmaps/KSCpc-EUC-H.bcmap +0 -0
  125. package/cmaps/KSCpc-EUC-V.bcmap +0 -0
  126. package/cmaps/Katakana.bcmap +0 -0
  127. package/cmaps/LICENSE +36 -0
  128. package/cmaps/NWP-H.bcmap +0 -0
  129. package/cmaps/NWP-V.bcmap +0 -0
  130. package/cmaps/RKSJ-H.bcmap +0 -0
  131. package/cmaps/RKSJ-V.bcmap +0 -0
  132. package/cmaps/Roman.bcmap +0 -0
  133. package/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  134. package/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  135. package/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  136. package/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  137. package/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  138. package/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  139. package/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  140. package/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  141. package/cmaps/UniGB-UCS2-H.bcmap +0 -0
  142. package/cmaps/UniGB-UCS2-V.bcmap +0 -0
  143. package/cmaps/UniGB-UTF16-H.bcmap +0 -0
  144. package/cmaps/UniGB-UTF16-V.bcmap +0 -0
  145. package/cmaps/UniGB-UTF32-H.bcmap +0 -0
  146. package/cmaps/UniGB-UTF32-V.bcmap +0 -0
  147. package/cmaps/UniGB-UTF8-H.bcmap +0 -0
  148. package/cmaps/UniGB-UTF8-V.bcmap +0 -0
  149. package/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  150. package/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  151. package/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  152. package/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  153. package/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  154. package/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  155. package/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  156. package/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  157. package/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  158. package/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  159. package/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  160. package/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  161. package/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  162. package/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  163. package/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  164. package/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  165. package/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  166. package/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  167. package/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  168. package/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  169. package/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  170. package/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  171. package/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  172. package/cmaps/UniKS-UCS2-H.bcmap +0 -0
  173. package/cmaps/UniKS-UCS2-V.bcmap +0 -0
  174. package/cmaps/UniKS-UTF16-H.bcmap +0 -0
  175. package/cmaps/UniKS-UTF16-V.bcmap +0 -0
  176. package/cmaps/UniKS-UTF32-H.bcmap +0 -0
  177. package/cmaps/UniKS-UTF32-V.bcmap +0 -0
  178. package/cmaps/UniKS-UTF8-H.bcmap +0 -0
  179. package/cmaps/UniKS-UTF8-V.bcmap +0 -0
  180. package/cmaps/V.bcmap +0 -0
  181. package/cmaps/WP-Symbol.bcmap +0 -0
  182. package/iccs/CGATS001Compat-v2-micro.icc +0 -0
  183. package/iccs/LICENSE +116 -0
  184. package/image_decoders/pdf.image_decoders.min.mjs +28 -0
  185. package/image_decoders/pdf.image_decoders.mjs +5378 -0
  186. package/image_decoders/pdf.image_decoders.mjs.map +1 -0
  187. package/legacy/build/pdf.d.mts +1 -0
  188. package/legacy/build/pdf.min.mjs +27 -0
  189. package/legacy/build/pdf.mjs +34672 -0
  190. package/legacy/build/pdf.mjs.map +1 -0
  191. package/legacy/build/pdf.sandbox.min.mjs +27 -0
  192. package/legacy/build/pdf.sandbox.mjs +2502 -0
  193. package/legacy/build/pdf.sandbox.mjs.map +1 -0
  194. package/legacy/build/pdf.worker.min.mjs +27 -0
  195. package/legacy/build/pdf.worker.mjs +71124 -0
  196. package/legacy/build/pdf.worker.mjs.map +1 -0
  197. package/legacy/image_decoders/pdf.image_decoders.min.mjs +27 -0
  198. package/legacy/image_decoders/pdf.image_decoders.mjs +9845 -0
  199. package/legacy/image_decoders/pdf.image_decoders.mjs.map +1 -0
  200. package/legacy/web/images/altText_add.svg +3 -0
  201. package/legacy/web/images/altText_disclaimer.svg +3 -0
  202. package/legacy/web/images/altText_done.svg +3 -0
  203. package/legacy/web/images/altText_spinner.svg +30 -0
  204. package/legacy/web/images/altText_warning.svg +3 -0
  205. package/legacy/web/images/annotation-check.svg +11 -0
  206. package/legacy/web/images/annotation-comment.svg +16 -0
  207. package/legacy/web/images/annotation-help.svg +26 -0
  208. package/legacy/web/images/annotation-insert.svg +10 -0
  209. package/legacy/web/images/annotation-key.svg +11 -0
  210. package/legacy/web/images/annotation-newparagraph.svg +11 -0
  211. package/legacy/web/images/annotation-noicon.svg +7 -0
  212. package/legacy/web/images/annotation-note.svg +42 -0
  213. package/legacy/web/images/annotation-paperclip.svg +6 -0
  214. package/legacy/web/images/annotation-paragraph.svg +16 -0
  215. package/legacy/web/images/annotation-pushpin.svg +7 -0
  216. package/legacy/web/images/checkmark.svg +5 -0
  217. package/legacy/web/images/comment-actionsButton.svg +3 -0
  218. package/legacy/web/images/comment-closeButton.svg +3 -0
  219. package/legacy/web/images/comment-editButton.svg +8 -0
  220. package/legacy/web/images/comment-popup-editButton.svg +5 -0
  221. package/legacy/web/images/cursor-editorFreeHighlight.svg +6 -0
  222. package/legacy/web/images/cursor-editorFreeText.svg +3 -0
  223. package/legacy/web/images/cursor-editorInk.svg +4 -0
  224. package/legacy/web/images/cursor-editorTextHighlight.svg +8 -0
  225. package/legacy/web/images/editor-toolbar-delete.svg +5 -0
  226. package/legacy/web/images/editor-toolbar-edit.svg +3 -0
  227. package/legacy/web/images/findbarButton-next.svg +3 -0
  228. package/legacy/web/images/findbarButton-previous.svg +3 -0
  229. package/legacy/web/images/gv-toolbarButton-download.svg +3 -0
  230. package/legacy/web/images/loading-icon.gif +0 -0
  231. package/legacy/web/images/loading.svg +1 -0
  232. package/legacy/web/images/messageBar_closingButton.svg +3 -0
  233. package/legacy/web/images/messageBar_info.svg +3 -0
  234. package/legacy/web/images/messageBar_warning.svg +3 -0
  235. package/legacy/web/images/pages_closeButton.svg +3 -0
  236. package/legacy/web/images/pages_selected.svg +7 -0
  237. package/legacy/web/images/pages_viewArrow.svg +3 -0
  238. package/legacy/web/images/pages_viewButton.svg +3 -0
  239. package/legacy/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
  240. package/legacy/web/images/secondaryToolbarButton-firstPage.svg +3 -0
  241. package/legacy/web/images/secondaryToolbarButton-handTool.svg +3 -0
  242. package/legacy/web/images/secondaryToolbarButton-lastPage.svg +3 -0
  243. package/legacy/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
  244. package/legacy/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
  245. package/legacy/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
  246. package/legacy/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
  247. package/legacy/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
  248. package/legacy/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
  249. package/legacy/web/images/secondaryToolbarButton-selectTool.svg +3 -0
  250. package/legacy/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
  251. package/legacy/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
  252. package/legacy/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
  253. package/legacy/web/images/signature-properties-row-check.svg +4 -0
  254. package/legacy/web/images/toolbarButton-bookmark.svg +3 -0
  255. package/legacy/web/images/toolbarButton-currentOutlineItem.svg +3 -0
  256. package/legacy/web/images/toolbarButton-download.svg +4 -0
  257. package/legacy/web/images/toolbarButton-editorFreeText.svg +5 -0
  258. package/legacy/web/images/toolbarButton-editorHighlight.svg +6 -0
  259. package/legacy/web/images/toolbarButton-editorInk.svg +4 -0
  260. package/legacy/web/images/toolbarButton-editorSignature.svg +6 -0
  261. package/legacy/web/images/toolbarButton-editorStamp.svg +8 -0
  262. package/legacy/web/images/toolbarButton-menuArrow.svg +3 -0
  263. package/legacy/web/images/toolbarButton-menuArrowNova.svg +3 -0
  264. package/legacy/web/images/toolbarButton-openFile.svg +3 -0
  265. package/legacy/web/images/toolbarButton-pageDown.svg +3 -0
  266. package/legacy/web/images/toolbarButton-pageUp.svg +3 -0
  267. package/legacy/web/images/toolbarButton-presentationMode.svg +3 -0
  268. package/legacy/web/images/toolbarButton-print.svg +3 -0
  269. package/legacy/web/images/toolbarButton-search.svg +3 -0
  270. package/legacy/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
  271. package/legacy/web/images/toolbarButton-signaturePropertiesError.svg +7 -0
  272. package/legacy/web/images/toolbarButton-signaturePropertiesVerified.svg +7 -0
  273. package/legacy/web/images/toolbarButton-viewAttachments.svg +3 -0
  274. package/legacy/web/images/toolbarButton-viewLayers.svg +3 -0
  275. package/legacy/web/images/toolbarButton-viewOutline.svg +3 -0
  276. package/legacy/web/images/toolbarButton-viewThumbnail.svg +3 -0
  277. package/legacy/web/images/toolbarButton-viewsManagerToggle.svg +3 -0
  278. package/legacy/web/images/toolbarButton-zoomIn.svg +3 -0
  279. package/legacy/web/images/toolbarButton-zoomOut.svg +3 -0
  280. package/legacy/web/images/treeitem-collapsed.svg +1 -0
  281. package/legacy/web/images/treeitem-expanded.svg +1 -0
  282. package/legacy/web/pdf_viewer.css +6463 -0
  283. package/legacy/web/pdf_viewer.d.mts +1 -0
  284. package/legacy/web/pdf_viewer.mjs +14798 -0
  285. package/legacy/web/pdf_viewer.mjs.map +1 -0
  286. package/legacy/webpack.mjs +26 -0
  287. package/package.json +32 -4
  288. package/standard_fonts/FoxitDingbats.pfb +0 -0
  289. package/standard_fonts/FoxitFixed.pfb +0 -0
  290. package/standard_fonts/FoxitFixedBold.pfb +0 -0
  291. package/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  292. package/standard_fonts/FoxitFixedItalic.pfb +0 -0
  293. package/standard_fonts/FoxitSerif.pfb +0 -0
  294. package/standard_fonts/FoxitSerifBold.pfb +0 -0
  295. package/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  296. package/standard_fonts/FoxitSerifItalic.pfb +0 -0
  297. package/standard_fonts/FoxitSymbol.pfb +0 -0
  298. package/standard_fonts/LICENSE_FOXIT +27 -0
  299. package/standard_fonts/LICENSE_LIBERATION +363 -0
  300. package/standard_fonts/LiberationSans-Bold.ttf +0 -0
  301. package/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  302. package/standard_fonts/LiberationSans-Italic.ttf +0 -0
  303. package/standard_fonts/LiberationSans-Regular.ttf +0 -0
  304. package/types/external/brotli/decode.d.ts +5 -0
  305. package/types/external/jbig2/jbig2.d.ts +2 -0
  306. package/types/external/openjpeg/openjpeg.d.ts +2 -0
  307. package/types/external/qcms/qcms.d.ts +96 -0
  308. package/types/external/qcms/qcms_utils.d.ts +9 -0
  309. package/types/src/core/ascii_85_stream.d.ts +7 -0
  310. package/types/src/core/ascii_hex_stream.d.ts +7 -0
  311. package/types/src/core/base_stream.d.ts +52 -0
  312. package/types/src/core/brotli_stream.d.ts +9 -0
  313. package/types/src/core/calculate_md5.d.ts +1 -0
  314. package/types/src/core/calculate_sha256.d.ts +1 -0
  315. package/types/src/core/calculate_sha_other.d.ts +2 -0
  316. package/types/src/core/catalog.d.ts +169 -0
  317. package/types/src/core/ccitt_stream.d.ts +18 -0
  318. package/types/src/core/cleanup_helper.d.ts +1 -0
  319. package/types/src/core/colorspace.d.ts +168 -0
  320. package/types/src/core/colorspace_utils.d.ts +21 -0
  321. package/types/src/core/core_utils.d.ts +136 -0
  322. package/types/src/core/crypto.d.ts +135 -0
  323. package/types/src/core/decode_stream.d.ts +32 -0
  324. package/types/src/core/decrypt_stream.d.ts +9 -0
  325. package/types/src/core/file_spec.d.ts +67 -0
  326. package/types/src/core/flate_stream.d.ts +14 -0
  327. package/types/src/core/icc_colorspace.d.ts +21 -0
  328. package/types/src/core/image_resizer.d.ts +24 -0
  329. package/types/src/core/image_utils.d.ts +52 -0
  330. package/types/src/core/jbig2_ccittFax.d.ts +13 -0
  331. package/types/src/core/jbig2_stream.d.ts +17 -0
  332. package/types/src/core/jpeg_stream.d.ts +24 -0
  333. package/types/src/core/jpg.d.ts +58 -0
  334. package/types/src/core/jpx.d.ts +24 -0
  335. package/types/src/core/jpx_stream.d.ts +15 -0
  336. package/types/src/core/lzw_stream.d.ts +19 -0
  337. package/types/src/core/metadata_parser.d.ts +13 -0
  338. package/types/src/core/name_number_tree.d.ts +21 -0
  339. package/types/src/core/parser.d.ts +119 -0
  340. package/types/src/core/pattern.d.ts +61 -0
  341. package/types/src/core/predictor_stream.d.ts +14 -0
  342. package/types/src/core/primitives.d.ts +95 -0
  343. package/types/src/core/run_length_stream.d.ts +6 -0
  344. package/types/src/core/sasl_prep.d.ts +1 -0
  345. package/types/src/core/sound.d.ts +39 -0
  346. package/types/src/core/stream.d.ts +20 -0
  347. package/types/src/core/string_utils.d.ts +5 -0
  348. package/types/src/core/struct_tree.d.ts +93 -0
  349. package/types/src/core/unicode.d.ts +5 -0
  350. package/types/src/core/wasm_image.d.ts +21 -0
  351. package/types/src/core/xml_parser.d.ts +78 -0
  352. package/types/src/core/xref.d.ts +39 -0
  353. package/types/src/display/annotation_layer.d.ts +265 -0
  354. package/types/src/display/annotation_storage.d.ts +94 -0
  355. package/types/src/display/api.d.ts +1693 -0
  356. package/types/src/display/api_utils.d.ts +13 -0
  357. package/types/src/display/binary_data_factory.d.ts +22 -0
  358. package/types/src/display/canvas.d.ts +257 -0
  359. package/types/src/display/canvas_dependency_tracker.d.ts +221 -0
  360. package/types/src/display/canvas_factory.d.ts +29 -0
  361. package/types/src/display/content_disposition.d.ts +6 -0
  362. package/types/src/display/display_utils.d.ts +129 -0
  363. package/types/src/display/draw_layer.d.ts +143 -0
  364. package/types/src/display/editor/alt_text.d.ts +34 -0
  365. package/types/src/display/editor/annotation_editor_layer.d.ts +226 -0
  366. package/types/src/display/editor/color_picker.d.ts +40 -0
  367. package/types/src/display/editor/comment.d.ts +59 -0
  368. package/types/src/display/editor/draw.d.ts +175 -0
  369. package/types/src/display/editor/drawers/contour.d.ts +3 -0
  370. package/types/src/display/editor/drawers/freedraw.d.ts +34 -0
  371. package/types/src/display/editor/drawers/highlight.d.ts +120 -0
  372. package/types/src/display/editor/drawers/inkdraw.d.ts +134 -0
  373. package/types/src/display/editor/drawers/outline.d.ts +81 -0
  374. package/types/src/display/editor/drawers/signaturedraw.d.ts +79 -0
  375. package/types/src/display/editor/editor.d.ts +581 -0
  376. package/types/src/display/editor/freetext.d.ts +63 -0
  377. package/types/src/display/editor/highlight.d.ts +85 -0
  378. package/types/src/display/editor/ink.d.ts +49 -0
  379. package/types/src/display/editor/signature.d.ts +77 -0
  380. package/types/src/display/editor/stamp.d.ts +49 -0
  381. package/types/src/display/editor/toolbar.d.ts +26 -0
  382. package/types/src/display/editor/tools.d.ts +503 -0
  383. package/types/src/display/fetch_stream.d.ts +7 -0
  384. package/types/src/display/filter_factory.d.ts +53 -0
  385. package/types/src/display/font_loader.d.ts +52 -0
  386. package/types/src/display/metadata.d.ts +10 -0
  387. package/types/src/display/network.d.ts +20 -0
  388. package/types/src/display/network_stream.d.ts +2 -0
  389. package/types/src/display/network_utils.d.ts +16 -0
  390. package/types/src/display/node_stream.d.ts +4 -0
  391. package/types/src/display/node_utils.d.ts +18 -0
  392. package/types/src/display/obj_bin_transform_display.d.ts +50 -0
  393. package/types/src/display/optional_content_config.d.ts +28 -0
  394. package/types/src/display/page_viewport.d.ts +137 -0
  395. package/types/src/display/pages_mapper.d.ts +78 -0
  396. package/types/src/display/pattern_helper.d.ts +88 -0
  397. package/types/src/display/pdf_objects.d.ts +38 -0
  398. package/types/src/display/svg_factory.d.ts +14 -0
  399. package/types/src/display/text_layer.d.ts +93 -0
  400. package/types/src/display/text_layer_images.d.ts +10 -0
  401. package/types/src/display/touch_manager.d.ts +55 -0
  402. package/types/src/display/transport_stream.d.ts +11 -0
  403. package/types/src/display/webgpu.d.ts +11 -0
  404. package/types/src/display/worker_options.d.ts +25 -0
  405. package/types/src/display/xfa_layer.d.ts +49 -0
  406. package/types/src/display/xfa_text.d.ts +18 -0
  407. package/types/src/pdf.d.ts +69 -0
  408. package/types/src/shared/base_pdf_stream.d.ts +120 -0
  409. package/types/src/shared/css_utils.d.ts +8 -0
  410. package/types/src/shared/image_utils.d.ts +28 -0
  411. package/types/src/shared/internal_evt.d.ts +7 -0
  412. package/types/src/shared/math_clamp.d.ts +1 -0
  413. package/types/src/shared/message_handler.d.ts +39 -0
  414. package/types/src/shared/murmurhash3.d.ts +7 -0
  415. package/types/src/shared/obj_bin_transform_utils.d.ts +27 -0
  416. package/types/src/shared/scripting_utils.d.ts +18 -0
  417. package/types/src/shared/util.d.ts +433 -0
  418. package/types/web/annotation_editor_layer_builder.d.ts +66 -0
  419. package/types/web/annotation_layer_builder.d.ts +107 -0
  420. package/types/web/app_options.d.ts +16 -0
  421. package/types/web/autolinker.d.ts +29 -0
  422. package/types/web/base_download_manager.d.ts +24 -0
  423. package/types/web/base_pdf_page_view.d.ts +29 -0
  424. package/types/web/comment_manager.d.ts +20 -0
  425. package/types/web/download_manager.d.ts +4 -0
  426. package/types/web/draw_layer_builder.d.ts +64 -0
  427. package/types/web/event_utils.d.ts +68 -0
  428. package/types/web/generic_scripting.d.ts +8 -0
  429. package/types/web/genericl10n.d.ts +18 -0
  430. package/types/web/internal_evt.d.ts +7 -0
  431. package/types/web/l10n.d.ts +31 -0
  432. package/types/web/menu.d.ts +11 -0
  433. package/types/web/pdf_find_controller.d.ts +142 -0
  434. package/types/web/pdf_find_utils.d.ts +10 -0
  435. package/types/web/pdf_history.d.ts +116 -0
  436. package/types/web/pdf_link_service.d.ts +148 -0
  437. package/types/web/pdf_page_detail_view.d.ts +27 -0
  438. package/types/web/pdf_page_view.d.ts +256 -0
  439. package/types/web/pdf_rendering_queue.d.ts +49 -0
  440. package/types/web/pdf_scripting_manager.component.d.ts +5 -0
  441. package/types/web/pdf_scripting_manager.d.ts +57 -0
  442. package/types/web/pdf_single_page_viewer.d.ts +7 -0
  443. package/types/web/pdf_thumbnail_view.d.ts +108 -0
  444. package/types/web/pdf_thumbnail_viewer.d.ts +179 -0
  445. package/types/web/pdf_viewer.component.d.ts +23 -0
  446. package/types/web/pdf_viewer.d.ts +653 -0
  447. package/types/web/renderable_view.d.ts +33 -0
  448. package/types/web/sidebar.d.ts +65 -0
  449. package/types/web/struct_tree_layer_builder.d.ts +39 -0
  450. package/types/web/text_accessibility.d.ts +46 -0
  451. package/types/web/text_highlighter.d.ts +62 -0
  452. package/types/web/text_layer_builder.d.ts +70 -0
  453. package/types/web/ui_utils.d.ts +260 -0
  454. package/types/web/xfa_layer_builder.d.ts +50 -0
  455. package/wasm/LICENSE_JBIG2 +196 -0
  456. package/wasm/LICENSE_OPENJPEG +39 -0
  457. package/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  458. package/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  459. package/wasm/LICENSE_PDFJS_QCMS +19 -0
  460. package/wasm/LICENSE_QCMS +21 -0
  461. package/wasm/jbig2.wasm +0 -0
  462. package/wasm/jbig2_nowasm_fallback.js +15 -0
  463. package/wasm/openjpeg.wasm +0 -0
  464. package/wasm/openjpeg_nowasm_fallback.js +17 -0
  465. package/wasm/qcms_bg.wasm +0 -0
  466. package/wasm/quickjs-eval.js +16 -0
  467. package/wasm/quickjs-eval.wasm +0 -0
  468. package/web/images/altText_add.svg +3 -0
  469. package/web/images/altText_disclaimer.svg +3 -0
  470. package/web/images/altText_done.svg +3 -0
  471. package/web/images/altText_spinner.svg +30 -0
  472. package/web/images/altText_warning.svg +3 -0
  473. package/web/images/annotation-check.svg +11 -0
  474. package/web/images/annotation-comment.svg +16 -0
  475. package/web/images/annotation-help.svg +26 -0
  476. package/web/images/annotation-insert.svg +10 -0
  477. package/web/images/annotation-key.svg +11 -0
  478. package/web/images/annotation-newparagraph.svg +11 -0
  479. package/web/images/annotation-noicon.svg +7 -0
  480. package/web/images/annotation-note.svg +42 -0
  481. package/web/images/annotation-paperclip.svg +6 -0
  482. package/web/images/annotation-paragraph.svg +16 -0
  483. package/web/images/annotation-pushpin.svg +7 -0
  484. package/web/images/checkmark.svg +5 -0
  485. package/web/images/comment-actionsButton.svg +3 -0
  486. package/web/images/comment-closeButton.svg +3 -0
  487. package/web/images/comment-editButton.svg +8 -0
  488. package/web/images/comment-popup-editButton.svg +5 -0
  489. package/web/images/cursor-editorFreeHighlight.svg +6 -0
  490. package/web/images/cursor-editorFreeText.svg +3 -0
  491. package/web/images/cursor-editorInk.svg +4 -0
  492. package/web/images/cursor-editorTextHighlight.svg +8 -0
  493. package/web/images/editor-toolbar-delete.svg +5 -0
  494. package/web/images/editor-toolbar-edit.svg +3 -0
  495. package/web/images/findbarButton-next.svg +3 -0
  496. package/web/images/findbarButton-previous.svg +3 -0
  497. package/web/images/gv-toolbarButton-download.svg +3 -0
  498. package/web/images/loading-icon.gif +0 -0
  499. package/web/images/loading.svg +1 -0
  500. package/web/images/messageBar_closingButton.svg +3 -0
  501. package/web/images/messageBar_info.svg +3 -0
  502. package/web/images/messageBar_warning.svg +3 -0
  503. package/web/images/pages_closeButton.svg +3 -0
  504. package/web/images/pages_selected.svg +7 -0
  505. package/web/images/pages_viewArrow.svg +3 -0
  506. package/web/images/pages_viewButton.svg +3 -0
  507. package/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
  508. package/web/images/secondaryToolbarButton-firstPage.svg +3 -0
  509. package/web/images/secondaryToolbarButton-handTool.svg +3 -0
  510. package/web/images/secondaryToolbarButton-lastPage.svg +3 -0
  511. package/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
  512. package/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
  513. package/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
  514. package/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
  515. package/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
  516. package/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
  517. package/web/images/secondaryToolbarButton-selectTool.svg +3 -0
  518. package/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
  519. package/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
  520. package/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
  521. package/web/images/signature-properties-row-check.svg +4 -0
  522. package/web/images/toolbarButton-bookmark.svg +3 -0
  523. package/web/images/toolbarButton-currentOutlineItem.svg +3 -0
  524. package/web/images/toolbarButton-download.svg +4 -0
  525. package/web/images/toolbarButton-editorFreeText.svg +5 -0
  526. package/web/images/toolbarButton-editorHighlight.svg +6 -0
  527. package/web/images/toolbarButton-editorInk.svg +4 -0
  528. package/web/images/toolbarButton-editorSignature.svg +6 -0
  529. package/web/images/toolbarButton-editorStamp.svg +8 -0
  530. package/web/images/toolbarButton-menuArrow.svg +3 -0
  531. package/web/images/toolbarButton-menuArrowNova.svg +3 -0
  532. package/web/images/toolbarButton-openFile.svg +3 -0
  533. package/web/images/toolbarButton-pageDown.svg +3 -0
  534. package/web/images/toolbarButton-pageUp.svg +3 -0
  535. package/web/images/toolbarButton-presentationMode.svg +3 -0
  536. package/web/images/toolbarButton-print.svg +3 -0
  537. package/web/images/toolbarButton-search.svg +3 -0
  538. package/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
  539. package/web/images/toolbarButton-signaturePropertiesError.svg +7 -0
  540. package/web/images/toolbarButton-signaturePropertiesVerified.svg +7 -0
  541. package/web/images/toolbarButton-viewAttachments.svg +3 -0
  542. package/web/images/toolbarButton-viewLayers.svg +3 -0
  543. package/web/images/toolbarButton-viewOutline.svg +3 -0
  544. package/web/images/toolbarButton-viewThumbnail.svg +3 -0
  545. package/web/images/toolbarButton-viewsManagerToggle.svg +3 -0
  546. package/web/images/toolbarButton-zoomIn.svg +3 -0
  547. package/web/images/toolbarButton-zoomOut.svg +3 -0
  548. package/web/images/treeitem-collapsed.svg +1 -0
  549. package/web/images/treeitem-expanded.svg +1 -0
  550. package/web/pdf_viewer.css +6463 -0
  551. package/web/pdf_viewer.d.mts +1 -0
  552. package/web/pdf_viewer.mjs +9811 -0
  553. package/web/pdf_viewer.mjs.map +1 -0
  554. package/webpack.mjs +26 -0
@@ -0,0 +1,119 @@
1
+ export type Streams = Ascii85Stream | AsciiHexStream | BaseStream | BrotliStream | CCITTFaxStream | FlateStream | Jbig2Stream | JpegStream | JpxStream | LZWStream | NullStream | PredictorStream | RunLengthStream;
2
+ export class Lexer {
3
+ constructor(stream: any, knownCommands?: null);
4
+ stream: any;
5
+ strBuf: any[];
6
+ knownCommands: any;
7
+ _hexStringNumWarn: number;
8
+ beginInlineImagePos: number;
9
+ nextChar(): any;
10
+ currentChar: any;
11
+ peekChar(): any;
12
+ getNumber(): number;
13
+ getString(): string;
14
+ getName(): any;
15
+ /**
16
+ * @private
17
+ */
18
+ private _hexStringWarn;
19
+ getHexString(): string;
20
+ getObj(): any;
21
+ skipToNextLine(): void;
22
+ }
23
+ export class Linearization {
24
+ static create(stream: any): {
25
+ length: any;
26
+ hints: any[];
27
+ objectNumberFirst: any;
28
+ endFirst: any;
29
+ numPages: any;
30
+ mainXRefEntriesOffset: any;
31
+ pageFirst: any;
32
+ } | null;
33
+ }
34
+ export class Parser {
35
+ constructor({ lexer, xref, allowStreams, recoveryMode }: {
36
+ lexer: any;
37
+ xref: any;
38
+ allowStreams?: boolean | undefined;
39
+ recoveryMode?: boolean | undefined;
40
+ });
41
+ lexer: any;
42
+ xref: any;
43
+ allowStreams: boolean;
44
+ recoveryMode: boolean;
45
+ refill(): void;
46
+ buf1: any;
47
+ buf2: any;
48
+ shift(): void;
49
+ tryShift(): boolean;
50
+ /**
51
+ * @param {CipherTransform | null} cipherTransform
52
+ * Cipher transform for decryption.
53
+ * @returns {unknown}
54
+ */
55
+ getObj(cipherTransform?: CipherTransform | null): unknown;
56
+ /**
57
+ * Find the end of the stream by searching for the /EI\s/.
58
+ * @returns {number} The inline stream length.
59
+ */
60
+ findDefaultInlineStreamEnd(stream: any): number;
61
+ /**
62
+ * Find the EOI (end-of-image) marker 0xFFD9 of the stream.
63
+ * @returns {number} The inline stream length.
64
+ */
65
+ findDCTDecodeInlineStreamEnd(stream: any): number;
66
+ /**
67
+ * Find the EOD (end-of-data) marker '~>' (i.e. TILDE + GT) of the stream.
68
+ * @returns {number} The inline stream length.
69
+ */
70
+ findASCII85DecodeInlineStreamEnd(stream: any): number;
71
+ /**
72
+ * Find the EOD (end-of-data) marker '>' (i.e. GT) of the stream.
73
+ * @returns {number} The inline stream length.
74
+ */
75
+ findASCIIHexDecodeInlineStreamEnd(stream: any): number;
76
+ /**
77
+ * Skip over the /EI/ for streams where we search for an EOD marker.
78
+ */
79
+ inlineStreamSkipEI(stream: any): void;
80
+ /**
81
+ * @param {CipherTransform | null} cipherTransform
82
+ * @returns {Streams}
83
+ */
84
+ makeInlineImage(cipherTransform: CipherTransform | null): Streams;
85
+ makeStream(dict: any, cipherTransform: any): any;
86
+ /**
87
+ * @param {Streams} stream
88
+ * @param {Dict} dict
89
+ * @param {number | null} length
90
+ * @param {CipherTransform | null} cipherTransform
91
+ * @returns {Streams}
92
+ */
93
+ filter(stream: Streams, dict: Dict, length: number | null, cipherTransform?: CipherTransform | null): Streams;
94
+ /**
95
+ * @param {Streams} stream
96
+ * @param {string} name
97
+ * @param {number | null} maybeLength
98
+ * @param {Dict | null} params
99
+ * @param {CipherTransform | null | undefined} [cipherTransform]
100
+ * @returns {Streams}
101
+ */
102
+ makeFilter(stream: Streams, name: string, maybeLength: number | null, params: Dict | null, cipherTransform?: CipherTransform | null | undefined): Streams;
103
+ #private;
104
+ }
105
+ import { Ascii85Stream } from "./ascii_85_stream.js";
106
+ import { AsciiHexStream } from "./ascii_hex_stream.js";
107
+ import type { BaseStream } from "./base_stream.js";
108
+ import { BrotliStream } from "./brotli_stream.js";
109
+ import { CCITTFaxStream } from "./ccitt_stream.js";
110
+ import { FlateStream } from "./flate_stream.js";
111
+ import { Jbig2Stream } from "./jbig2_stream.js";
112
+ import { JpegStream } from "./jpeg_stream.js";
113
+ import { JpxStream } from "./jpx_stream.js";
114
+ import { LZWStream } from "./lzw_stream.js";
115
+ import { NullStream } from "./stream.js";
116
+ import { PredictorStream } from "./predictor_stream.js";
117
+ import { RunLengthStream } from "./run_length_stream.js";
118
+ import type { CipherTransform } from "./crypto.js";
119
+ import { Dict } from "./primitives.js";
@@ -0,0 +1,61 @@
1
+ export function clearPatternCaches(): void;
2
+ export function getTilingPatternIR(operatorList: any, dict: any, color: any, needsIsolation?: boolean): any[];
3
+ export class Pattern {
4
+ static #hasGPU: boolean;
5
+ static setOptions({ hasGPU }: {
6
+ hasGPU: any;
7
+ }): void;
8
+ static parseShading(shading: any, xref: any, res: any, pdfFunctionFactory: any, globalColorSpaceCache: any, localColorSpaceCache: any): FunctionBasedShading | RadialAxialShading | MeshShading | DummyShading;
9
+ }
10
+ declare class FunctionBasedShading extends BaseShading {
11
+ static MAX_STEP_COUNT: number;
12
+ constructor(dict: any, xref: any, resources: any, pdfFunctionFactory: any, globalColorSpaceCache: any, localColorSpaceCache: any);
13
+ bbox: any;
14
+ background: any;
15
+ bounds: number[];
16
+ coords: Float32Array<ArrayBuffer>;
17
+ colors: Uint8ClampedArray<ArrayBuffer>;
18
+ figures: {
19
+ type: number;
20
+ coords: Uint32Array<ArrayBuffer>;
21
+ colors: Uint32Array<ArrayBuffer>;
22
+ verticesPerRow: number;
23
+ }[];
24
+ getIR(): any[];
25
+ }
26
+ declare class RadialAxialShading extends BaseShading {
27
+ constructor(dict: any, xref: any, resources: any, pdfFunctionFactory: any, globalColorSpaceCache: any, localColorSpaceCache: any);
28
+ shadingType: any;
29
+ coordsArr: any;
30
+ bbox: any;
31
+ colorStops: any[];
32
+ getIR(): any[];
33
+ }
34
+ declare class MeshShading extends BaseShading {
35
+ static MIN_SPLIT_PATCH_CHUNKS_AMOUNT: number;
36
+ static MAX_SPLIT_PATCH_CHUNKS_AMOUNT: number;
37
+ static TRIANGLE_DENSITY: number;
38
+ constructor(stream: any, xref: any, resources: any, pdfFunctionFactory: any, globalColorSpaceCache: any, localColorSpaceCache: any);
39
+ shadingType: any;
40
+ bbox: any;
41
+ background: any;
42
+ coords: any[];
43
+ colors: any[];
44
+ figures: any[];
45
+ _decodeType4Shading(reader: any): void;
46
+ _decodeType5Shading(reader: any, verticesPerRow: any): void;
47
+ _decodeType6Shading(reader: any): void;
48
+ _decodeType7Shading(reader: any): void;
49
+ _buildFigureFromPatch(index: any): void;
50
+ _updateBounds(): void;
51
+ _packData(): void;
52
+ getIR(): any[];
53
+ }
54
+ declare class DummyShading extends BaseShading {
55
+ getIR(): string[];
56
+ }
57
+ declare class BaseShading {
58
+ static SMALL_NUMBER: number;
59
+ getIR(): void;
60
+ }
61
+ export {};
@@ -0,0 +1,14 @@
1
+ export class PredictorStream extends DecodeStream {
2
+ constructor(str: any, maybeLength: any, params: any);
3
+ predictor: any;
4
+ stream: any;
5
+ dict: any;
6
+ colors: any;
7
+ bits: any;
8
+ columns: any;
9
+ pixBytes: number | undefined;
10
+ rowBytes: number | undefined;
11
+ readBlockTiff(): void;
12
+ readBlockPng(): void;
13
+ }
14
+ import { DecodeStream } from "./decode_stream.js";
@@ -0,0 +1,95 @@
1
+ export const CIRCULAR_REF: unique symbol;
2
+ export function clearPrimitiveCaches(): void;
3
+ export class Cmd {
4
+ /**
5
+ * NOTE: This method is invoked a lot, hence `getOrInsertComputed` is
6
+ * purposely *not* used to avoid creating unneeded callback functions.
7
+ */
8
+ static get(cmd: any): any;
9
+ constructor(cmd: any);
10
+ cmd: any;
11
+ }
12
+ export class Dict {
13
+ static get empty(): any;
14
+ static merge({ xref, dictArray, mergeSubDicts }: {
15
+ xref: any;
16
+ dictArray: any;
17
+ mergeSubDicts?: boolean | undefined;
18
+ }): any;
19
+ constructor(xref?: null);
20
+ __nonSerializable__: () => /*elided*/ any;
21
+ objId: null;
22
+ suppressEncryption: boolean;
23
+ xref: any;
24
+ assignXref(newXref: any): void;
25
+ get size(): number;
26
+ get(key1: any, key2: any): any;
27
+ getAsync(key1: any, key2: any): Promise<any>;
28
+ getArray(key1: any, key2: any): any;
29
+ getRaw(key: any): any;
30
+ getKeys(): MapIterator<any>;
31
+ getRawValues(): MapIterator<any>;
32
+ getRawEntries(): MapIterator<[any, any]>;
33
+ set(key: any, value: any): void;
34
+ setIfNotExists(key: any, value: any): void;
35
+ setIfNumber(key: any, value: any): void;
36
+ setIfArray(key: any, value: any): void;
37
+ setIfDefined(key: any, value: any): void;
38
+ setIfName(key: any, value: any): void;
39
+ setIfDict(key: any, value: any): void;
40
+ has(key: any): boolean;
41
+ clone(): Dict;
42
+ delete(key: any): void;
43
+ [Symbol.iterator](): Generator<any[], void, unknown>;
44
+ #private;
45
+ }
46
+ export const EOF: unique symbol;
47
+ export function isCmd(v: any, cmd: any): boolean;
48
+ export function isDict(v: any, type: any): boolean;
49
+ export function isName(v: any, name: any): boolean;
50
+ export function isRefsEqual(v1: any, v2: any): boolean;
51
+ export class Name {
52
+ /**
53
+ * NOTE: This method is invoked a lot, hence `getOrInsertComputed` is
54
+ * purposely *not* used to avoid creating unneeded callback functions.
55
+ */
56
+ static get(name: any): any;
57
+ constructor(name: any);
58
+ name: any;
59
+ }
60
+ export class Ref {
61
+ static fromString(str: any): any;
62
+ /**
63
+ * NOTE: This method is invoked a lot, hence `getOrInsertComputed` is
64
+ * purposely *not* used to avoid creating unneeded callback functions.
65
+ */
66
+ static get(num: any, gen: any): any;
67
+ constructor(str: any, num: any, gen: any);
68
+ num: any;
69
+ gen: any;
70
+ toString(): any;
71
+ #private;
72
+ }
73
+ export class RefMap {
74
+ get size(): number;
75
+ get(ref: any): any;
76
+ has(ref: any): boolean;
77
+ put(ref: any, obj: any): void;
78
+ putAlias(ref: any, aliasRef: any): void;
79
+ getOrPutComputed(ref: any, callback: any): any;
80
+ clear(): void;
81
+ values(): Generator<any, void, unknown>;
82
+ items(): Generator<any[], void, unknown>;
83
+ keys(): Generator<any, void, unknown>;
84
+ [Symbol.iterator](): MapIterator<any>;
85
+ #private;
86
+ }
87
+ export class RefSet {
88
+ constructor(parent?: null);
89
+ has(ref: any): boolean;
90
+ put(ref: any): void;
91
+ remove(ref: any): void;
92
+ clear(): void;
93
+ [Symbol.iterator](): SetIterator<any>;
94
+ #private;
95
+ }
@@ -0,0 +1,6 @@
1
+ export class RunLengthStream extends DecodeStream {
2
+ constructor(str: any, maybeLength: any);
3
+ stream: any;
4
+ dict: any;
5
+ }
6
+ import { DecodeStream } from "./decode_stream.js";
@@ -0,0 +1 @@
1
+ export function saslPrep(str: any): string;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Helpers for PDF sound objects (ISO 32000-1, 12.5.6.16).
3
+ *
4
+ * Sound streams contain samples described by /R, /C, /B, /E, and optional /CO.
5
+ * We wrap supported uncompressed PCM (Raw/Signed, 8/16-bit, mono/stereo) in WAV
6
+ * for playback.
7
+ * @import { BaseStream } from "./base_stream.js";
8
+ * @import { Dict } from "./primitives.js";
9
+ */
10
+ /**
11
+ * Return a supported uncompressed sample format.
12
+ * @param {Dict} [dict] The sound object's stream dictionary.
13
+ * @returns {{
14
+ * channels: number,
15
+ * sampleRate: number,
16
+ * bitsPerSample: number,
17
+ * encoding: string,
18
+ * } | null}
19
+ */
20
+ export function getSoundFormat(dict?: Dict): {
21
+ channels: number;
22
+ sampleRate: number;
23
+ bitsPerSample: number;
24
+ encoding: string;
25
+ } | null;
26
+ /**
27
+ * Build a WAV file from supported PDF sound samples.
28
+ *
29
+ * PDF 16-bit samples are big-endian; WAV uses little-endian, unsigned 8-bit
30
+ * samples, and signed 16-bit samples. The data chunk is trimmed to a whole
31
+ * number of frames (a multiple of the block alignment); a stream with no
32
+ * complete frame produces no WAV.
33
+ * @param {BaseStream} stream The sound object stream.
34
+ * @param {Uint8Array} samples Raw sample bytes from the stream.
35
+ * @returns {Uint8Array | null}
36
+ */
37
+ export function soundStreamToWav(stream: BaseStream, samples: Uint8Array): Uint8Array | null;
38
+ import type { Dict } from "./primitives.js";
39
+ import type { BaseStream } from "./base_stream.js";
@@ -0,0 +1,20 @@
1
+ export class NullStream extends Stream {
2
+ constructor();
3
+ }
4
+ export class Stream extends BaseStream {
5
+ constructor(arrayBuffer: any, start: any, length: any, dict: any);
6
+ bytes: Uint8Array<any>;
7
+ start: any;
8
+ pos: any;
9
+ end: any;
10
+ dict: any;
11
+ getByte(): number;
12
+ getBytes(length: any): Uint8Array<any>;
13
+ getByteRange(begin: any, end: any): Uint8Array<any>;
14
+ makeSubStream(start: any, length: any, dict?: null): Stream;
15
+ clone(): Stream;
16
+ }
17
+ export class StringStream extends Stream {
18
+ constructor(str: any, dict?: null);
19
+ }
20
+ import { BaseStream } from "./base_stream.js";
@@ -0,0 +1,5 @@
1
+ export function isAscii(str: any): boolean;
2
+ export function stringToAsciiOrUTF16BE(str: any): any;
3
+ export function stringToPDFString(str: any, keepEscapeSequence?: boolean): any;
4
+ export function stringToUTF16HexString(str: any): string;
5
+ export function stringToUTF16String(str: any, bigEndian?: boolean): string;
@@ -0,0 +1,93 @@
1
+ export class StructTreePage {
2
+ constructor(structTreeRoot: any, pageDict: any);
3
+ root: any;
4
+ xref: any;
5
+ rootDict: any;
6
+ pageDict: any;
7
+ nodes: any[];
8
+ /**
9
+ * Collect all the objects (i.e. tag) that are part of the page and return a
10
+ * map of the structure element id to the object reference.
11
+ * @param {Ref} pageRef
12
+ * @returns {Map<number, Ref>}
13
+ */
14
+ collectObjects(pageRef: Ref): Map<number, Ref>;
15
+ parse(pageRef: any): void;
16
+ addNode(dict: any, map: any, level?: number): any;
17
+ addTopLevelNode(dict: any, element: any): boolean;
18
+ /**
19
+ * Convert the tree structure into a simplified object literal that can
20
+ * be sent to the main thread.
21
+ * @returns {object}
22
+ */
23
+ get serializable(): object;
24
+ }
25
+ export class StructTreeRoot {
26
+ static canCreateStructureTree({ catalogRef, pdfManager, newAnnotationsByPage, }: {
27
+ catalogRef: any;
28
+ pdfManager: any;
29
+ newAnnotationsByPage: any;
30
+ }): Promise<boolean>;
31
+ static createStructureTree({ newAnnotationsByPage, xref, catalogRef, pdfManager, changes, }: {
32
+ newAnnotationsByPage: any;
33
+ xref: any;
34
+ catalogRef: any;
35
+ pdfManager: any;
36
+ changes: any;
37
+ }): Promise<void>;
38
+ static #writeKids({ newAnnotationsByPage, structTreeRootRef, structTreeRoot, kids, nums, xref, pdfManager, changes, cache, }: {
39
+ newAnnotationsByPage: any;
40
+ structTreeRootRef: any;
41
+ structTreeRoot: any;
42
+ kids: any;
43
+ nums: any;
44
+ xref: any;
45
+ pdfManager: any;
46
+ changes: any;
47
+ cache: any;
48
+ }): Promise<number>;
49
+ static #writeProperties(tagDict: any, { type, title, lang, alt, expanded, actualText }: {
50
+ type: any;
51
+ title: any;
52
+ lang: any;
53
+ alt: any;
54
+ expanded: any;
55
+ actualText: any;
56
+ }): void;
57
+ static #collectParents({ elements, xref, pageDict, numberTree }: {
58
+ elements: any;
59
+ xref: any;
60
+ pageDict: any;
61
+ numberTree: any;
62
+ }): void;
63
+ static #updateParentTag({ structTreeParent, tagDict, newTagRef, structTreeRootRef, fallbackKids, xref, cache, }: {
64
+ structTreeParent: any;
65
+ tagDict: any;
66
+ newTagRef: any;
67
+ structTreeRootRef: any;
68
+ fallbackKids: any;
69
+ xref: any;
70
+ cache: any;
71
+ }): Promise<void>;
72
+ constructor(xref: any, rootDict: any, rootRef: any);
73
+ kidRefToPosition: undefined;
74
+ parentTree: null;
75
+ roleMap: Map<any, any>;
76
+ structParentIds: null;
77
+ xref: any;
78
+ dict: any;
79
+ ref: Ref | null;
80
+ getKidPosition(kidRef: any): any;
81
+ addAnnotationIdToPage(pageRef: any, id: any, ref: any): void;
82
+ canUpdateStructTree({ pdfManager, newAnnotationsByPage }: {
83
+ pdfManager: any;
84
+ newAnnotationsByPage: any;
85
+ }): Promise<boolean>;
86
+ updateStructureTree({ newAnnotationsByPage, pdfManager, changes }: {
87
+ newAnnotationsByPage: any;
88
+ pdfManager: any;
89
+ changes: any;
90
+ }): Promise<void>;
91
+ #private;
92
+ }
93
+ import { Ref } from "./primitives.js";
@@ -0,0 +1,5 @@
1
+ export function clearUnicodeCaches(): void;
2
+ export function getCharUnicodeCategory(char: any): any;
3
+ export function getUnicodeForGlyph(name: any, glyphsUnicodeMap: any): any;
4
+ export function getUnicodeRangeFor(value: any, lastPosition?: number): number;
5
+ export function mapSpecialUnicodeValues(code: any): any;
@@ -0,0 +1,21 @@
1
+ export class WasmImage {
2
+ static #handler: null;
3
+ static #instances: Set<any>;
4
+ static #useWasm: boolean;
5
+ static #useWorkerFetch: boolean;
6
+ static #wasmUrl: null;
7
+ static setOptions({ handler, useWasm, useWorkerFetch, wasmUrl }: {
8
+ handler: any;
9
+ useWasm: any;
10
+ useWorkerFetch: any;
11
+ wasmUrl: any;
12
+ }): void;
13
+ static get instance(): void;
14
+ static cleanup(): void;
15
+ constructor(trackInstance?: boolean);
16
+ _filename: null;
17
+ _noWasmFilename: null;
18
+ _getModule(ImageDecoder: any): null;
19
+ decode(bytes: any, _params: any): Promise<void>;
20
+ #private;
21
+ }
@@ -0,0 +1,78 @@
1
+ export class SimpleDOMNode {
2
+ constructor(nodeName: any, nodeValue: any);
3
+ nodeName: any;
4
+ nodeValue: any;
5
+ get firstChild(): any;
6
+ get nextSibling(): any;
7
+ get textContent(): any;
8
+ get children(): any;
9
+ hasChildNodes(): boolean;
10
+ /**
11
+ * Search a node in the tree with the given path
12
+ * foo.bar[nnn], i.e. find the nnn-th node named
13
+ * bar under a node named foo.
14
+ * @param {Array} paths - an array of objects as
15
+ * returned by {parseXFAPath}.
16
+ * @param {number} pos - the current position in
17
+ * the paths array.
18
+ * @returns {SimpleDOMNode} The node corresponding
19
+ * to the path or null if not found.
20
+ */
21
+ searchNode(paths: any[], pos: number): SimpleDOMNode;
22
+ dump(buffer: any): void;
23
+ }
24
+ export class SimpleXMLParser extends XMLParserBase {
25
+ constructor({ hasAttributes, lowerCaseName }: {
26
+ hasAttributes?: boolean | undefined;
27
+ lowerCaseName?: boolean | undefined;
28
+ });
29
+ _currentFragment: any;
30
+ _stack: any[] | null;
31
+ _errorCode: number;
32
+ _hasAttributes: boolean;
33
+ _lowerCaseName: boolean;
34
+ parseFromString(data: any): {
35
+ documentElement: any;
36
+ } | undefined;
37
+ onEndElement(name: any): any;
38
+ }
39
+ export class XMLParserBase {
40
+ static get _entityRegex(): any;
41
+ _resolveEntities(s: any): any;
42
+ _parseContent(s: any, start: any): {
43
+ name: any;
44
+ attributes: {
45
+ name: string;
46
+ value: any;
47
+ }[];
48
+ parsed: number;
49
+ } | null;
50
+ _parseProcessingInstruction(s: any, start: any): {
51
+ name: any;
52
+ value: any;
53
+ parsed: number;
54
+ };
55
+ parseXml(s: any): void;
56
+ onResolveEntity(name: any): string;
57
+ onPi(name: any, value: any): void;
58
+ onComment(text: any): void;
59
+ onCdata(text: any): void;
60
+ onDoctype(doctypeContent: any): void;
61
+ onText(text: any): void;
62
+ onBeginElement(name: any, attributes: any, isEmpty: any): void;
63
+ onEndElement(name: any): void;
64
+ onError(code: any): void;
65
+ }
66
+ export namespace XMLParserErrorCode {
67
+ let NoError: number;
68
+ let EndOfDocument: number;
69
+ let UnterminatedCdata: number;
70
+ let UnterminatedXmlDeclaration: number;
71
+ let UnterminatedDoctypeDeclaration: number;
72
+ let UnterminatedComment: number;
73
+ let MalformedElement: number;
74
+ let OutOfMemory: number;
75
+ let UnterminatedAttributeValue: number;
76
+ let UnterminatedElement: number;
77
+ let ElementNeverBegun: number;
78
+ }
@@ -0,0 +1,39 @@
1
+ export class XRef {
2
+ constructor(stream: any, pdfManager: any);
3
+ stream: any;
4
+ pdfManager: any;
5
+ getNewPersistentRef(obj: any): any;
6
+ getNewTemporaryRef(): any;
7
+ resetNewTemporaryRef(): void;
8
+ setStartXRef(startXRef: any): void;
9
+ startXRefQueue: any[] | undefined;
10
+ parse(recoveryMode?: boolean): void;
11
+ trailer: any;
12
+ encrypt: CipherTransformFactory | undefined;
13
+ root: Dict | undefined;
14
+ processXRefTable(parser: any): Dict;
15
+ readXRefTable(parser: any): any;
16
+ processXRefStream(stream: any): any;
17
+ streamState: {
18
+ entryRanges: any;
19
+ byteWidths: any;
20
+ entryNum: number;
21
+ streamPos: any;
22
+ } | undefined;
23
+ readXRefStream(stream: any): void;
24
+ indexObjects(): any;
25
+ _generationFallback: boolean | undefined;
26
+ readXRef(recoveryMode?: boolean): any;
27
+ countUpdatesAfter(offset: any): number | null;
28
+ getEntry(i: any): any;
29
+ fetchIfRef(obj: any, suppressEncryption?: boolean): any;
30
+ fetch(ref: any, suppressEncryption?: boolean): any;
31
+ fetchUncompressed(ref: any, xrefEntry: any, suppressEncryption?: boolean): any;
32
+ fetchCompressed(ref: any, xrefEntry: any, suppressEncryption?: boolean): any;
33
+ fetchIfRefAsync(obj: any, suppressEncryption: any): Promise<any>;
34
+ fetchAsync(ref: any, suppressEncryption: any): any;
35
+ getCatalogObj(): Dict | undefined;
36
+ #private;
37
+ }
38
+ import { CipherTransformFactory } from "./crypto.js";
39
+ import { Dict } from "./primitives.js";