pdfjs-viewer-element 2.1.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/README.md +32 -19
  2. package/package.json +1 -1
  3. package/types/debounce.d.ts +1 -0
  4. package/types/pdfjs-viewer-element.d.ts +20 -8
  5. package/dist/compressed.tracemonkey-pldi-09.pdf +0 -0
  6. package/dist/pdfjs/LICENSE +0 -177
  7. package/dist/pdfjs/build/pdf.js +0 -15792
  8. package/dist/pdfjs/build/pdf.js.map +0 -1
  9. package/dist/pdfjs/build/pdf.sandbox.js +0 -280
  10. package/dist/pdfjs/build/pdf.sandbox.js.map +0 -1
  11. package/dist/pdfjs/build/pdf.worker.js +0 -64521
  12. package/dist/pdfjs/build/pdf.worker.js.map +0 -1
  13. package/dist/pdfjs/web/cmaps/78-EUC-H.bcmap +0 -0
  14. package/dist/pdfjs/web/cmaps/78-EUC-V.bcmap +0 -0
  15. package/dist/pdfjs/web/cmaps/78-H.bcmap +0 -0
  16. package/dist/pdfjs/web/cmaps/78-RKSJ-H.bcmap +0 -0
  17. package/dist/pdfjs/web/cmaps/78-RKSJ-V.bcmap +0 -0
  18. package/dist/pdfjs/web/cmaps/78-V.bcmap +0 -0
  19. package/dist/pdfjs/web/cmaps/78ms-RKSJ-H.bcmap +0 -0
  20. package/dist/pdfjs/web/cmaps/78ms-RKSJ-V.bcmap +0 -0
  21. package/dist/pdfjs/web/cmaps/83pv-RKSJ-H.bcmap +0 -0
  22. package/dist/pdfjs/web/cmaps/90ms-RKSJ-H.bcmap +0 -0
  23. package/dist/pdfjs/web/cmaps/90ms-RKSJ-V.bcmap +0 -0
  24. package/dist/pdfjs/web/cmaps/90msp-RKSJ-H.bcmap +0 -0
  25. package/dist/pdfjs/web/cmaps/90msp-RKSJ-V.bcmap +0 -0
  26. package/dist/pdfjs/web/cmaps/90pv-RKSJ-H.bcmap +0 -0
  27. package/dist/pdfjs/web/cmaps/90pv-RKSJ-V.bcmap +0 -0
  28. package/dist/pdfjs/web/cmaps/Add-H.bcmap +0 -0
  29. package/dist/pdfjs/web/cmaps/Add-RKSJ-H.bcmap +0 -0
  30. package/dist/pdfjs/web/cmaps/Add-RKSJ-V.bcmap +0 -0
  31. package/dist/pdfjs/web/cmaps/Add-V.bcmap +0 -0
  32. package/dist/pdfjs/web/cmaps/Adobe-CNS1-0.bcmap +0 -0
  33. package/dist/pdfjs/web/cmaps/Adobe-CNS1-1.bcmap +0 -0
  34. package/dist/pdfjs/web/cmaps/Adobe-CNS1-2.bcmap +0 -0
  35. package/dist/pdfjs/web/cmaps/Adobe-CNS1-3.bcmap +0 -0
  36. package/dist/pdfjs/web/cmaps/Adobe-CNS1-4.bcmap +0 -0
  37. package/dist/pdfjs/web/cmaps/Adobe-CNS1-5.bcmap +0 -0
  38. package/dist/pdfjs/web/cmaps/Adobe-CNS1-6.bcmap +0 -0
  39. package/dist/pdfjs/web/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  40. package/dist/pdfjs/web/cmaps/Adobe-GB1-0.bcmap +0 -0
  41. package/dist/pdfjs/web/cmaps/Adobe-GB1-1.bcmap +0 -0
  42. package/dist/pdfjs/web/cmaps/Adobe-GB1-2.bcmap +0 -0
  43. package/dist/pdfjs/web/cmaps/Adobe-GB1-3.bcmap +0 -0
  44. package/dist/pdfjs/web/cmaps/Adobe-GB1-4.bcmap +0 -0
  45. package/dist/pdfjs/web/cmaps/Adobe-GB1-5.bcmap +0 -0
  46. package/dist/pdfjs/web/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  47. package/dist/pdfjs/web/cmaps/Adobe-Japan1-0.bcmap +0 -0
  48. package/dist/pdfjs/web/cmaps/Adobe-Japan1-1.bcmap +0 -0
  49. package/dist/pdfjs/web/cmaps/Adobe-Japan1-2.bcmap +0 -0
  50. package/dist/pdfjs/web/cmaps/Adobe-Japan1-3.bcmap +0 -0
  51. package/dist/pdfjs/web/cmaps/Adobe-Japan1-4.bcmap +0 -0
  52. package/dist/pdfjs/web/cmaps/Adobe-Japan1-5.bcmap +0 -0
  53. package/dist/pdfjs/web/cmaps/Adobe-Japan1-6.bcmap +0 -0
  54. package/dist/pdfjs/web/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  55. package/dist/pdfjs/web/cmaps/Adobe-Korea1-0.bcmap +0 -0
  56. package/dist/pdfjs/web/cmaps/Adobe-Korea1-1.bcmap +0 -0
  57. package/dist/pdfjs/web/cmaps/Adobe-Korea1-2.bcmap +0 -0
  58. package/dist/pdfjs/web/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  59. package/dist/pdfjs/web/cmaps/B5-H.bcmap +0 -0
  60. package/dist/pdfjs/web/cmaps/B5-V.bcmap +0 -0
  61. package/dist/pdfjs/web/cmaps/B5pc-H.bcmap +0 -0
  62. package/dist/pdfjs/web/cmaps/B5pc-V.bcmap +0 -0
  63. package/dist/pdfjs/web/cmaps/CNS-EUC-H.bcmap +0 -0
  64. package/dist/pdfjs/web/cmaps/CNS-EUC-V.bcmap +0 -0
  65. package/dist/pdfjs/web/cmaps/CNS1-H.bcmap +0 -0
  66. package/dist/pdfjs/web/cmaps/CNS1-V.bcmap +0 -0
  67. package/dist/pdfjs/web/cmaps/CNS2-H.bcmap +0 -0
  68. package/dist/pdfjs/web/cmaps/CNS2-V.bcmap +0 -3
  69. package/dist/pdfjs/web/cmaps/ETHK-B5-H.bcmap +0 -0
  70. package/dist/pdfjs/web/cmaps/ETHK-B5-V.bcmap +0 -0
  71. package/dist/pdfjs/web/cmaps/ETen-B5-H.bcmap +0 -0
  72. package/dist/pdfjs/web/cmaps/ETen-B5-V.bcmap +0 -0
  73. package/dist/pdfjs/web/cmaps/ETenms-B5-H.bcmap +0 -3
  74. package/dist/pdfjs/web/cmaps/ETenms-B5-V.bcmap +0 -0
  75. package/dist/pdfjs/web/cmaps/EUC-H.bcmap +0 -0
  76. package/dist/pdfjs/web/cmaps/EUC-V.bcmap +0 -0
  77. package/dist/pdfjs/web/cmaps/Ext-H.bcmap +0 -0
  78. package/dist/pdfjs/web/cmaps/Ext-RKSJ-H.bcmap +0 -0
  79. package/dist/pdfjs/web/cmaps/Ext-RKSJ-V.bcmap +0 -0
  80. package/dist/pdfjs/web/cmaps/Ext-V.bcmap +0 -0
  81. package/dist/pdfjs/web/cmaps/GB-EUC-H.bcmap +0 -0
  82. package/dist/pdfjs/web/cmaps/GB-EUC-V.bcmap +0 -0
  83. package/dist/pdfjs/web/cmaps/GB-H.bcmap +0 -4
  84. package/dist/pdfjs/web/cmaps/GB-V.bcmap +0 -0
  85. package/dist/pdfjs/web/cmaps/GBK-EUC-H.bcmap +0 -0
  86. package/dist/pdfjs/web/cmaps/GBK-EUC-V.bcmap +0 -0
  87. package/dist/pdfjs/web/cmaps/GBK2K-H.bcmap +0 -0
  88. package/dist/pdfjs/web/cmaps/GBK2K-V.bcmap +0 -0
  89. package/dist/pdfjs/web/cmaps/GBKp-EUC-H.bcmap +0 -0
  90. package/dist/pdfjs/web/cmaps/GBKp-EUC-V.bcmap +0 -0
  91. package/dist/pdfjs/web/cmaps/GBT-EUC-H.bcmap +0 -0
  92. package/dist/pdfjs/web/cmaps/GBT-EUC-V.bcmap +0 -0
  93. package/dist/pdfjs/web/cmaps/GBT-H.bcmap +0 -0
  94. package/dist/pdfjs/web/cmaps/GBT-V.bcmap +0 -0
  95. package/dist/pdfjs/web/cmaps/GBTpc-EUC-H.bcmap +0 -0
  96. package/dist/pdfjs/web/cmaps/GBTpc-EUC-V.bcmap +0 -0
  97. package/dist/pdfjs/web/cmaps/GBpc-EUC-H.bcmap +0 -0
  98. package/dist/pdfjs/web/cmaps/GBpc-EUC-V.bcmap +0 -0
  99. package/dist/pdfjs/web/cmaps/H.bcmap +0 -0
  100. package/dist/pdfjs/web/cmaps/HKdla-B5-H.bcmap +0 -0
  101. package/dist/pdfjs/web/cmaps/HKdla-B5-V.bcmap +0 -0
  102. package/dist/pdfjs/web/cmaps/HKdlb-B5-H.bcmap +0 -0
  103. package/dist/pdfjs/web/cmaps/HKdlb-B5-V.bcmap +0 -0
  104. package/dist/pdfjs/web/cmaps/HKgccs-B5-H.bcmap +0 -0
  105. package/dist/pdfjs/web/cmaps/HKgccs-B5-V.bcmap +0 -0
  106. package/dist/pdfjs/web/cmaps/HKm314-B5-H.bcmap +0 -0
  107. package/dist/pdfjs/web/cmaps/HKm314-B5-V.bcmap +0 -0
  108. package/dist/pdfjs/web/cmaps/HKm471-B5-H.bcmap +0 -0
  109. package/dist/pdfjs/web/cmaps/HKm471-B5-V.bcmap +0 -0
  110. package/dist/pdfjs/web/cmaps/HKscs-B5-H.bcmap +0 -0
  111. package/dist/pdfjs/web/cmaps/HKscs-B5-V.bcmap +0 -0
  112. package/dist/pdfjs/web/cmaps/Hankaku.bcmap +0 -0
  113. package/dist/pdfjs/web/cmaps/Hiragana.bcmap +0 -0
  114. package/dist/pdfjs/web/cmaps/KSC-EUC-H.bcmap +0 -0
  115. package/dist/pdfjs/web/cmaps/KSC-EUC-V.bcmap +0 -0
  116. package/dist/pdfjs/web/cmaps/KSC-H.bcmap +0 -0
  117. package/dist/pdfjs/web/cmaps/KSC-Johab-H.bcmap +0 -0
  118. package/dist/pdfjs/web/cmaps/KSC-Johab-V.bcmap +0 -0
  119. package/dist/pdfjs/web/cmaps/KSC-V.bcmap +0 -0
  120. package/dist/pdfjs/web/cmaps/KSCms-UHC-H.bcmap +0 -0
  121. package/dist/pdfjs/web/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  122. package/dist/pdfjs/web/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  123. package/dist/pdfjs/web/cmaps/KSCms-UHC-V.bcmap +0 -0
  124. package/dist/pdfjs/web/cmaps/KSCpc-EUC-H.bcmap +0 -0
  125. package/dist/pdfjs/web/cmaps/KSCpc-EUC-V.bcmap +0 -0
  126. package/dist/pdfjs/web/cmaps/Katakana.bcmap +0 -0
  127. package/dist/pdfjs/web/cmaps/LICENSE +0 -36
  128. package/dist/pdfjs/web/cmaps/NWP-H.bcmap +0 -0
  129. package/dist/pdfjs/web/cmaps/NWP-V.bcmap +0 -0
  130. package/dist/pdfjs/web/cmaps/RKSJ-H.bcmap +0 -0
  131. package/dist/pdfjs/web/cmaps/RKSJ-V.bcmap +0 -0
  132. package/dist/pdfjs/web/cmaps/Roman.bcmap +0 -0
  133. package/dist/pdfjs/web/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  134. package/dist/pdfjs/web/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  135. package/dist/pdfjs/web/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  136. package/dist/pdfjs/web/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  137. package/dist/pdfjs/web/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  138. package/dist/pdfjs/web/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  139. package/dist/pdfjs/web/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  140. package/dist/pdfjs/web/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  141. package/dist/pdfjs/web/cmaps/UniGB-UCS2-H.bcmap +0 -0
  142. package/dist/pdfjs/web/cmaps/UniGB-UCS2-V.bcmap +0 -0
  143. package/dist/pdfjs/web/cmaps/UniGB-UTF16-H.bcmap +0 -0
  144. package/dist/pdfjs/web/cmaps/UniGB-UTF16-V.bcmap +0 -0
  145. package/dist/pdfjs/web/cmaps/UniGB-UTF32-H.bcmap +0 -0
  146. package/dist/pdfjs/web/cmaps/UniGB-UTF32-V.bcmap +0 -0
  147. package/dist/pdfjs/web/cmaps/UniGB-UTF8-H.bcmap +0 -0
  148. package/dist/pdfjs/web/cmaps/UniGB-UTF8-V.bcmap +0 -0
  149. package/dist/pdfjs/web/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  150. package/dist/pdfjs/web/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  151. package/dist/pdfjs/web/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  152. package/dist/pdfjs/web/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  153. package/dist/pdfjs/web/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  154. package/dist/pdfjs/web/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  155. package/dist/pdfjs/web/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  156. package/dist/pdfjs/web/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  157. package/dist/pdfjs/web/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  158. package/dist/pdfjs/web/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  159. package/dist/pdfjs/web/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  160. package/dist/pdfjs/web/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  161. package/dist/pdfjs/web/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  162. package/dist/pdfjs/web/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  163. package/dist/pdfjs/web/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  164. package/dist/pdfjs/web/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  165. package/dist/pdfjs/web/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  166. package/dist/pdfjs/web/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  167. package/dist/pdfjs/web/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  168. package/dist/pdfjs/web/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  169. package/dist/pdfjs/web/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  170. package/dist/pdfjs/web/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  171. package/dist/pdfjs/web/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  172. package/dist/pdfjs/web/cmaps/UniKS-UCS2-H.bcmap +0 -0
  173. package/dist/pdfjs/web/cmaps/UniKS-UCS2-V.bcmap +0 -0
  174. package/dist/pdfjs/web/cmaps/UniKS-UTF16-H.bcmap +0 -0
  175. package/dist/pdfjs/web/cmaps/UniKS-UTF16-V.bcmap +0 -0
  176. package/dist/pdfjs/web/cmaps/UniKS-UTF32-H.bcmap +0 -0
  177. package/dist/pdfjs/web/cmaps/UniKS-UTF32-V.bcmap +0 -0
  178. package/dist/pdfjs/web/cmaps/UniKS-UTF8-H.bcmap +0 -0
  179. package/dist/pdfjs/web/cmaps/UniKS-UTF8-V.bcmap +0 -0
  180. package/dist/pdfjs/web/cmaps/V.bcmap +0 -0
  181. package/dist/pdfjs/web/cmaps/WP-Symbol.bcmap +0 -0
  182. package/dist/pdfjs/web/compressed.tracemonkey-pldi-09.pdf +0 -0
  183. package/dist/pdfjs/web/debugger.css +0 -113
  184. package/dist/pdfjs/web/debugger.js +0 -612
  185. package/dist/pdfjs/web/images/annotation-check.svg +0 -11
  186. package/dist/pdfjs/web/images/annotation-comment.svg +0 -16
  187. package/dist/pdfjs/web/images/annotation-help.svg +0 -26
  188. package/dist/pdfjs/web/images/annotation-insert.svg +0 -10
  189. package/dist/pdfjs/web/images/annotation-key.svg +0 -11
  190. package/dist/pdfjs/web/images/annotation-newparagraph.svg +0 -11
  191. package/dist/pdfjs/web/images/annotation-noicon.svg +0 -7
  192. package/dist/pdfjs/web/images/annotation-note.svg +0 -42
  193. package/dist/pdfjs/web/images/annotation-paperclip.svg +0 -6
  194. package/dist/pdfjs/web/images/annotation-paragraph.svg +0 -16
  195. package/dist/pdfjs/web/images/annotation-pushpin.svg +0 -7
  196. package/dist/pdfjs/web/images/cursor-editorFreeText.svg +0 -3
  197. package/dist/pdfjs/web/images/cursor-editorInk.svg +0 -4
  198. package/dist/pdfjs/web/images/findbarButton-next.svg +0 -3
  199. package/dist/pdfjs/web/images/findbarButton-previous.svg +0 -3
  200. package/dist/pdfjs/web/images/loading-dark.svg +0 -24
  201. package/dist/pdfjs/web/images/loading-icon.gif +0 -0
  202. package/dist/pdfjs/web/images/loading.svg +0 -1
  203. package/dist/pdfjs/web/images/secondaryToolbarButton-documentProperties.svg +0 -3
  204. package/dist/pdfjs/web/images/secondaryToolbarButton-firstPage.svg +0 -3
  205. package/dist/pdfjs/web/images/secondaryToolbarButton-handTool.svg +0 -3
  206. package/dist/pdfjs/web/images/secondaryToolbarButton-lastPage.svg +0 -3
  207. package/dist/pdfjs/web/images/secondaryToolbarButton-rotateCcw.svg +0 -3
  208. package/dist/pdfjs/web/images/secondaryToolbarButton-rotateCw.svg +0 -3
  209. package/dist/pdfjs/web/images/secondaryToolbarButton-scrollHorizontal.svg +0 -3
  210. package/dist/pdfjs/web/images/secondaryToolbarButton-scrollPage.svg +0 -3
  211. package/dist/pdfjs/web/images/secondaryToolbarButton-scrollVertical.svg +0 -3
  212. package/dist/pdfjs/web/images/secondaryToolbarButton-scrollWrapped.svg +0 -3
  213. package/dist/pdfjs/web/images/secondaryToolbarButton-selectTool.svg +0 -3
  214. package/dist/pdfjs/web/images/secondaryToolbarButton-spreadEven.svg +0 -3
  215. package/dist/pdfjs/web/images/secondaryToolbarButton-spreadNone.svg +0 -3
  216. package/dist/pdfjs/web/images/secondaryToolbarButton-spreadOdd.svg +0 -3
  217. package/dist/pdfjs/web/images/toolbarButton-bookmark.svg +0 -3
  218. package/dist/pdfjs/web/images/toolbarButton-currentOutlineItem.svg +0 -3
  219. package/dist/pdfjs/web/images/toolbarButton-download.svg +0 -4
  220. package/dist/pdfjs/web/images/toolbarButton-editorFreeText.svg +0 -3
  221. package/dist/pdfjs/web/images/toolbarButton-editorInk.svg +0 -4
  222. package/dist/pdfjs/web/images/toolbarButton-menuArrow.svg +0 -3
  223. package/dist/pdfjs/web/images/toolbarButton-openFile.svg +0 -3
  224. package/dist/pdfjs/web/images/toolbarButton-pageDown.svg +0 -3
  225. package/dist/pdfjs/web/images/toolbarButton-pageUp.svg +0 -3
  226. package/dist/pdfjs/web/images/toolbarButton-presentationMode.svg +0 -3
  227. package/dist/pdfjs/web/images/toolbarButton-print.svg +0 -3
  228. package/dist/pdfjs/web/images/toolbarButton-search.svg +0 -3
  229. package/dist/pdfjs/web/images/toolbarButton-secondaryToolbarToggle.svg +0 -3
  230. package/dist/pdfjs/web/images/toolbarButton-sidebarToggle.svg +0 -3
  231. package/dist/pdfjs/web/images/toolbarButton-viewAttachments.svg +0 -3
  232. package/dist/pdfjs/web/images/toolbarButton-viewLayers.svg +0 -3
  233. package/dist/pdfjs/web/images/toolbarButton-viewOutline.svg +0 -3
  234. package/dist/pdfjs/web/images/toolbarButton-viewThumbnail.svg +0 -3
  235. package/dist/pdfjs/web/images/toolbarButton-zoomIn.svg +0 -3
  236. package/dist/pdfjs/web/images/toolbarButton-zoomOut.svg +0 -3
  237. package/dist/pdfjs/web/images/treeitem-collapsed.svg +0 -1
  238. package/dist/pdfjs/web/images/treeitem-expanded.svg +0 -1
  239. package/dist/pdfjs/web/locale/ach/viewer.properties +0 -200
  240. package/dist/pdfjs/web/locale/af/viewer.properties +0 -177
  241. package/dist/pdfjs/web/locale/an/viewer.properties +0 -243
  242. package/dist/pdfjs/web/locale/ar/viewer.properties +0 -247
  243. package/dist/pdfjs/web/locale/ast/viewer.properties +0 -207
  244. package/dist/pdfjs/web/locale/az/viewer.properties +0 -243
  245. package/dist/pdfjs/web/locale/be/viewer.properties +0 -277
  246. package/dist/pdfjs/web/locale/bg/viewer.properties +0 -235
  247. package/dist/pdfjs/web/locale/bn/viewer.properties +0 -239
  248. package/dist/pdfjs/web/locale/bo/viewer.properties +0 -238
  249. package/dist/pdfjs/web/locale/br/viewer.properties +0 -247
  250. package/dist/pdfjs/web/locale/brx/viewer.properties +0 -205
  251. package/dist/pdfjs/web/locale/bs/viewer.properties +0 -194
  252. package/dist/pdfjs/web/locale/ca/viewer.properties +0 -251
  253. package/dist/pdfjs/web/locale/cak/viewer.properties +0 -249
  254. package/dist/pdfjs/web/locale/ckb/viewer.properties +0 -234
  255. package/dist/pdfjs/web/locale/cs/viewer.properties +0 -277
  256. package/dist/pdfjs/web/locale/cy/viewer.properties +0 -277
  257. package/dist/pdfjs/web/locale/da/viewer.properties +0 -277
  258. package/dist/pdfjs/web/locale/de/viewer.properties +0 -277
  259. package/dist/pdfjs/web/locale/dsb/viewer.properties +0 -274
  260. package/dist/pdfjs/web/locale/el/viewer.properties +0 -278
  261. package/dist/pdfjs/web/locale/en-CA/viewer.properties +0 -274
  262. package/dist/pdfjs/web/locale/en-GB/viewer.properties +0 -277
  263. package/dist/pdfjs/web/locale/en-US/viewer.properties +0 -252
  264. package/dist/pdfjs/web/locale/eo/viewer.properties +0 -274
  265. package/dist/pdfjs/web/locale/es-AR/viewer.properties +0 -277
  266. package/dist/pdfjs/web/locale/es-CL/viewer.properties +0 -277
  267. package/dist/pdfjs/web/locale/es-ES/viewer.properties +0 -277
  268. package/dist/pdfjs/web/locale/es-MX/viewer.properties +0 -277
  269. package/dist/pdfjs/web/locale/et/viewer.properties +0 -262
  270. package/dist/pdfjs/web/locale/eu/viewer.properties +0 -277
  271. package/dist/pdfjs/web/locale/fa/viewer.properties +0 -216
  272. package/dist/pdfjs/web/locale/ff/viewer.properties +0 -235
  273. package/dist/pdfjs/web/locale/fi/viewer.properties +0 -274
  274. package/dist/pdfjs/web/locale/fr/viewer.properties +0 -277
  275. package/dist/pdfjs/web/locale/fur/viewer.properties +0 -277
  276. package/dist/pdfjs/web/locale/fy-NL/viewer.properties +0 -277
  277. package/dist/pdfjs/web/locale/ga-IE/viewer.properties +0 -202
  278. package/dist/pdfjs/web/locale/gd/viewer.properties +0 -249
  279. package/dist/pdfjs/web/locale/gl/viewer.properties +0 -249
  280. package/dist/pdfjs/web/locale/gn/viewer.properties +0 -279
  281. package/dist/pdfjs/web/locale/gu-IN/viewer.properties +0 -235
  282. package/dist/pdfjs/web/locale/he/viewer.properties +0 -276
  283. package/dist/pdfjs/web/locale/hi-IN/viewer.properties +0 -235
  284. package/dist/pdfjs/web/locale/hr/viewer.properties +0 -267
  285. package/dist/pdfjs/web/locale/hsb/viewer.properties +0 -279
  286. package/dist/pdfjs/web/locale/hu/viewer.properties +0 -277
  287. package/dist/pdfjs/web/locale/hy-AM/viewer.properties +0 -239
  288. package/dist/pdfjs/web/locale/hye/viewer.properties +0 -252
  289. package/dist/pdfjs/web/locale/ia/viewer.properties +0 -277
  290. package/dist/pdfjs/web/locale/id/viewer.properties +0 -277
  291. package/dist/pdfjs/web/locale/is/viewer.properties +0 -277
  292. package/dist/pdfjs/web/locale/it/viewer.properties +0 -217
  293. package/dist/pdfjs/web/locale/ja/viewer.properties +0 -277
  294. package/dist/pdfjs/web/locale/ka/viewer.properties +0 -277
  295. package/dist/pdfjs/web/locale/kab/viewer.properties +0 -274
  296. package/dist/pdfjs/web/locale/kk/viewer.properties +0 -277
  297. package/dist/pdfjs/web/locale/km/viewer.properties +0 -210
  298. package/dist/pdfjs/web/locale/kn/viewer.properties +0 -187
  299. package/dist/pdfjs/web/locale/ko/viewer.properties +0 -277
  300. package/dist/pdfjs/web/locale/lij/viewer.properties +0 -235
  301. package/dist/pdfjs/web/locale/lo/viewer.properties +0 -145
  302. package/dist/pdfjs/web/locale/locale.properties +0 -333
  303. package/dist/pdfjs/web/locale/lt/viewer.properties +0 -260
  304. package/dist/pdfjs/web/locale/ltg/viewer.properties +0 -213
  305. package/dist/pdfjs/web/locale/lv/viewer.properties +0 -235
  306. package/dist/pdfjs/web/locale/meh/viewer.properties +0 -111
  307. package/dist/pdfjs/web/locale/mk/viewer.properties +0 -139
  308. package/dist/pdfjs/web/locale/mr/viewer.properties +0 -231
  309. package/dist/pdfjs/web/locale/ms/viewer.properties +0 -235
  310. package/dist/pdfjs/web/locale/my/viewer.properties +0 -191
  311. package/dist/pdfjs/web/locale/nb-NO/viewer.properties +0 -277
  312. package/dist/pdfjs/web/locale/ne-NP/viewer.properties +0 -218
  313. package/dist/pdfjs/web/locale/nl/viewer.properties +0 -277
  314. package/dist/pdfjs/web/locale/nn-NO/viewer.properties +0 -277
  315. package/dist/pdfjs/web/locale/oc/viewer.properties +0 -277
  316. package/dist/pdfjs/web/locale/pa-IN/viewer.properties +0 -277
  317. package/dist/pdfjs/web/locale/pl/viewer.properties +0 -277
  318. package/dist/pdfjs/web/locale/pt-BR/viewer.properties +0 -277
  319. package/dist/pdfjs/web/locale/pt-PT/viewer.properties +0 -277
  320. package/dist/pdfjs/web/locale/rm/viewer.properties +0 -277
  321. package/dist/pdfjs/web/locale/ro/viewer.properties +0 -241
  322. package/dist/pdfjs/web/locale/ru/viewer.properties +0 -277
  323. package/dist/pdfjs/web/locale/sat/viewer.properties +0 -198
  324. package/dist/pdfjs/web/locale/sc/viewer.properties +0 -261
  325. package/dist/pdfjs/web/locale/scn/viewer.properties +0 -101
  326. package/dist/pdfjs/web/locale/sco/viewer.properties +0 -249
  327. package/dist/pdfjs/web/locale/si/viewer.properties +0 -237
  328. package/dist/pdfjs/web/locale/sk/viewer.properties +0 -277
  329. package/dist/pdfjs/web/locale/skr/viewer.properties +0 -277
  330. package/dist/pdfjs/web/locale/sl/viewer.properties +0 -277
  331. package/dist/pdfjs/web/locale/son/viewer.properties +0 -173
  332. package/dist/pdfjs/web/locale/sq/viewer.properties +0 -271
  333. package/dist/pdfjs/web/locale/sr/viewer.properties +0 -277
  334. package/dist/pdfjs/web/locale/sv-SE/viewer.properties +0 -277
  335. package/dist/pdfjs/web/locale/szl/viewer.properties +0 -245
  336. package/dist/pdfjs/web/locale/ta/viewer.properties +0 -194
  337. package/dist/pdfjs/web/locale/te/viewer.properties +0 -237
  338. package/dist/pdfjs/web/locale/tg/viewer.properties +0 -276
  339. package/dist/pdfjs/web/locale/th/viewer.properties +0 -276
  340. package/dist/pdfjs/web/locale/tl/viewer.properties +0 -243
  341. package/dist/pdfjs/web/locale/tr/viewer.properties +0 -276
  342. package/dist/pdfjs/web/locale/trs/viewer.properties +0 -206
  343. package/dist/pdfjs/web/locale/uk/viewer.properties +0 -277
  344. package/dist/pdfjs/web/locale/ur/viewer.properties +0 -239
  345. package/dist/pdfjs/web/locale/uz/viewer.properties +0 -163
  346. package/dist/pdfjs/web/locale/vi/viewer.properties +0 -277
  347. package/dist/pdfjs/web/locale/wo/viewer.properties +0 -123
  348. package/dist/pdfjs/web/locale/xh/viewer.properties +0 -177
  349. package/dist/pdfjs/web/locale/zh-CN/viewer.properties +0 -277
  350. package/dist/pdfjs/web/locale/zh-TW/viewer.properties +0 -277
  351. package/dist/pdfjs/web/standard_fonts/FoxitDingbats.pfb +0 -0
  352. package/dist/pdfjs/web/standard_fonts/FoxitFixed.pfb +0 -0
  353. package/dist/pdfjs/web/standard_fonts/FoxitFixedBold.pfb +0 -0
  354. package/dist/pdfjs/web/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  355. package/dist/pdfjs/web/standard_fonts/FoxitFixedItalic.pfb +0 -0
  356. package/dist/pdfjs/web/standard_fonts/FoxitSans.pfb +0 -0
  357. package/dist/pdfjs/web/standard_fonts/FoxitSansBold.pfb +0 -0
  358. package/dist/pdfjs/web/standard_fonts/FoxitSansBoldItalic.pfb +0 -0
  359. package/dist/pdfjs/web/standard_fonts/FoxitSansItalic.pfb +0 -0
  360. package/dist/pdfjs/web/standard_fonts/FoxitSerif.pfb +0 -0
  361. package/dist/pdfjs/web/standard_fonts/FoxitSerifBold.pfb +0 -0
  362. package/dist/pdfjs/web/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  363. package/dist/pdfjs/web/standard_fonts/FoxitSerifItalic.pfb +0 -0
  364. package/dist/pdfjs/web/standard_fonts/FoxitSymbol.pfb +0 -0
  365. package/dist/pdfjs/web/standard_fonts/LICENSE_FOXIT +0 -27
  366. package/dist/pdfjs/web/standard_fonts/LICENSE_LIBERATION +0 -102
  367. package/dist/pdfjs/web/standard_fonts/LiberationSans-Bold.ttf +0 -0
  368. package/dist/pdfjs/web/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  369. package/dist/pdfjs/web/standard_fonts/LiberationSans-Italic.ttf +0 -0
  370. package/dist/pdfjs/web/standard_fonts/LiberationSans-Regular.ttf +0 -0
  371. package/dist/pdfjs/web/viewer.css +0 -2692
  372. package/dist/pdfjs/web/viewer.html +0 -433
  373. package/dist/pdfjs/web/viewer.js +0 -13912
  374. package/dist/pdfjs/web/viewer.js.map +0 -1
  375. package/dist/pdfjs-viewer-element.js +0 -28
package/README.md CHANGED
@@ -3,44 +3,57 @@
3
3
  [![npm version](https://img.shields.io/npm/v/pdfjs-viewer-element?logo=npm&logoColor=fff)](https://www.npmjs.com/package/pdfjs-viewer-element)
4
4
  [![Package Quality](https://packagequality.com/shield/pdfjs-viewer-element.svg)](https://packagequality.com/#?package=pdfjs-viewer-element)
5
5
 
6
- A web component for viewing pdf files in the browser. The package is based on [PDF.js viewer](https://mozilla.github.io/pdf.js/web/viewer.html) build and works with any framework. See [demo](https://alekswebnet.github.io/pdfjs-viewer-element/index.html).
6
+ A web component for viewing pdf files in the browser. The package is based on [PDF.js default viewer](https://mozilla.github.io/pdf.js/web/viewer.html) build and works with any framework. See [demo](https://alekswebnet.github.io/pdfjs-viewer-element/).
7
7
 
8
- ⚠️ `pdfjs-viewer-element` uses PDF.js [prebuilt](http://mozilla.github.io/pdf.js/getting_started/), that includes the generic build of PDF.js and the viewer. To use the package you should download and **place the prebuilt** files to some directory of your project. You may specify the path to this directory with `viewer-path` property (`/pdfjs` by default).
8
+ ⚠️ `pdfjs-viewer-element` uses PDF.js [prebuilt](http://mozilla.github.io/pdf.js/getting_started/), that includes the generic build of PDF.js and the viewer. To use the package you should download and **place the prebuilt** files to some directory of your project. Then specify the path to this directory with `viewer-path` property (`/pdfjs` by default).
9
9
 
10
10
  ## Install
11
- ```
12
- npm install --save pdfjs-viewer-element
13
- ```
14
11
 
15
- ```
12
+ Using module bundlers:
13
+
14
+ ```bash
15
+ # With npm
16
+ npm install pdfjs-viewer-element
17
+ # With yarn
16
18
  yarn add pdfjs-viewer-element
17
19
  ```
18
20
 
19
- or
20
-
21
+ ```javascript
22
+ import 'pdfjs-viewer-element'
21
23
  ```
24
+
25
+ Using browser:
26
+
27
+ ```html
22
28
  <script type="module" src="https://cdn.skypack.dev/pdfjs-viewer-element"></script>
23
29
  ```
24
30
 
25
31
  ## Usage
26
32
 
27
- Place **PDF.js prebuilt** files to some directory of your project (`pdfjs` used as the standard name). See demo [example](https://github.com/alekswebnet/pdfjs-viewer-element/tree/master/public). You may call the directory as you want, but then you should specify the `viewer-path` property.
28
-
29
- ```javascript
30
- import 'pdfjs-viewer-element'
31
- ```
32
-
33
- ```javascript
34
- <pdfjs-viewer-element src="/compressed.tracemonkey-pldi-09.pdf" viewer-path="/path-to-viewer"></pdfjs-viewer-element>
33
+ ```html
34
+ <pdfjs-viewer-element src="/file.pdf" viewer-path="/path-to-viewer"></pdfjs-viewer-element>
35
35
  ```
36
36
 
37
37
  ## Properties
38
38
 
39
- `src` - path to pdf file.
39
+ `src` - Path to pdf file
40
+
41
+ `viewer-path` - Path to PDF.js prebuilt
42
+
43
+ `locale` - Language of the interface
44
+
45
+ `page` - Page number
46
+
47
+ `search` - Search text
48
+
49
+ `phrase` - Search by phrase
50
+
51
+ `zoom` - Zoom level
52
+
53
+ `pagemode` - Page mode
40
54
 
41
- `viewer-path` - path to prebuilt directory (`/pdfjs` by default).
55
+ For more clarity, see the [demo playground](https://alekswebnet.github.io/pdfjs-viewer-element/api).
42
56
 
43
- `locale` - language localization (e.g. 'en', 'en-US', 'es', 'de'), see [pdf.js i10n files](https://github.com/mozilla/pdf.js/tree/master/l10n) (the language of your browser by default)
44
57
  ## License
45
58
  For this package - [MIT](http://opensource.org/licenses/MIT).
46
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdfjs-viewer-element",
3
- "version": "2.1.0",
3
+ "version": "2.2.1",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Oleksandr Shevchuk",
@@ -0,0 +1 @@
1
+ export declare const debounce: (fn: Function, ms?: number) => (this: any, ...args: any[]) => void;
@@ -1,13 +1,25 @@
1
1
  export declare class PdfjsViewerElement extends HTMLElement {
2
- constructor();
3
- static get observedAttributes(): string[];
4
- connectedCallback(): void;
5
- attributeChangedCallback(name: string): void;
6
- updateIframe(): void;
2
+ constructor();
3
+ private iframe;
4
+ static get observedAttributes(): string[];
5
+ connectedCallback(): void;
6
+ attributeChangedCallback(): void;
7
+ private onAttrsChanged;
8
+ private setProps;
9
+ private setEventListeners;
10
+ private getFileSrc;
7
11
  }
8
12
  declare global {
9
- interface Window {
10
- PdfjsViewerElement: typeof PdfjsViewerElement;
11
- }
13
+ interface Window {
14
+ PdfjsViewerElement: typeof PdfjsViewerElement;
15
+ }
16
+ }
17
+ export interface PdfjsViewerElementIframeWindow extends Window {
18
+ PDFViewerApplicationOptions: {
19
+ set: (name: string, value: string | boolean) => void;
20
+ };
21
+ }
22
+ export interface PdfjsViewerElementIframe extends HTMLIFrameElement {
23
+ contentWindow: PdfjsViewerElementIframeWindow;
12
24
  }
13
25
  export default PdfjsViewerElement;
@@ -1,177 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS