@foxycape/core 1.1.3

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