ngx-rendering-service-lib 0.0.2 → 0.0.4

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 (404) hide show
  1. package/esm2022/lib/render.component.mjs +8 -4
  2. package/fesm2022/ngx-rendering-service-lib.mjs +7 -4
  3. package/fesm2022/ngx-rendering-service-lib.mjs.map +1 -1
  4. package/lib/render.component.d.ts +7 -3
  5. package/package.json +1 -1
  6. package/assets/pdfjs/build/pdf.js +0 -24385
  7. package/assets/pdfjs/build/pdf.js.map +0 -1
  8. package/assets/pdfjs/build/pdf.worker.js +0 -55973
  9. package/assets/pdfjs/build/pdf.worker.js.map +0 -1
  10. package/assets/pdfjs/web/cmaps/78-EUC-H.bcmap +0 -0
  11. package/assets/pdfjs/web/cmaps/78-EUC-V.bcmap +0 -0
  12. package/assets/pdfjs/web/cmaps/78-H.bcmap +0 -0
  13. package/assets/pdfjs/web/cmaps/78-RKSJ-H.bcmap +0 -0
  14. package/assets/pdfjs/web/cmaps/78-RKSJ-V.bcmap +0 -0
  15. package/assets/pdfjs/web/cmaps/78-V.bcmap +0 -0
  16. package/assets/pdfjs/web/cmaps/78ms-RKSJ-H.bcmap +0 -0
  17. package/assets/pdfjs/web/cmaps/78ms-RKSJ-V.bcmap +0 -0
  18. package/assets/pdfjs/web/cmaps/83pv-RKSJ-H.bcmap +0 -0
  19. package/assets/pdfjs/web/cmaps/90ms-RKSJ-H.bcmap +0 -0
  20. package/assets/pdfjs/web/cmaps/90ms-RKSJ-V.bcmap +0 -0
  21. package/assets/pdfjs/web/cmaps/90msp-RKSJ-H.bcmap +0 -0
  22. package/assets/pdfjs/web/cmaps/90msp-RKSJ-V.bcmap +0 -0
  23. package/assets/pdfjs/web/cmaps/90pv-RKSJ-H.bcmap +0 -0
  24. package/assets/pdfjs/web/cmaps/90pv-RKSJ-V.bcmap +0 -0
  25. package/assets/pdfjs/web/cmaps/Add-H.bcmap +0 -0
  26. package/assets/pdfjs/web/cmaps/Add-RKSJ-H.bcmap +0 -0
  27. package/assets/pdfjs/web/cmaps/Add-RKSJ-V.bcmap +0 -0
  28. package/assets/pdfjs/web/cmaps/Add-V.bcmap +0 -0
  29. package/assets/pdfjs/web/cmaps/Adobe-CNS1-0.bcmap +0 -0
  30. package/assets/pdfjs/web/cmaps/Adobe-CNS1-1.bcmap +0 -0
  31. package/assets/pdfjs/web/cmaps/Adobe-CNS1-2.bcmap +0 -0
  32. package/assets/pdfjs/web/cmaps/Adobe-CNS1-3.bcmap +0 -0
  33. package/assets/pdfjs/web/cmaps/Adobe-CNS1-4.bcmap +0 -0
  34. package/assets/pdfjs/web/cmaps/Adobe-CNS1-5.bcmap +0 -0
  35. package/assets/pdfjs/web/cmaps/Adobe-CNS1-6.bcmap +0 -0
  36. package/assets/pdfjs/web/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  37. package/assets/pdfjs/web/cmaps/Adobe-GB1-0.bcmap +0 -0
  38. package/assets/pdfjs/web/cmaps/Adobe-GB1-1.bcmap +0 -0
  39. package/assets/pdfjs/web/cmaps/Adobe-GB1-2.bcmap +0 -0
  40. package/assets/pdfjs/web/cmaps/Adobe-GB1-3.bcmap +0 -0
  41. package/assets/pdfjs/web/cmaps/Adobe-GB1-4.bcmap +0 -0
  42. package/assets/pdfjs/web/cmaps/Adobe-GB1-5.bcmap +0 -0
  43. package/assets/pdfjs/web/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  44. package/assets/pdfjs/web/cmaps/Adobe-Japan1-0.bcmap +0 -0
  45. package/assets/pdfjs/web/cmaps/Adobe-Japan1-1.bcmap +0 -0
  46. package/assets/pdfjs/web/cmaps/Adobe-Japan1-2.bcmap +0 -0
  47. package/assets/pdfjs/web/cmaps/Adobe-Japan1-3.bcmap +0 -0
  48. package/assets/pdfjs/web/cmaps/Adobe-Japan1-4.bcmap +0 -0
  49. package/assets/pdfjs/web/cmaps/Adobe-Japan1-5.bcmap +0 -0
  50. package/assets/pdfjs/web/cmaps/Adobe-Japan1-6.bcmap +0 -0
  51. package/assets/pdfjs/web/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  52. package/assets/pdfjs/web/cmaps/Adobe-Korea1-0.bcmap +0 -0
  53. package/assets/pdfjs/web/cmaps/Adobe-Korea1-1.bcmap +0 -0
  54. package/assets/pdfjs/web/cmaps/Adobe-Korea1-2.bcmap +0 -0
  55. package/assets/pdfjs/web/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  56. package/assets/pdfjs/web/cmaps/B5-H.bcmap +0 -0
  57. package/assets/pdfjs/web/cmaps/B5-V.bcmap +0 -0
  58. package/assets/pdfjs/web/cmaps/B5pc-H.bcmap +0 -0
  59. package/assets/pdfjs/web/cmaps/B5pc-V.bcmap +0 -0
  60. package/assets/pdfjs/web/cmaps/CNS-EUC-H.bcmap +0 -0
  61. package/assets/pdfjs/web/cmaps/CNS-EUC-V.bcmap +0 -0
  62. package/assets/pdfjs/web/cmaps/CNS1-H.bcmap +0 -0
  63. package/assets/pdfjs/web/cmaps/CNS1-V.bcmap +0 -0
  64. package/assets/pdfjs/web/cmaps/CNS2-H.bcmap +0 -0
  65. package/assets/pdfjs/web/cmaps/CNS2-V.bcmap +0 -3
  66. package/assets/pdfjs/web/cmaps/ETHK-B5-H.bcmap +0 -0
  67. package/assets/pdfjs/web/cmaps/ETHK-B5-V.bcmap +0 -0
  68. package/assets/pdfjs/web/cmaps/ETen-B5-H.bcmap +0 -0
  69. package/assets/pdfjs/web/cmaps/ETen-B5-V.bcmap +0 -0
  70. package/assets/pdfjs/web/cmaps/ETenms-B5-H.bcmap +0 -3
  71. package/assets/pdfjs/web/cmaps/ETenms-B5-V.bcmap +0 -0
  72. package/assets/pdfjs/web/cmaps/EUC-H.bcmap +0 -0
  73. package/assets/pdfjs/web/cmaps/EUC-V.bcmap +0 -0
  74. package/assets/pdfjs/web/cmaps/Ext-H.bcmap +0 -0
  75. package/assets/pdfjs/web/cmaps/Ext-RKSJ-H.bcmap +0 -0
  76. package/assets/pdfjs/web/cmaps/Ext-RKSJ-V.bcmap +0 -0
  77. package/assets/pdfjs/web/cmaps/Ext-V.bcmap +0 -0
  78. package/assets/pdfjs/web/cmaps/GB-EUC-H.bcmap +0 -0
  79. package/assets/pdfjs/web/cmaps/GB-EUC-V.bcmap +0 -0
  80. package/assets/pdfjs/web/cmaps/GB-H.bcmap +0 -4
  81. package/assets/pdfjs/web/cmaps/GB-V.bcmap +0 -0
  82. package/assets/pdfjs/web/cmaps/GBK-EUC-H.bcmap +0 -0
  83. package/assets/pdfjs/web/cmaps/GBK-EUC-V.bcmap +0 -0
  84. package/assets/pdfjs/web/cmaps/GBK2K-H.bcmap +0 -0
  85. package/assets/pdfjs/web/cmaps/GBK2K-V.bcmap +0 -0
  86. package/assets/pdfjs/web/cmaps/GBKp-EUC-H.bcmap +0 -0
  87. package/assets/pdfjs/web/cmaps/GBKp-EUC-V.bcmap +0 -0
  88. package/assets/pdfjs/web/cmaps/GBT-EUC-H.bcmap +0 -0
  89. package/assets/pdfjs/web/cmaps/GBT-EUC-V.bcmap +0 -0
  90. package/assets/pdfjs/web/cmaps/GBT-H.bcmap +0 -0
  91. package/assets/pdfjs/web/cmaps/GBT-V.bcmap +0 -0
  92. package/assets/pdfjs/web/cmaps/GBTpc-EUC-H.bcmap +0 -0
  93. package/assets/pdfjs/web/cmaps/GBTpc-EUC-V.bcmap +0 -0
  94. package/assets/pdfjs/web/cmaps/GBpc-EUC-H.bcmap +0 -0
  95. package/assets/pdfjs/web/cmaps/GBpc-EUC-V.bcmap +0 -0
  96. package/assets/pdfjs/web/cmaps/H.bcmap +0 -0
  97. package/assets/pdfjs/web/cmaps/HKdla-B5-H.bcmap +0 -0
  98. package/assets/pdfjs/web/cmaps/HKdla-B5-V.bcmap +0 -0
  99. package/assets/pdfjs/web/cmaps/HKdlb-B5-H.bcmap +0 -0
  100. package/assets/pdfjs/web/cmaps/HKdlb-B5-V.bcmap +0 -0
  101. package/assets/pdfjs/web/cmaps/HKgccs-B5-H.bcmap +0 -0
  102. package/assets/pdfjs/web/cmaps/HKgccs-B5-V.bcmap +0 -0
  103. package/assets/pdfjs/web/cmaps/HKm314-B5-H.bcmap +0 -0
  104. package/assets/pdfjs/web/cmaps/HKm314-B5-V.bcmap +0 -0
  105. package/assets/pdfjs/web/cmaps/HKm471-B5-H.bcmap +0 -0
  106. package/assets/pdfjs/web/cmaps/HKm471-B5-V.bcmap +0 -0
  107. package/assets/pdfjs/web/cmaps/HKscs-B5-H.bcmap +0 -0
  108. package/assets/pdfjs/web/cmaps/HKscs-B5-V.bcmap +0 -0
  109. package/assets/pdfjs/web/cmaps/Hankaku.bcmap +0 -0
  110. package/assets/pdfjs/web/cmaps/Hiragana.bcmap +0 -0
  111. package/assets/pdfjs/web/cmaps/KSC-EUC-H.bcmap +0 -0
  112. package/assets/pdfjs/web/cmaps/KSC-EUC-V.bcmap +0 -0
  113. package/assets/pdfjs/web/cmaps/KSC-H.bcmap +0 -0
  114. package/assets/pdfjs/web/cmaps/KSC-Johab-H.bcmap +0 -0
  115. package/assets/pdfjs/web/cmaps/KSC-Johab-V.bcmap +0 -0
  116. package/assets/pdfjs/web/cmaps/KSC-V.bcmap +0 -0
  117. package/assets/pdfjs/web/cmaps/KSCms-UHC-H.bcmap +0 -0
  118. package/assets/pdfjs/web/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  119. package/assets/pdfjs/web/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  120. package/assets/pdfjs/web/cmaps/KSCms-UHC-V.bcmap +0 -0
  121. package/assets/pdfjs/web/cmaps/KSCpc-EUC-H.bcmap +0 -0
  122. package/assets/pdfjs/web/cmaps/KSCpc-EUC-V.bcmap +0 -0
  123. package/assets/pdfjs/web/cmaps/Katakana.bcmap +0 -0
  124. package/assets/pdfjs/web/cmaps/NWP-H.bcmap +0 -0
  125. package/assets/pdfjs/web/cmaps/NWP-V.bcmap +0 -0
  126. package/assets/pdfjs/web/cmaps/RKSJ-H.bcmap +0 -0
  127. package/assets/pdfjs/web/cmaps/RKSJ-V.bcmap +0 -0
  128. package/assets/pdfjs/web/cmaps/Roman.bcmap +0 -0
  129. package/assets/pdfjs/web/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  130. package/assets/pdfjs/web/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  131. package/assets/pdfjs/web/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  132. package/assets/pdfjs/web/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  133. package/assets/pdfjs/web/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  134. package/assets/pdfjs/web/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  135. package/assets/pdfjs/web/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  136. package/assets/pdfjs/web/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  137. package/assets/pdfjs/web/cmaps/UniGB-UCS2-H.bcmap +0 -0
  138. package/assets/pdfjs/web/cmaps/UniGB-UCS2-V.bcmap +0 -0
  139. package/assets/pdfjs/web/cmaps/UniGB-UTF16-H.bcmap +0 -0
  140. package/assets/pdfjs/web/cmaps/UniGB-UTF16-V.bcmap +0 -0
  141. package/assets/pdfjs/web/cmaps/UniGB-UTF32-H.bcmap +0 -0
  142. package/assets/pdfjs/web/cmaps/UniGB-UTF32-V.bcmap +0 -0
  143. package/assets/pdfjs/web/cmaps/UniGB-UTF8-H.bcmap +0 -0
  144. package/assets/pdfjs/web/cmaps/UniGB-UTF8-V.bcmap +0 -0
  145. package/assets/pdfjs/web/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  146. package/assets/pdfjs/web/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  147. package/assets/pdfjs/web/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  148. package/assets/pdfjs/web/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  149. package/assets/pdfjs/web/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  150. package/assets/pdfjs/web/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  151. package/assets/pdfjs/web/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  152. package/assets/pdfjs/web/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  153. package/assets/pdfjs/web/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  154. package/assets/pdfjs/web/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  155. package/assets/pdfjs/web/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  156. package/assets/pdfjs/web/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  157. package/assets/pdfjs/web/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  158. package/assets/pdfjs/web/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  159. package/assets/pdfjs/web/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  160. package/assets/pdfjs/web/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  161. package/assets/pdfjs/web/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  162. package/assets/pdfjs/web/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  163. package/assets/pdfjs/web/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  164. package/assets/pdfjs/web/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  165. package/assets/pdfjs/web/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  166. package/assets/pdfjs/web/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  167. package/assets/pdfjs/web/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  168. package/assets/pdfjs/web/cmaps/UniKS-UCS2-H.bcmap +0 -0
  169. package/assets/pdfjs/web/cmaps/UniKS-UCS2-V.bcmap +0 -0
  170. package/assets/pdfjs/web/cmaps/UniKS-UTF16-H.bcmap +0 -0
  171. package/assets/pdfjs/web/cmaps/UniKS-UTF16-V.bcmap +0 -0
  172. package/assets/pdfjs/web/cmaps/UniKS-UTF32-H.bcmap +0 -0
  173. package/assets/pdfjs/web/cmaps/UniKS-UTF32-V.bcmap +0 -0
  174. package/assets/pdfjs/web/cmaps/UniKS-UTF8-H.bcmap +0 -0
  175. package/assets/pdfjs/web/cmaps/UniKS-UTF8-V.bcmap +0 -0
  176. package/assets/pdfjs/web/cmaps/V.bcmap +0 -0
  177. package/assets/pdfjs/web/cmaps/WP-Symbol.bcmap +0 -0
  178. package/assets/pdfjs/web/debugger.js +0 -615
  179. package/assets/pdfjs/web/images/annotation-check.svg +0 -11
  180. package/assets/pdfjs/web/images/annotation-comment.svg +0 -16
  181. package/assets/pdfjs/web/images/annotation-help.svg +0 -26
  182. package/assets/pdfjs/web/images/annotation-insert.svg +0 -10
  183. package/assets/pdfjs/web/images/annotation-key.svg +0 -11
  184. package/assets/pdfjs/web/images/annotation-newparagraph.svg +0 -11
  185. package/assets/pdfjs/web/images/annotation-noicon.svg +0 -7
  186. package/assets/pdfjs/web/images/annotation-note.svg +0 -42
  187. package/assets/pdfjs/web/images/annotation-paragraph.svg +0 -16
  188. package/assets/pdfjs/web/images/findbarButton-next-rtl.png +0 -0
  189. package/assets/pdfjs/web/images/findbarButton-next-rtl@2x.png +0 -0
  190. package/assets/pdfjs/web/images/findbarButton-next.png +0 -0
  191. package/assets/pdfjs/web/images/findbarButton-next@2x.png +0 -0
  192. package/assets/pdfjs/web/images/findbarButton-previous-rtl.png +0 -0
  193. package/assets/pdfjs/web/images/findbarButton-previous-rtl@2x.png +0 -0
  194. package/assets/pdfjs/web/images/findbarButton-previous.png +0 -0
  195. package/assets/pdfjs/web/images/findbarButton-previous@2x.png +0 -0
  196. package/assets/pdfjs/web/images/grab.cur +0 -0
  197. package/assets/pdfjs/web/images/grabbing.cur +0 -0
  198. package/assets/pdfjs/web/images/loading-icon.gif +0 -0
  199. package/assets/pdfjs/web/images/loading-small.png +0 -0
  200. package/assets/pdfjs/web/images/loading-small@2x.png +0 -0
  201. package/assets/pdfjs/web/images/secondaryToolbarButton-documentProperties.png +0 -0
  202. package/assets/pdfjs/web/images/secondaryToolbarButton-documentProperties@2x.png +0 -0
  203. package/assets/pdfjs/web/images/secondaryToolbarButton-firstPage.png +0 -0
  204. package/assets/pdfjs/web/images/secondaryToolbarButton-firstPage@2x.png +0 -0
  205. package/assets/pdfjs/web/images/secondaryToolbarButton-handTool.png +0 -0
  206. package/assets/pdfjs/web/images/secondaryToolbarButton-handTool@2x.png +0 -0
  207. package/assets/pdfjs/web/images/secondaryToolbarButton-lastPage.png +0 -0
  208. package/assets/pdfjs/web/images/secondaryToolbarButton-lastPage@2x.png +0 -0
  209. package/assets/pdfjs/web/images/secondaryToolbarButton-rotateCcw.png +0 -0
  210. package/assets/pdfjs/web/images/secondaryToolbarButton-rotateCcw@2x.png +0 -0
  211. package/assets/pdfjs/web/images/secondaryToolbarButton-rotateCw.png +0 -0
  212. package/assets/pdfjs/web/images/secondaryToolbarButton-rotateCw@2x.png +0 -0
  213. package/assets/pdfjs/web/images/secondaryToolbarButton-scrollHorizontal.png +0 -0
  214. package/assets/pdfjs/web/images/secondaryToolbarButton-scrollHorizontal@2x.png +0 -0
  215. package/assets/pdfjs/web/images/secondaryToolbarButton-scrollVertical.png +0 -0
  216. package/assets/pdfjs/web/images/secondaryToolbarButton-scrollVertical@2x.png +0 -0
  217. package/assets/pdfjs/web/images/secondaryToolbarButton-scrollWrapped.png +0 -0
  218. package/assets/pdfjs/web/images/secondaryToolbarButton-scrollWrapped@2x.png +0 -0
  219. package/assets/pdfjs/web/images/secondaryToolbarButton-selectTool.png +0 -0
  220. package/assets/pdfjs/web/images/secondaryToolbarButton-selectTool@2x.png +0 -0
  221. package/assets/pdfjs/web/images/secondaryToolbarButton-spreadEven.png +0 -0
  222. package/assets/pdfjs/web/images/secondaryToolbarButton-spreadEven@2x.png +0 -0
  223. package/assets/pdfjs/web/images/secondaryToolbarButton-spreadNone.png +0 -0
  224. package/assets/pdfjs/web/images/secondaryToolbarButton-spreadNone@2x.png +0 -0
  225. package/assets/pdfjs/web/images/secondaryToolbarButton-spreadOdd.png +0 -0
  226. package/assets/pdfjs/web/images/secondaryToolbarButton-spreadOdd@2x.png +0 -0
  227. package/assets/pdfjs/web/images/shadow.png +0 -0
  228. package/assets/pdfjs/web/images/texture.png +0 -0
  229. package/assets/pdfjs/web/images/toolbarButton-bookmark.png +0 -0
  230. package/assets/pdfjs/web/images/toolbarButton-bookmark@2x.png +0 -0
  231. package/assets/pdfjs/web/images/toolbarButton-download.png +0 -0
  232. package/assets/pdfjs/web/images/toolbarButton-download@2x.png +0 -0
  233. package/assets/pdfjs/web/images/toolbarButton-menuArrows.png +0 -0
  234. package/assets/pdfjs/web/images/toolbarButton-menuArrows@2x.png +0 -0
  235. package/assets/pdfjs/web/images/toolbarButton-openFile.png +0 -0
  236. package/assets/pdfjs/web/images/toolbarButton-openFile@2x.png +0 -0
  237. package/assets/pdfjs/web/images/toolbarButton-pageDown-rtl.png +0 -0
  238. package/assets/pdfjs/web/images/toolbarButton-pageDown-rtl@2x.png +0 -0
  239. package/assets/pdfjs/web/images/toolbarButton-pageDown.png +0 -0
  240. package/assets/pdfjs/web/images/toolbarButton-pageDown@2x.png +0 -0
  241. package/assets/pdfjs/web/images/toolbarButton-pageUp-rtl.png +0 -0
  242. package/assets/pdfjs/web/images/toolbarButton-pageUp-rtl@2x.png +0 -0
  243. package/assets/pdfjs/web/images/toolbarButton-pageUp.png +0 -0
  244. package/assets/pdfjs/web/images/toolbarButton-pageUp@2x.png +0 -0
  245. package/assets/pdfjs/web/images/toolbarButton-presentationMode.png +0 -0
  246. package/assets/pdfjs/web/images/toolbarButton-presentationMode@2x.png +0 -0
  247. package/assets/pdfjs/web/images/toolbarButton-print.png +0 -0
  248. package/assets/pdfjs/web/images/toolbarButton-print@2x.png +0 -0
  249. package/assets/pdfjs/web/images/toolbarButton-search.png +0 -0
  250. package/assets/pdfjs/web/images/toolbarButton-search@2x.png +0 -0
  251. package/assets/pdfjs/web/images/toolbarButton-secondaryToolbarToggle-rtl.png +0 -0
  252. package/assets/pdfjs/web/images/toolbarButton-secondaryToolbarToggle-rtl@2x.png +0 -0
  253. package/assets/pdfjs/web/images/toolbarButton-secondaryToolbarToggle.png +0 -0
  254. package/assets/pdfjs/web/images/toolbarButton-secondaryToolbarToggle@2x.png +0 -0
  255. package/assets/pdfjs/web/images/toolbarButton-sidebarToggle-rtl.png +0 -0
  256. package/assets/pdfjs/web/images/toolbarButton-sidebarToggle-rtl@2x.png +0 -0
  257. package/assets/pdfjs/web/images/toolbarButton-sidebarToggle.png +0 -0
  258. package/assets/pdfjs/web/images/toolbarButton-sidebarToggle@2x.png +0 -0
  259. package/assets/pdfjs/web/images/toolbarButton-viewAttachments.png +0 -0
  260. package/assets/pdfjs/web/images/toolbarButton-viewAttachments@2x.png +0 -0
  261. package/assets/pdfjs/web/images/toolbarButton-viewOutline-rtl.png +0 -0
  262. package/assets/pdfjs/web/images/toolbarButton-viewOutline-rtl@2x.png +0 -0
  263. package/assets/pdfjs/web/images/toolbarButton-viewOutline.png +0 -0
  264. package/assets/pdfjs/web/images/toolbarButton-viewOutline@2x.png +0 -0
  265. package/assets/pdfjs/web/images/toolbarButton-viewThumbnail.png +0 -0
  266. package/assets/pdfjs/web/images/toolbarButton-viewThumbnail@2x.png +0 -0
  267. package/assets/pdfjs/web/images/toolbarButton-zoomIn.png +0 -0
  268. package/assets/pdfjs/web/images/toolbarButton-zoomIn@2x.png +0 -0
  269. package/assets/pdfjs/web/images/toolbarButton-zoomOut.png +0 -0
  270. package/assets/pdfjs/web/images/toolbarButton-zoomOut@2x.png +0 -0
  271. package/assets/pdfjs/web/images/treeitem-collapsed-rtl.png +0 -0
  272. package/assets/pdfjs/web/images/treeitem-collapsed-rtl@2x.png +0 -0
  273. package/assets/pdfjs/web/images/treeitem-collapsed.png +0 -0
  274. package/assets/pdfjs/web/images/treeitem-collapsed@2x.png +0 -0
  275. package/assets/pdfjs/web/images/treeitem-expanded.png +0 -0
  276. package/assets/pdfjs/web/images/treeitem-expanded@2x.png +0 -0
  277. package/assets/pdfjs/web/locale/ach/viewer.properties +0 -207
  278. package/assets/pdfjs/web/locale/af/viewer.properties +0 -184
  279. package/assets/pdfjs/web/locale/ak/viewer.properties +0 -130
  280. package/assets/pdfjs/web/locale/an/viewer.properties +0 -184
  281. package/assets/pdfjs/web/locale/ar/viewer.properties +0 -242
  282. package/assets/pdfjs/web/locale/as/viewer.properties +0 -167
  283. package/assets/pdfjs/web/locale/ast/viewer.properties +0 -201
  284. package/assets/pdfjs/web/locale/az/viewer.properties +0 -242
  285. package/assets/pdfjs/web/locale/be/viewer.properties +0 -242
  286. package/assets/pdfjs/web/locale/bg/viewer.properties +0 -242
  287. package/assets/pdfjs/web/locale/bn-BD/viewer.properties +0 -232
  288. package/assets/pdfjs/web/locale/bn-IN/viewer.properties +0 -242
  289. package/assets/pdfjs/web/locale/br/viewer.properties +0 -242
  290. package/assets/pdfjs/web/locale/brx/viewer.properties +0 -167
  291. package/assets/pdfjs/web/locale/bs/viewer.properties +0 -201
  292. package/assets/pdfjs/web/locale/ca/viewer.properties +0 -236
  293. package/assets/pdfjs/web/locale/cak/viewer.properties +0 -242
  294. package/assets/pdfjs/web/locale/crh/viewer.properties +0 -242
  295. package/assets/pdfjs/web/locale/cs/viewer.properties +0 -242
  296. package/assets/pdfjs/web/locale/csb/viewer.properties +0 -134
  297. package/assets/pdfjs/web/locale/cy/viewer.properties +0 -242
  298. package/assets/pdfjs/web/locale/da/viewer.properties +0 -242
  299. package/assets/pdfjs/web/locale/de/viewer.properties +0 -242
  300. package/assets/pdfjs/web/locale/el/viewer.properties +0 -242
  301. package/assets/pdfjs/web/locale/en-CA/viewer.properties +0 -242
  302. package/assets/pdfjs/web/locale/en-GB/viewer.properties +0 -242
  303. package/assets/pdfjs/web/locale/en-US/viewer.properties +0 -246
  304. package/assets/pdfjs/web/locale/en-ZA/viewer.properties +0 -170
  305. package/assets/pdfjs/web/locale/eo/viewer.properties +0 -242
  306. package/assets/pdfjs/web/locale/es-AR/viewer.properties +0 -242
  307. package/assets/pdfjs/web/locale/es-CL/viewer.properties +0 -242
  308. package/assets/pdfjs/web/locale/es-ES/viewer.properties +0 -242
  309. package/assets/pdfjs/web/locale/es-MX/viewer.properties +0 -242
  310. package/assets/pdfjs/web/locale/et/viewer.properties +0 -242
  311. package/assets/pdfjs/web/locale/eu/viewer.properties +0 -242
  312. package/assets/pdfjs/web/locale/fa/viewer.properties +0 -223
  313. package/assets/pdfjs/web/locale/ff/viewer.properties +0 -242
  314. package/assets/pdfjs/web/locale/fi/viewer.properties +0 -242
  315. package/assets/pdfjs/web/locale/fr/viewer.properties +0 -242
  316. package/assets/pdfjs/web/locale/fy-NL/viewer.properties +0 -242
  317. package/assets/pdfjs/web/locale/ga-IE/viewer.properties +0 -184
  318. package/assets/pdfjs/web/locale/gd/viewer.properties +0 -242
  319. package/assets/pdfjs/web/locale/gl/viewer.properties +0 -242
  320. package/assets/pdfjs/web/locale/gn/viewer.properties +0 -242
  321. package/assets/pdfjs/web/locale/gu-IN/viewer.properties +0 -242
  322. package/assets/pdfjs/web/locale/he/viewer.properties +0 -240
  323. package/assets/pdfjs/web/locale/hi-IN/viewer.properties +0 -224
  324. package/assets/pdfjs/web/locale/hr/viewer.properties +0 -242
  325. package/assets/pdfjs/web/locale/hsb/viewer.properties +0 -242
  326. package/assets/pdfjs/web/locale/hto/viewer.properties +0 -127
  327. package/assets/pdfjs/web/locale/hu/viewer.properties +0 -242
  328. package/assets/pdfjs/web/locale/hy-AM/viewer.properties +0 -201
  329. package/assets/pdfjs/web/locale/ia/viewer.properties +0 -242
  330. package/assets/pdfjs/web/locale/id/viewer.properties +0 -242
  331. package/assets/pdfjs/web/locale/is/viewer.properties +0 -239
  332. package/assets/pdfjs/web/locale/it/viewer.properties +0 -157
  333. package/assets/pdfjs/web/locale/ja/viewer.properties +0 -242
  334. package/assets/pdfjs/web/locale/ka/viewer.properties +0 -242
  335. package/assets/pdfjs/web/locale/kab/viewer.properties +0 -242
  336. package/assets/pdfjs/web/locale/kk/viewer.properties +0 -242
  337. package/assets/pdfjs/web/locale/km/viewer.properties +0 -184
  338. package/assets/pdfjs/web/locale/kn/viewer.properties +0 -193
  339. package/assets/pdfjs/web/locale/ko/viewer.properties +0 -242
  340. package/assets/pdfjs/web/locale/kok/viewer.properties +0 -167
  341. package/assets/pdfjs/web/locale/ks/viewer.properties +0 -168
  342. package/assets/pdfjs/web/locale/ku/viewer.properties +0 -146
  343. package/assets/pdfjs/web/locale/lg/viewer.properties +0 -112
  344. package/assets/pdfjs/web/locale/lij/viewer.properties +0 -242
  345. package/assets/pdfjs/web/locale/lo/viewer.properties +0 -152
  346. package/assets/pdfjs/web/locale/locale.properties +0 -369
  347. package/assets/pdfjs/web/locale/lt/viewer.properties +0 -242
  348. package/assets/pdfjs/web/locale/ltg/viewer.properties +0 -220
  349. package/assets/pdfjs/web/locale/lv/viewer.properties +0 -242
  350. package/assets/pdfjs/web/locale/mai/viewer.properties +0 -168
  351. package/assets/pdfjs/web/locale/meh/viewer.properties +0 -72
  352. package/assets/pdfjs/web/locale/mk/viewer.properties +0 -145
  353. package/assets/pdfjs/web/locale/ml/viewer.properties +0 -184
  354. package/assets/pdfjs/web/locale/mn/viewer.properties +0 -82
  355. package/assets/pdfjs/web/locale/mr/viewer.properties +0 -227
  356. package/assets/pdfjs/web/locale/ms/viewer.properties +0 -242
  357. package/assets/pdfjs/web/locale/my/viewer.properties +0 -198
  358. package/assets/pdfjs/web/locale/nb-NO/viewer.properties +0 -242
  359. package/assets/pdfjs/web/locale/ne-NP/viewer.properties +0 -184
  360. package/assets/pdfjs/web/locale/nl/viewer.properties +0 -246
  361. package/assets/pdfjs/web/locale/nn-NO/viewer.properties +0 -242
  362. package/assets/pdfjs/web/locale/nso/viewer.properties +0 -130
  363. package/assets/pdfjs/web/locale/oc/viewer.properties +0 -210
  364. package/assets/pdfjs/web/locale/or/viewer.properties +0 -167
  365. package/assets/pdfjs/web/locale/pa-IN/viewer.properties +0 -225
  366. package/assets/pdfjs/web/locale/pl/viewer.properties +0 -242
  367. package/assets/pdfjs/web/locale/pt-BR/viewer.properties +0 -242
  368. package/assets/pdfjs/web/locale/pt-PT/viewer.properties +0 -242
  369. package/assets/pdfjs/web/locale/rm/viewer.properties +0 -242
  370. package/assets/pdfjs/web/locale/ro/viewer.properties +0 -242
  371. package/assets/pdfjs/web/locale/ru/viewer.properties +0 -242
  372. package/assets/pdfjs/web/locale/rw/viewer.properties +0 -81
  373. package/assets/pdfjs/web/locale/sah/viewer.properties +0 -166
  374. package/assets/pdfjs/web/locale/sat/viewer.properties +0 -134
  375. package/assets/pdfjs/web/locale/si/viewer.properties +0 -207
  376. package/assets/pdfjs/web/locale/sk/viewer.properties +0 -242
  377. package/assets/pdfjs/web/locale/sl/viewer.properties +0 -242
  378. package/assets/pdfjs/web/locale/son/viewer.properties +0 -180
  379. package/assets/pdfjs/web/locale/sq/viewer.properties +0 -235
  380. package/assets/pdfjs/web/locale/sr/viewer.properties +0 -220
  381. package/assets/pdfjs/web/locale/sv-SE/viewer.properties +0 -242
  382. package/assets/pdfjs/web/locale/sw/viewer.properties +0 -128
  383. package/assets/pdfjs/web/locale/ta/viewer.properties +0 -201
  384. package/assets/pdfjs/web/locale/ta-LK/viewer.properties +0 -77
  385. package/assets/pdfjs/web/locale/te/viewer.properties +0 -218
  386. package/assets/pdfjs/web/locale/th/viewer.properties +0 -242
  387. package/assets/pdfjs/web/locale/tl/viewer.properties +0 -242
  388. package/assets/pdfjs/web/locale/tn/viewer.properties +0 -83
  389. package/assets/pdfjs/web/locale/tr/viewer.properties +0 -242
  390. package/assets/pdfjs/web/locale/tsz/viewer.properties +0 -75
  391. package/assets/pdfjs/web/locale/uk/viewer.properties +0 -242
  392. package/assets/pdfjs/web/locale/ur/viewer.properties +0 -207
  393. package/assets/pdfjs/web/locale/uz/viewer.properties +0 -169
  394. package/assets/pdfjs/web/locale/vi/viewer.properties +0 -239
  395. package/assets/pdfjs/web/locale/wo/viewer.properties +0 -124
  396. package/assets/pdfjs/web/locale/xh/viewer.properties +0 -184
  397. package/assets/pdfjs/web/locale/zam/viewer.properties +0 -90
  398. package/assets/pdfjs/web/locale/zh-CN/viewer.properties +0 -242
  399. package/assets/pdfjs/web/locale/zh-TW/viewer.properties +0 -242
  400. package/assets/pdfjs/web/locale/zu/viewer.properties +0 -131
  401. package/assets/pdfjs/web/viewer.css +0 -2405
  402. package/assets/pdfjs/web/viewer.html +0 -394
  403. package/assets/pdfjs/web/viewer.js +0 -15877
  404. package/assets/pdfjs/web/viewer.js.map +0 -1
@@ -1,615 +0,0 @@
1
- /* Copyright 2012 Mozilla Foundation
2
- *
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- *
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software
10
- * distributed under the License is distributed on an "AS IS" BASIS,
11
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- * See the License for the specific language governing permissions and
13
- * limitations under the License.
14
- */
15
- /* eslint-disable no-var */
16
-
17
- 'use strict';
18
-
19
- var FontInspector = (function FontInspectorClosure() {
20
- var fonts, createObjectURL;
21
- var active = false;
22
- var fontAttribute = 'data-font-name';
23
- function removeSelection() {
24
- let divs = document.querySelectorAll(`span[${fontAttribute}]`);
25
- for (let div of divs) {
26
- div.className = '';
27
- }
28
- }
29
- function resetSelection() {
30
- let divs = document.querySelectorAll(`span[${fontAttribute}]`);
31
- for (let div of divs) {
32
- div.className = 'debuggerHideText';
33
- }
34
- }
35
- function selectFont(fontName, show) {
36
- let divs = document.querySelectorAll(`span[${fontAttribute}=${fontName}]`);
37
- for (let div of divs) {
38
- div.className = show ? 'debuggerShowText' : 'debuggerHideText';
39
- }
40
- }
41
- function textLayerClick(e) {
42
- if (!e.target.dataset.fontName ||
43
- e.target.tagName.toUpperCase() !== 'SPAN') {
44
- return;
45
- }
46
- var fontName = e.target.dataset.fontName;
47
- var selects = document.getElementsByTagName('input');
48
- for (var i = 0; i < selects.length; ++i) {
49
- var select = selects[i];
50
- if (select.dataset.fontName !== fontName) {
51
- continue;
52
- }
53
- select.checked = !select.checked;
54
- selectFont(fontName, select.checked);
55
- select.scrollIntoView();
56
- }
57
- }
58
- return {
59
- // Properties/functions needed by PDFBug.
60
- id: 'FontInspector',
61
- name: 'Font Inspector',
62
- panel: null,
63
- manager: null,
64
- init: function init(pdfjsLib) {
65
- var panel = this.panel;
66
- panel.setAttribute('style', 'padding: 5px;');
67
- var tmp = document.createElement('button');
68
- tmp.addEventListener('click', resetSelection);
69
- tmp.textContent = 'Refresh';
70
- panel.appendChild(tmp);
71
-
72
- fonts = document.createElement('div');
73
- panel.appendChild(fonts);
74
-
75
- createObjectURL = pdfjsLib.createObjectURL;
76
- },
77
- cleanup: function cleanup() {
78
- fonts.textContent = '';
79
- },
80
- enabled: false,
81
- get active() {
82
- return active;
83
- },
84
- set active(value) {
85
- active = value;
86
- if (active) {
87
- document.body.addEventListener('click', textLayerClick, true);
88
- resetSelection();
89
- } else {
90
- document.body.removeEventListener('click', textLayerClick, true);
91
- removeSelection();
92
- }
93
- },
94
- // FontInspector specific functions.
95
- fontAdded: function fontAdded(fontObj, url) {
96
- function properties(obj, list) {
97
- var moreInfo = document.createElement('table');
98
- for (var i = 0; i < list.length; i++) {
99
- var tr = document.createElement('tr');
100
- var td1 = document.createElement('td');
101
- td1.textContent = list[i];
102
- tr.appendChild(td1);
103
- var td2 = document.createElement('td');
104
- td2.textContent = obj[list[i]].toString();
105
- tr.appendChild(td2);
106
- moreInfo.appendChild(tr);
107
- }
108
- return moreInfo;
109
- }
110
- var moreInfo = properties(fontObj, ['name', 'type']);
111
- var fontName = fontObj.loadedName;
112
- var font = document.createElement('div');
113
- var name = document.createElement('span');
114
- name.textContent = fontName;
115
- var download = document.createElement('a');
116
- if (url) {
117
- url = /url\(['"]?([^\)"']+)/.exec(url);
118
- download.href = url[1];
119
- } else if (fontObj.data) {
120
- download.href = createObjectURL(fontObj.data, fontObj.mimeType);
121
- }
122
- download.textContent = 'Download';
123
- var logIt = document.createElement('a');
124
- logIt.href = '';
125
- logIt.textContent = 'Log';
126
- logIt.addEventListener('click', function(event) {
127
- event.preventDefault();
128
- console.log(fontObj);
129
- });
130
- var select = document.createElement('input');
131
- select.setAttribute('type', 'checkbox');
132
- select.dataset.fontName = fontName;
133
- select.addEventListener('click', (function(select, fontName) {
134
- return (function() {
135
- selectFont(fontName, select.checked);
136
- });
137
- })(select, fontName));
138
- font.appendChild(select);
139
- font.appendChild(name);
140
- font.appendChild(document.createTextNode(' '));
141
- font.appendChild(download);
142
- font.appendChild(document.createTextNode(' '));
143
- font.appendChild(logIt);
144
- font.appendChild(moreInfo);
145
- fonts.appendChild(font);
146
- // Somewhat of a hack, should probably add a hook for when the text layer
147
- // is done rendering.
148
- setTimeout(() => {
149
- if (this.active) {
150
- resetSelection();
151
- }
152
- }, 2000);
153
- },
154
- };
155
- })();
156
-
157
- var opMap;
158
-
159
- // Manages all the page steppers.
160
- var StepperManager = (function StepperManagerClosure() {
161
- var steppers = [];
162
- var stepperDiv = null;
163
- var stepperControls = null;
164
- var stepperChooser = null;
165
- var breakPoints = Object.create(null);
166
- return {
167
- // Properties/functions needed by PDFBug.
168
- id: 'Stepper',
169
- name: 'Stepper',
170
- panel: null,
171
- manager: null,
172
- init: function init(pdfjsLib) {
173
- var self = this;
174
- this.panel.setAttribute('style', 'padding: 5px;');
175
- stepperControls = document.createElement('div');
176
- stepperChooser = document.createElement('select');
177
- stepperChooser.addEventListener('change', function(event) {
178
- self.selectStepper(this.value);
179
- });
180
- stepperControls.appendChild(stepperChooser);
181
- stepperDiv = document.createElement('div');
182
- this.panel.appendChild(stepperControls);
183
- this.panel.appendChild(stepperDiv);
184
- if (sessionStorage.getItem('pdfjsBreakPoints')) {
185
- breakPoints = JSON.parse(sessionStorage.getItem('pdfjsBreakPoints'));
186
- }
187
-
188
- opMap = Object.create(null);
189
- for (var key in pdfjsLib.OPS) {
190
- opMap[pdfjsLib.OPS[key]] = key;
191
- }
192
- },
193
- cleanup: function cleanup() {
194
- stepperChooser.textContent = '';
195
- stepperDiv.textContent = '';
196
- steppers = [];
197
- },
198
- enabled: false,
199
- active: false,
200
- // Stepper specific functions.
201
- create: function create(pageIndex) {
202
- var debug = document.createElement('div');
203
- debug.id = 'stepper' + pageIndex;
204
- debug.setAttribute('hidden', true);
205
- debug.className = 'stepper';
206
- stepperDiv.appendChild(debug);
207
- var b = document.createElement('option');
208
- b.textContent = 'Page ' + (pageIndex + 1);
209
- b.value = pageIndex;
210
- stepperChooser.appendChild(b);
211
- var initBreakPoints = breakPoints[pageIndex] || [];
212
- var stepper = new Stepper(debug, pageIndex, initBreakPoints);
213
- steppers.push(stepper);
214
- if (steppers.length === 1) {
215
- this.selectStepper(pageIndex, false);
216
- }
217
- return stepper;
218
- },
219
- selectStepper: function selectStepper(pageIndex, selectPanel) {
220
- var i;
221
- pageIndex = pageIndex | 0;
222
- if (selectPanel) {
223
- this.manager.selectPanel(this);
224
- }
225
- for (i = 0; i < steppers.length; ++i) {
226
- var stepper = steppers[i];
227
- if (stepper.pageIndex === pageIndex) {
228
- stepper.panel.removeAttribute('hidden');
229
- } else {
230
- stepper.panel.setAttribute('hidden', true);
231
- }
232
- }
233
- var options = stepperChooser.options;
234
- for (i = 0; i < options.length; ++i) {
235
- var option = options[i];
236
- option.selected = (option.value | 0) === pageIndex;
237
- }
238
- },
239
- saveBreakPoints: function saveBreakPoints(pageIndex, bps) {
240
- breakPoints[pageIndex] = bps;
241
- sessionStorage.setItem('pdfjsBreakPoints', JSON.stringify(breakPoints));
242
- },
243
- };
244
- })();
245
-
246
- // The stepper for each page's IRQueue.
247
- var Stepper = (function StepperClosure() {
248
- // Shorter way to create element and optionally set textContent.
249
- function c(tag, textContent) {
250
- var d = document.createElement(tag);
251
- if (textContent) {
252
- d.textContent = textContent;
253
- }
254
- return d;
255
- }
256
-
257
- function simplifyArgs(args) {
258
- if (typeof args === 'string') {
259
- var MAX_STRING_LENGTH = 75;
260
- return args.length <= MAX_STRING_LENGTH ? args :
261
- args.substring(0, MAX_STRING_LENGTH) + '...';
262
- }
263
- if (typeof args !== 'object' || args === null) {
264
- return args;
265
- }
266
- if ('length' in args) { // array
267
- var simpleArgs = [], i, ii;
268
- var MAX_ITEMS = 10;
269
- for (i = 0, ii = Math.min(MAX_ITEMS, args.length); i < ii; i++) {
270
- simpleArgs.push(simplifyArgs(args[i]));
271
- }
272
- if (i < args.length) {
273
- simpleArgs.push('...');
274
- }
275
- return simpleArgs;
276
- }
277
- var simpleObj = {};
278
- for (var key in args) {
279
- simpleObj[key] = simplifyArgs(args[key]);
280
- }
281
- return simpleObj;
282
- }
283
-
284
- function Stepper(panel, pageIndex, initialBreakPoints) {
285
- this.panel = panel;
286
- this.breakPoint = 0;
287
- this.nextBreakPoint = null;
288
- this.pageIndex = pageIndex;
289
- this.breakPoints = initialBreakPoints;
290
- this.currentIdx = -1;
291
- this.operatorListIdx = 0;
292
- }
293
- Stepper.prototype = {
294
- init: function init(operatorList) {
295
- var panel = this.panel;
296
- var content = c('div', 'c=continue, s=step');
297
- var table = c('table');
298
- content.appendChild(table);
299
- table.cellSpacing = 0;
300
- var headerRow = c('tr');
301
- table.appendChild(headerRow);
302
- headerRow.appendChild(c('th', 'Break'));
303
- headerRow.appendChild(c('th', 'Idx'));
304
- headerRow.appendChild(c('th', 'fn'));
305
- headerRow.appendChild(c('th', 'args'));
306
- panel.appendChild(content);
307
- this.table = table;
308
- this.updateOperatorList(operatorList);
309
- },
310
- updateOperatorList: function updateOperatorList(operatorList) {
311
- var self = this;
312
-
313
- function cboxOnClick() {
314
- var x = +this.dataset.idx;
315
- if (this.checked) {
316
- self.breakPoints.push(x);
317
- } else {
318
- self.breakPoints.splice(self.breakPoints.indexOf(x), 1);
319
- }
320
- StepperManager.saveBreakPoints(self.pageIndex, self.breakPoints);
321
- }
322
-
323
- var MAX_OPERATORS_COUNT = 15000;
324
- if (this.operatorListIdx > MAX_OPERATORS_COUNT) {
325
- return;
326
- }
327
-
328
- var chunk = document.createDocumentFragment();
329
- var operatorsToDisplay = Math.min(MAX_OPERATORS_COUNT,
330
- operatorList.fnArray.length);
331
- for (var i = this.operatorListIdx; i < operatorsToDisplay; i++) {
332
- var line = c('tr');
333
- line.className = 'line';
334
- line.dataset.idx = i;
335
- chunk.appendChild(line);
336
- var checked = this.breakPoints.includes(i);
337
- var args = operatorList.argsArray[i] || [];
338
-
339
- var breakCell = c('td');
340
- var cbox = c('input');
341
- cbox.type = 'checkbox';
342
- cbox.className = 'points';
343
- cbox.checked = checked;
344
- cbox.dataset.idx = i;
345
- cbox.onclick = cboxOnClick;
346
-
347
- breakCell.appendChild(cbox);
348
- line.appendChild(breakCell);
349
- line.appendChild(c('td', i.toString()));
350
- var fn = opMap[operatorList.fnArray[i]];
351
- var decArgs = args;
352
- if (fn === 'showText') {
353
- var glyphs = args[0];
354
- var newArgs = [];
355
- var str = [];
356
- for (var j = 0; j < glyphs.length; j++) {
357
- var glyph = glyphs[j];
358
- if (typeof glyph === 'object' && glyph !== null) {
359
- str.push(glyph.fontChar);
360
- } else {
361
- if (str.length > 0) {
362
- newArgs.push(str.join(''));
363
- str = [];
364
- }
365
- newArgs.push(glyph); // null or number
366
- }
367
- }
368
- if (str.length > 0) {
369
- newArgs.push(str.join(''));
370
- }
371
- decArgs = [newArgs];
372
- }
373
- line.appendChild(c('td', fn));
374
- line.appendChild(c('td', JSON.stringify(simplifyArgs(decArgs))));
375
- }
376
- if (operatorsToDisplay < operatorList.fnArray.length) {
377
- line = c('tr');
378
- var lastCell = c('td', '...');
379
- lastCell.colspan = 4;
380
- chunk.appendChild(lastCell);
381
- }
382
- this.operatorListIdx = operatorList.fnArray.length;
383
- this.table.appendChild(chunk);
384
- },
385
- getNextBreakPoint: function getNextBreakPoint() {
386
- this.breakPoints.sort(function(a, b) {
387
- return a - b;
388
- });
389
- for (var i = 0; i < this.breakPoints.length; i++) {
390
- if (this.breakPoints[i] > this.currentIdx) {
391
- return this.breakPoints[i];
392
- }
393
- }
394
- return null;
395
- },
396
- breakIt: function breakIt(idx, callback) {
397
- StepperManager.selectStepper(this.pageIndex, true);
398
- var self = this;
399
- var dom = document;
400
- self.currentIdx = idx;
401
- var listener = function(e) {
402
- switch (e.keyCode) {
403
- case 83: // step
404
- dom.removeEventListener('keydown', listener);
405
- self.nextBreakPoint = self.currentIdx + 1;
406
- self.goTo(-1);
407
- callback();
408
- break;
409
- case 67: // continue
410
- dom.removeEventListener('keydown', listener);
411
- var breakPoint = self.getNextBreakPoint();
412
- self.nextBreakPoint = breakPoint;
413
- self.goTo(-1);
414
- callback();
415
- break;
416
- }
417
- };
418
- dom.addEventListener('keydown', listener);
419
- self.goTo(idx);
420
- },
421
- goTo: function goTo(idx) {
422
- var allRows = this.panel.getElementsByClassName('line');
423
- for (var x = 0, xx = allRows.length; x < xx; ++x) {
424
- var row = allRows[x];
425
- if ((row.dataset.idx | 0) === idx) {
426
- row.style.backgroundColor = 'rgb(251,250,207)';
427
- row.scrollIntoView();
428
- } else {
429
- row.style.backgroundColor = null;
430
- }
431
- }
432
- },
433
- };
434
- return Stepper;
435
- })();
436
-
437
- var Stats = (function Stats() {
438
- var stats = [];
439
- function clear(node) {
440
- while (node.hasChildNodes()) {
441
- node.removeChild(node.lastChild);
442
- }
443
- }
444
- function getStatIndex(pageNumber) {
445
- for (var i = 0, ii = stats.length; i < ii; ++i) {
446
- if (stats[i].pageNumber === pageNumber) {
447
- return i;
448
- }
449
- }
450
- return false;
451
- }
452
- return {
453
- // Properties/functions needed by PDFBug.
454
- id: 'Stats',
455
- name: 'Stats',
456
- panel: null,
457
- manager: null,
458
- init(pdfjsLib) {
459
- this.panel.setAttribute('style', 'padding: 5px;');
460
- },
461
- enabled: false,
462
- active: false,
463
- // Stats specific functions.
464
- add(pageNumber, stat) {
465
- if (!stat) {
466
- return;
467
- }
468
- var statsIndex = getStatIndex(pageNumber);
469
- if (statsIndex !== false) {
470
- var b = stats[statsIndex];
471
- this.panel.removeChild(b.div);
472
- stats.splice(statsIndex, 1);
473
- }
474
- var wrapper = document.createElement('div');
475
- wrapper.className = 'stats';
476
- var title = document.createElement('div');
477
- title.className = 'title';
478
- title.textContent = 'Page: ' + pageNumber;
479
- var statsDiv = document.createElement('div');
480
- statsDiv.textContent = stat.toString();
481
- wrapper.appendChild(title);
482
- wrapper.appendChild(statsDiv);
483
- stats.push({ pageNumber, div: wrapper, });
484
- stats.sort(function(a, b) {
485
- return a.pageNumber - b.pageNumber;
486
- });
487
- clear(this.panel);
488
- for (var i = 0, ii = stats.length; i < ii; ++i) {
489
- this.panel.appendChild(stats[i].div);
490
- }
491
- },
492
- cleanup() {
493
- stats = [];
494
- clear(this.panel);
495
- },
496
- };
497
- })();
498
-
499
- // Manages all the debugging tools.
500
- window.PDFBug = (function PDFBugClosure() {
501
- var panelWidth = 300;
502
- var buttons = [];
503
- var activePanel = null;
504
-
505
- return {
506
- tools: [
507
- FontInspector,
508
- StepperManager,
509
- Stats
510
- ],
511
- enable(ids) {
512
- var all = false, tools = this.tools;
513
- if (ids.length === 1 && ids[0] === 'all') {
514
- all = true;
515
- }
516
- for (var i = 0; i < tools.length; ++i) {
517
- var tool = tools[i];
518
- if (all || ids.includes(tool.id)) {
519
- tool.enabled = true;
520
- }
521
- }
522
- if (!all) {
523
- // Sort the tools by the order they are enabled.
524
- tools.sort(function(a, b) {
525
- var indexA = ids.indexOf(a.id);
526
- indexA = indexA < 0 ? tools.length : indexA;
527
- var indexB = ids.indexOf(b.id);
528
- indexB = indexB < 0 ? tools.length : indexB;
529
- return indexA - indexB;
530
- });
531
- }
532
- },
533
- init(pdfjsLib, container) {
534
- /*
535
- * Basic Layout:
536
- * PDFBug
537
- * Controls
538
- * Panels
539
- * Panel
540
- * Panel
541
- * ...
542
- */
543
- var ui = document.createElement('div');
544
- ui.id = 'PDFBug';
545
-
546
- var controls = document.createElement('div');
547
- controls.setAttribute('class', 'controls');
548
- ui.appendChild(controls);
549
-
550
- var panels = document.createElement('div');
551
- panels.setAttribute('class', 'panels');
552
- ui.appendChild(panels);
553
-
554
- container.appendChild(ui);
555
- container.style.right = panelWidth + 'px';
556
-
557
- // Initialize all the debugging tools.
558
- var tools = this.tools;
559
- var self = this;
560
- for (var i = 0; i < tools.length; ++i) {
561
- var tool = tools[i];
562
- var panel = document.createElement('div');
563
- var panelButton = document.createElement('button');
564
- panelButton.textContent = tool.name;
565
- panelButton.addEventListener('click', (function(selected) {
566
- return function(event) {
567
- event.preventDefault();
568
- self.selectPanel(selected);
569
- };
570
- })(i));
571
- controls.appendChild(panelButton);
572
- panels.appendChild(panel);
573
- tool.panel = panel;
574
- tool.manager = this;
575
- if (tool.enabled) {
576
- tool.init(pdfjsLib);
577
- } else {
578
- panel.textContent = tool.name + ' is disabled. To enable add ' +
579
- ' "' + tool.id + '" to the pdfBug parameter ' +
580
- 'and refresh (separate multiple by commas).';
581
- }
582
- buttons.push(panelButton);
583
- }
584
- this.selectPanel(0);
585
- },
586
- cleanup() {
587
- for (var i = 0, ii = this.tools.length; i < ii; i++) {
588
- if (this.tools[i].enabled) {
589
- this.tools[i].cleanup();
590
- }
591
- }
592
- },
593
- selectPanel(index) {
594
- if (typeof index !== 'number') {
595
- index = this.tools.indexOf(index);
596
- }
597
- if (index === activePanel) {
598
- return;
599
- }
600
- activePanel = index;
601
- var tools = this.tools;
602
- for (var j = 0; j < tools.length; ++j) {
603
- if (j === index) {
604
- buttons[j].setAttribute('class', 'active');
605
- tools[j].active = true;
606
- tools[j].panel.removeAttribute('hidden');
607
- } else {
608
- buttons[j].setAttribute('class', '');
609
- tools[j].active = false;
610
- tools[j].panel.setAttribute('hidden', 'true');
611
- }
612
- }
613
- },
614
- };
615
- })();
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- width="40"
5
- height="40"
6
- viewBox="0 0 40 40">
7
- <path
8
- d="M 1.5006714,23.536225 6.8925879,18.994244 14.585721,26.037937 34.019683,4.5410479 38.499329,9.2235032 14.585721,35.458952 z"
9
- id="path4"
10
- style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.25402856;stroke-opacity:1" />
11
- </svg>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- height="40"
5
- width="40"
6
- viewBox="0 0 40 40">
7
- <rect
8
- style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
9
- width="33.76017"
10
- height="33.76017"
11
- x="3.119915"
12
- y="3.119915" />
13
- <path
14
- d="m 20.677967,8.54499 c -7.342801,0 -13.295293,4.954293 -13.295293,11.065751 0,2.088793 0.3647173,3.484376 1.575539,5.150563 L 6.0267418,31.45501 13.560595,29.011117 c 2.221262,1.387962 4.125932,1.665377 7.117372,1.665377 7.3428,0 13.295291,-4.954295 13.295291,-11.065753 0,-6.111458 -5.952491,-11.065751 -13.295291,-11.065751 z"
15
- style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.93031836;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"/>
16
- </svg>
@@ -1,26 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- width="40"
5
- height="40"
6
- viewBox="0 0 40 40">
7
- <g
8
- transform="translate(0,-60)"
9
- id="layer1">
10
- <rect
11
- width="36.460953"
12
- height="34.805603"
13
- x="1.7695236"
14
- y="62.597198"
15
- style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.30826771;stroke-opacity:1" />
16
- <g
17
- transform="matrix(0.88763677,0,0,0.88763677,2.2472646,8.9890584)">
18
- <path
19
- d="M 20,64.526342 C 11.454135,64.526342 4.5263421,71.454135 4.5263421,80 4.5263421,88.545865 11.454135,95.473658 20,95.473658 28.545865,95.473658 35.473658,88.545865 35.473658,80 35.473658,71.454135 28.545865,64.526342 20,64.526342 z m -0.408738,9.488564 c 3.527079,0 6.393832,2.84061 6.393832,6.335441 0,3.494831 -2.866753,6.335441 -6.393832,6.335441 -3.527079,0 -6.393832,-2.84061 -6.393832,-6.335441 0,-3.494831 2.866753,-6.335441 6.393832,-6.335441 z"
20
- style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.02768445;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
21
- <path
22
- d="m 7.2335209,71.819938 4.9702591,4.161823 c -1.679956,2.581606 -1.443939,6.069592 0.159325,8.677725 l -5.1263071,3.424463 c 0.67516,1.231452 3.0166401,3.547686 4.2331971,4.194757 l 3.907728,-4.567277 c 2.541952,1.45975 5.730694,1.392161 8.438683,-0.12614 l 3.469517,6.108336 c 1.129779,-0.44367 4.742234,-3.449633 5.416358,-5.003859 l -5.46204,-4.415541 c 1.44319,-2.424098 1.651175,-5.267515 0.557303,-7.748623 l 5.903195,-3.833951 C 33.14257,71.704996 30.616217,69.018606 29.02952,67.99296 l -4.118813,4.981678 C 22.411934,71.205099 18.900853,70.937534 16.041319,72.32916 l -3.595408,-5.322091 c -1.345962,0.579488 -4.1293881,2.921233 -5.2123901,4.812869 z m 8.1010311,3.426672 c 2.75284,-2.446266 6.769149,-2.144694 9.048998,0.420874 2.279848,2.56557 2.113919,6.596919 -0.638924,9.043185 -2.752841,2.446267 -6.775754,2.13726 -9.055604,-0.428308 -2.279851,-2.565568 -2.107313,-6.589485 0.64553,-9.035751 z"
23
- style="fill:#000000;fill-opacity:1;stroke:none" />
24
- </g>
25
- </g>
26
- </svg>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- width="64"
5
- height="64"
6
- viewBox="0 0 64 64">
7
- <path
8
- d="M 32.003143,1.4044602 57.432701,62.632577 6.5672991,62.627924 z"
9
- style="fill:#ffff00;fill-opacity:0.94117647;fill-rule:nonzero;stroke:#000000;stroke-width:1.00493038;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
10
- </svg>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- width="64"
5
- height="64"
6
- viewBox="0 0 64 64">
7
- <path
8
- d="M 25.470843,9.4933766 C 25.30219,12.141818 30.139101,14.445969 34.704831,13.529144 40.62635,12.541995 41.398833,7.3856498 35.97505,5.777863 31.400921,4.1549155 25.157674,6.5445892 25.470843,9.4933766 z M 4.5246282,17.652051 C 4.068249,11.832873 9.2742983,5.9270407 18.437379,3.0977088 29.751911,-0.87185184 45.495663,1.4008022 53.603953,7.1104009 c 9.275765,6.1889221 7.158128,16.2079421 -3.171076,21.5939521 -1.784316,1.635815 -6.380222,1.21421 -7.068351,3.186186 -1.04003,0.972427 -1.288046,2.050158 -1.232864,3.168203 1.015111,2.000108 -3.831548,1.633216 -3.270553,3.759574 0.589477,5.264544 -0.179276,10.53738 -0.362842,15.806257 -0.492006,2.184998 1.163456,4.574232 -0.734888,6.610642 -2.482919,2.325184 -7.30604,2.189143 -9.193497,-0.274767 -2.733688,-1.740626 -8.254447,-3.615254 -6.104247,-6.339626 3.468112,-1.708686 -2.116197,-3.449897 0.431242,-5.080274 5.058402,-1.39256 -2.393215,-2.304318 -0.146889,-4.334645 3.069198,-0.977415 2.056986,-2.518352 -0.219121,-3.540397 1.876567,-1.807151 1.484149,-4.868919 -2.565455,-5.942205 0.150866,-1.805474 2.905737,-4.136876 -1.679967,-5.20493 C 10.260902,27.882167 4.6872697,22.95045 4.5245945,17.652051 z"
9
- id="path604"
10
- style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.72665179;stroke-opacity:1" />
11
- </svg>