card-mod-pdfjs 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (739) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +10 -0
  3. data/public/LICENSE +177 -0
  4. data/public/build/pdf.js +11515 -0
  5. data/public/build/pdf.worker.js +43506 -0
  6. data/public/cmaps/78-EUC-H.bcmap +0 -0
  7. data/public/cmaps/78-EUC-V.bcmap +0 -0
  8. data/public/cmaps/78-H.bcmap +0 -0
  9. data/public/cmaps/78-RKSJ-H.bcmap +0 -0
  10. data/public/cmaps/78-RKSJ-V.bcmap +0 -0
  11. data/public/cmaps/78-V.bcmap +0 -0
  12. data/public/cmaps/78ms-RKSJ-H.bcmap +0 -0
  13. data/public/cmaps/78ms-RKSJ-V.bcmap +0 -0
  14. data/public/cmaps/83pv-RKSJ-H.bcmap +0 -0
  15. data/public/cmaps/90ms-RKSJ-H.bcmap +0 -0
  16. data/public/cmaps/90ms-RKSJ-V.bcmap +0 -0
  17. data/public/cmaps/90msp-RKSJ-H.bcmap +0 -0
  18. data/public/cmaps/90msp-RKSJ-V.bcmap +0 -0
  19. data/public/cmaps/90pv-RKSJ-H.bcmap +0 -0
  20. data/public/cmaps/90pv-RKSJ-V.bcmap +0 -0
  21. data/public/cmaps/Add-H.bcmap +0 -0
  22. data/public/cmaps/Add-RKSJ-H.bcmap +0 -0
  23. data/public/cmaps/Add-RKSJ-V.bcmap +0 -0
  24. data/public/cmaps/Add-V.bcmap +0 -0
  25. data/public/cmaps/Adobe-CNS1-0.bcmap +0 -0
  26. data/public/cmaps/Adobe-CNS1-1.bcmap +0 -0
  27. data/public/cmaps/Adobe-CNS1-2.bcmap +0 -0
  28. data/public/cmaps/Adobe-CNS1-3.bcmap +0 -0
  29. data/public/cmaps/Adobe-CNS1-4.bcmap +0 -0
  30. data/public/cmaps/Adobe-CNS1-5.bcmap +0 -0
  31. data/public/cmaps/Adobe-CNS1-6.bcmap +0 -0
  32. data/public/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  33. data/public/cmaps/Adobe-GB1-0.bcmap +0 -0
  34. data/public/cmaps/Adobe-GB1-1.bcmap +0 -0
  35. data/public/cmaps/Adobe-GB1-2.bcmap +0 -0
  36. data/public/cmaps/Adobe-GB1-3.bcmap +0 -0
  37. data/public/cmaps/Adobe-GB1-4.bcmap +0 -0
  38. data/public/cmaps/Adobe-GB1-5.bcmap +0 -0
  39. data/public/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  40. data/public/cmaps/Adobe-Japan1-0.bcmap +0 -0
  41. data/public/cmaps/Adobe-Japan1-1.bcmap +0 -0
  42. data/public/cmaps/Adobe-Japan1-2.bcmap +0 -0
  43. data/public/cmaps/Adobe-Japan1-3.bcmap +0 -0
  44. data/public/cmaps/Adobe-Japan1-4.bcmap +0 -0
  45. data/public/cmaps/Adobe-Japan1-5.bcmap +0 -0
  46. data/public/cmaps/Adobe-Japan1-6.bcmap +0 -0
  47. data/public/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  48. data/public/cmaps/Adobe-Korea1-0.bcmap +0 -0
  49. data/public/cmaps/Adobe-Korea1-1.bcmap +0 -0
  50. data/public/cmaps/Adobe-Korea1-2.bcmap +0 -0
  51. data/public/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  52. data/public/cmaps/B5-H.bcmap +0 -0
  53. data/public/cmaps/B5-V.bcmap +0 -0
  54. data/public/cmaps/B5pc-H.bcmap +0 -0
  55. data/public/cmaps/B5pc-V.bcmap +0 -0
  56. data/public/cmaps/CNS-EUC-H.bcmap +0 -0
  57. data/public/cmaps/CNS-EUC-V.bcmap +0 -0
  58. data/public/cmaps/CNS1-H.bcmap +0 -0
  59. data/public/cmaps/CNS1-V.bcmap +0 -0
  60. data/public/cmaps/CNS2-H.bcmap +0 -0
  61. data/public/cmaps/CNS2-V.bcmap +3 -0
  62. data/public/cmaps/ETHK-B5-H.bcmap +0 -0
  63. data/public/cmaps/ETHK-B5-V.bcmap +0 -0
  64. data/public/cmaps/ETen-B5-H.bcmap +0 -0
  65. data/public/cmaps/ETen-B5-V.bcmap +0 -0
  66. data/public/cmaps/ETenms-B5-H.bcmap +3 -0
  67. data/public/cmaps/ETenms-B5-V.bcmap +0 -0
  68. data/public/cmaps/EUC-H.bcmap +0 -0
  69. data/public/cmaps/EUC-V.bcmap +0 -0
  70. data/public/cmaps/Ext-H.bcmap +0 -0
  71. data/public/cmaps/Ext-RKSJ-H.bcmap +0 -0
  72. data/public/cmaps/Ext-RKSJ-V.bcmap +0 -0
  73. data/public/cmaps/Ext-V.bcmap +0 -0
  74. data/public/cmaps/GB-EUC-H.bcmap +0 -0
  75. data/public/cmaps/GB-EUC-V.bcmap +0 -0
  76. data/public/cmaps/GB-H.bcmap +4 -0
  77. data/public/cmaps/GB-V.bcmap +0 -0
  78. data/public/cmaps/GBK-EUC-H.bcmap +0 -0
  79. data/public/cmaps/GBK-EUC-V.bcmap +0 -0
  80. data/public/cmaps/GBK2K-H.bcmap +0 -0
  81. data/public/cmaps/GBK2K-V.bcmap +0 -0
  82. data/public/cmaps/GBKp-EUC-H.bcmap +0 -0
  83. data/public/cmaps/GBKp-EUC-V.bcmap +0 -0
  84. data/public/cmaps/GBT-EUC-H.bcmap +0 -0
  85. data/public/cmaps/GBT-EUC-V.bcmap +0 -0
  86. data/public/cmaps/GBT-H.bcmap +0 -0
  87. data/public/cmaps/GBT-V.bcmap +0 -0
  88. data/public/cmaps/GBTpc-EUC-H.bcmap +0 -0
  89. data/public/cmaps/GBTpc-EUC-V.bcmap +0 -0
  90. data/public/cmaps/GBpc-EUC-H.bcmap +0 -0
  91. data/public/cmaps/GBpc-EUC-V.bcmap +0 -0
  92. data/public/cmaps/H.bcmap +0 -0
  93. data/public/cmaps/HKdla-B5-H.bcmap +0 -0
  94. data/public/cmaps/HKdla-B5-V.bcmap +0 -0
  95. data/public/cmaps/HKdlb-B5-H.bcmap +0 -0
  96. data/public/cmaps/HKdlb-B5-V.bcmap +0 -0
  97. data/public/cmaps/HKgccs-B5-H.bcmap +0 -0
  98. data/public/cmaps/HKgccs-B5-V.bcmap +0 -0
  99. data/public/cmaps/HKm314-B5-H.bcmap +0 -0
  100. data/public/cmaps/HKm314-B5-V.bcmap +0 -0
  101. data/public/cmaps/HKm471-B5-H.bcmap +0 -0
  102. data/public/cmaps/HKm471-B5-V.bcmap +0 -0
  103. data/public/cmaps/HKscs-B5-H.bcmap +0 -0
  104. data/public/cmaps/HKscs-B5-V.bcmap +0 -0
  105. data/public/cmaps/Hankaku.bcmap +0 -0
  106. data/public/cmaps/Hiragana.bcmap +0 -0
  107. data/public/cmaps/KSC-EUC-H.bcmap +0 -0
  108. data/public/cmaps/KSC-EUC-V.bcmap +0 -0
  109. data/public/cmaps/KSC-H.bcmap +0 -0
  110. data/public/cmaps/KSC-Johab-H.bcmap +0 -0
  111. data/public/cmaps/KSC-Johab-V.bcmap +0 -0
  112. data/public/cmaps/KSC-V.bcmap +0 -0
  113. data/public/cmaps/KSCms-UHC-H.bcmap +0 -0
  114. data/public/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  115. data/public/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  116. data/public/cmaps/KSCms-UHC-V.bcmap +0 -0
  117. data/public/cmaps/KSCpc-EUC-H.bcmap +0 -0
  118. data/public/cmaps/KSCpc-EUC-V.bcmap +0 -0
  119. data/public/cmaps/Katakana.bcmap +0 -0
  120. data/public/cmaps/LICENSE +36 -0
  121. data/public/cmaps/NWP-H.bcmap +0 -0
  122. data/public/cmaps/NWP-V.bcmap +0 -0
  123. data/public/cmaps/RKSJ-H.bcmap +0 -0
  124. data/public/cmaps/RKSJ-V.bcmap +0 -0
  125. data/public/cmaps/Roman.bcmap +0 -0
  126. data/public/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  127. data/public/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  128. data/public/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  129. data/public/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  130. data/public/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  131. data/public/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  132. data/public/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  133. data/public/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  134. data/public/cmaps/UniGB-UCS2-H.bcmap +0 -0
  135. data/public/cmaps/UniGB-UCS2-V.bcmap +0 -0
  136. data/public/cmaps/UniGB-UTF16-H.bcmap +0 -0
  137. data/public/cmaps/UniGB-UTF16-V.bcmap +0 -0
  138. data/public/cmaps/UniGB-UTF32-H.bcmap +0 -0
  139. data/public/cmaps/UniGB-UTF32-V.bcmap +0 -0
  140. data/public/cmaps/UniGB-UTF8-H.bcmap +0 -0
  141. data/public/cmaps/UniGB-UTF8-V.bcmap +0 -0
  142. data/public/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  143. data/public/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  144. data/public/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  145. data/public/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  146. data/public/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  147. data/public/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  148. data/public/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  149. data/public/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  150. data/public/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  151. data/public/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  152. data/public/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  153. data/public/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  154. data/public/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  155. data/public/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  156. data/public/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  157. data/public/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  158. data/public/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  159. data/public/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  160. data/public/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  161. data/public/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  162. data/public/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  163. data/public/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  164. data/public/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  165. data/public/cmaps/UniKS-UCS2-H.bcmap +0 -0
  166. data/public/cmaps/UniKS-UCS2-V.bcmap +0 -0
  167. data/public/cmaps/UniKS-UTF16-H.bcmap +0 -0
  168. data/public/cmaps/UniKS-UTF16-V.bcmap +0 -0
  169. data/public/cmaps/UniKS-UTF32-H.bcmap +0 -0
  170. data/public/cmaps/UniKS-UTF32-V.bcmap +0 -0
  171. data/public/cmaps/UniKS-UTF8-H.bcmap +0 -0
  172. data/public/cmaps/UniKS-UTF8-V.bcmap +0 -0
  173. data/public/cmaps/V.bcmap +0 -0
  174. data/public/cmaps/WP-Symbol.bcmap +0 -0
  175. data/public/compatibility.js +616 -0
  176. data/public/compressed.tracemonkey-pldi-09.pdf +0 -0
  177. data/public/debugger.js +616 -0
  178. data/public/images/annotation-check.svg +11 -0
  179. data/public/images/annotation-comment.svg +16 -0
  180. data/public/images/annotation-help.svg +26 -0
  181. data/public/images/annotation-insert.svg +10 -0
  182. data/public/images/annotation-key.svg +11 -0
  183. data/public/images/annotation-newparagraph.svg +11 -0
  184. data/public/images/annotation-noicon.svg +7 -0
  185. data/public/images/annotation-note.svg +42 -0
  186. data/public/images/annotation-paragraph.svg +16 -0
  187. data/public/images/findbarButton-next-rtl.png +0 -0
  188. data/public/images/findbarButton-next-rtl@2x.png +0 -0
  189. data/public/images/findbarButton-next.png +0 -0
  190. data/public/images/findbarButton-next@2x.png +0 -0
  191. data/public/images/findbarButton-previous-rtl.png +0 -0
  192. data/public/images/findbarButton-previous-rtl@2x.png +0 -0
  193. data/public/images/findbarButton-previous.png +0 -0
  194. data/public/images/findbarButton-previous@2x.png +0 -0
  195. data/public/images/grab.cur +0 -0
  196. data/public/images/grabbing.cur +0 -0
  197. data/public/images/loading-icon.gif +0 -0
  198. data/public/images/loading-small.png +0 -0
  199. data/public/images/loading-small@2x.png +0 -0
  200. data/public/images/secondaryToolbarButton-documentProperties.png +0 -0
  201. data/public/images/secondaryToolbarButton-documentProperties@2x.png +0 -0
  202. data/public/images/secondaryToolbarButton-firstPage.png +0 -0
  203. data/public/images/secondaryToolbarButton-firstPage@2x.png +0 -0
  204. data/public/images/secondaryToolbarButton-handTool.png +0 -0
  205. data/public/images/secondaryToolbarButton-handTool@2x.png +0 -0
  206. data/public/images/secondaryToolbarButton-lastPage.png +0 -0
  207. data/public/images/secondaryToolbarButton-lastPage@2x.png +0 -0
  208. data/public/images/secondaryToolbarButton-rotateCcw.png +0 -0
  209. data/public/images/secondaryToolbarButton-rotateCcw@2x.png +0 -0
  210. data/public/images/secondaryToolbarButton-rotateCw.png +0 -0
  211. data/public/images/secondaryToolbarButton-rotateCw@2x.png +0 -0
  212. data/public/images/shadow.png +0 -0
  213. data/public/images/texture.png +0 -0
  214. data/public/images/toolbarButton-bookmark.png +0 -0
  215. data/public/images/toolbarButton-bookmark@2x.png +0 -0
  216. data/public/images/toolbarButton-download.png +0 -0
  217. data/public/images/toolbarButton-download@2x.png +0 -0
  218. data/public/images/toolbarButton-menuArrows.png +0 -0
  219. data/public/images/toolbarButton-menuArrows@2x.png +0 -0
  220. data/public/images/toolbarButton-openFile.png +0 -0
  221. data/public/images/toolbarButton-openFile@2x.png +0 -0
  222. data/public/images/toolbarButton-pageDown-rtl.png +0 -0
  223. data/public/images/toolbarButton-pageDown-rtl@2x.png +0 -0
  224. data/public/images/toolbarButton-pageDown.png +0 -0
  225. data/public/images/toolbarButton-pageDown@2x.png +0 -0
  226. data/public/images/toolbarButton-pageUp-rtl.png +0 -0
  227. data/public/images/toolbarButton-pageUp-rtl@2x.png +0 -0
  228. data/public/images/toolbarButton-pageUp.png +0 -0
  229. data/public/images/toolbarButton-pageUp@2x.png +0 -0
  230. data/public/images/toolbarButton-presentationMode.png +0 -0
  231. data/public/images/toolbarButton-presentationMode@2x.png +0 -0
  232. data/public/images/toolbarButton-print.png +0 -0
  233. data/public/images/toolbarButton-print@2x.png +0 -0
  234. data/public/images/toolbarButton-search.png +0 -0
  235. data/public/images/toolbarButton-search@2x.png +0 -0
  236. data/public/images/toolbarButton-secondaryToolbarToggle-rtl.png +0 -0
  237. data/public/images/toolbarButton-secondaryToolbarToggle-rtl@2x.png +0 -0
  238. data/public/images/toolbarButton-secondaryToolbarToggle.png +0 -0
  239. data/public/images/toolbarButton-secondaryToolbarToggle@2x.png +0 -0
  240. data/public/images/toolbarButton-sidebarToggle-rtl.png +0 -0
  241. data/public/images/toolbarButton-sidebarToggle-rtl@2x.png +0 -0
  242. data/public/images/toolbarButton-sidebarToggle.png +0 -0
  243. data/public/images/toolbarButton-sidebarToggle@2x.png +0 -0
  244. data/public/images/toolbarButton-viewAttachments.png +0 -0
  245. data/public/images/toolbarButton-viewAttachments@2x.png +0 -0
  246. data/public/images/toolbarButton-viewOutline-rtl.png +0 -0
  247. data/public/images/toolbarButton-viewOutline-rtl@2x.png +0 -0
  248. data/public/images/toolbarButton-viewOutline.png +0 -0
  249. data/public/images/toolbarButton-viewOutline@2x.png +0 -0
  250. data/public/images/toolbarButton-viewThumbnail.png +0 -0
  251. data/public/images/toolbarButton-viewThumbnail@2x.png +0 -0
  252. data/public/images/toolbarButton-zoomIn.png +0 -0
  253. data/public/images/toolbarButton-zoomIn@2x.png +0 -0
  254. data/public/images/toolbarButton-zoomOut.png +0 -0
  255. data/public/images/toolbarButton-zoomOut@2x.png +0 -0
  256. data/public/images/treeitem-collapsed-rtl.png +0 -0
  257. data/public/images/treeitem-collapsed-rtl@2x.png +0 -0
  258. data/public/images/treeitem-collapsed.png +0 -0
  259. data/public/images/treeitem-collapsed@2x.png +0 -0
  260. data/public/images/treeitem-expanded.png +0 -0
  261. data/public/images/treeitem-expanded@2x.png +0 -0
  262. data/public/l10n.js +1047 -0
  263. data/public/locale/ach/viewer.properties +173 -0
  264. data/public/locale/af/viewer.properties +173 -0
  265. data/public/locale/ak/viewer.properties +131 -0
  266. data/public/locale/an/viewer.properties +173 -0
  267. data/public/locale/ar/viewer.properties +173 -0
  268. data/public/locale/as/viewer.properties +172 -0
  269. data/public/locale/ast/viewer.properties +173 -0
  270. data/public/locale/az/viewer.properties +173 -0
  271. data/public/locale/be/viewer.properties +105 -0
  272. data/public/locale/bg/viewer.properties +173 -0
  273. data/public/locale/bn-BD/viewer.properties +173 -0
  274. data/public/locale/bn-IN/viewer.properties +173 -0
  275. data/public/locale/br/viewer.properties +173 -0
  276. data/public/locale/bs/viewer.properties +173 -0
  277. data/public/locale/ca/viewer.properties +173 -0
  278. data/public/locale/cs/viewer.properties +173 -0
  279. data/public/locale/csb/viewer.properties +134 -0
  280. data/public/locale/cy/viewer.properties +173 -0
  281. data/public/locale/da/viewer.properties +167 -0
  282. data/public/locale/de/viewer.properties +167 -0
  283. data/public/locale/el/viewer.properties +173 -0
  284. data/public/locale/en-GB/viewer.properties +173 -0
  285. data/public/locale/en-US/viewer.properties +173 -0
  286. data/public/locale/en-ZA/viewer.properties +173 -0
  287. data/public/locale/eo/viewer.properties +173 -0
  288. data/public/locale/es-AR/viewer.properties +167 -0
  289. data/public/locale/es-CL/viewer.properties +173 -0
  290. data/public/locale/es-ES/viewer.properties +111 -0
  291. data/public/locale/es-MX/viewer.properties +173 -0
  292. data/public/locale/et/viewer.properties +173 -0
  293. data/public/locale/eu/viewer.properties +173 -0
  294. data/public/locale/fa/viewer.properties +173 -0
  295. data/public/locale/ff/viewer.properties +173 -0
  296. data/public/locale/fi/viewer.properties +167 -0
  297. data/public/locale/fr/viewer.properties +167 -0
  298. data/public/locale/fy-NL/viewer.properties +180 -0
  299. data/public/locale/ga-IE/viewer.properties +173 -0
  300. data/public/locale/gd/viewer.properties +173 -0
  301. data/public/locale/gl/viewer.properties +173 -0
  302. data/public/locale/gu-IN/viewer.properties +167 -0
  303. data/public/locale/he/viewer.properties +173 -0
  304. data/public/locale/hi-IN/viewer.properties +173 -0
  305. data/public/locale/hr/viewer.properties +173 -0
  306. data/public/locale/hu/viewer.properties +173 -0
  307. data/public/locale/hy-AM/viewer.properties +173 -0
  308. data/public/locale/id/viewer.properties +173 -0
  309. data/public/locale/is/viewer.properties +173 -0
  310. data/public/locale/it/viewer.properties +111 -0
  311. data/public/locale/ja/viewer.properties +167 -0
  312. data/public/locale/ka/viewer.properties +173 -0
  313. data/public/locale/kk/viewer.properties +173 -0
  314. data/public/locale/km/viewer.properties +173 -0
  315. data/public/locale/kn/viewer.properties +173 -0
  316. data/public/locale/ko/viewer.properties +173 -0
  317. data/public/locale/ku/viewer.properties +147 -0
  318. data/public/locale/lg/viewer.properties +111 -0
  319. data/public/locale/lij/viewer.properties +124 -0
  320. data/public/locale/locale.properties +312 -0
  321. data/public/locale/lt/viewer.properties +173 -0
  322. data/public/locale/lv/viewer.properties +173 -0
  323. data/public/locale/mai/viewer.properties +173 -0
  324. data/public/locale/mk/viewer.properties +133 -0
  325. data/public/locale/ml/viewer.properties +173 -0
  326. data/public/locale/mn/viewer.properties +79 -0
  327. data/public/locale/mr/viewer.properties +173 -0
  328. data/public/locale/ms/viewer.properties +173 -0
  329. data/public/locale/my/viewer.properties +173 -0
  330. data/public/locale/nb-NO/viewer.properties +173 -0
  331. data/public/locale/nl/viewer.properties +173 -0
  332. data/public/locale/nn-NO/viewer.properties +173 -0
  333. data/public/locale/nso/viewer.properties +131 -0
  334. data/public/locale/oc/viewer.properties +171 -0
  335. data/public/locale/or/viewer.properties +172 -0
  336. data/public/locale/pa-IN/viewer.properties +173 -0
  337. data/public/locale/pl/viewer.properties +124 -0
  338. data/public/locale/pt-BR/viewer.properties +173 -0
  339. data/public/locale/pt-PT/viewer.properties +173 -0
  340. data/public/locale/rm/viewer.properties +173 -0
  341. data/public/locale/ro/viewer.properties +173 -0
  342. data/public/locale/ru/viewer.properties +111 -0
  343. data/public/locale/rw/viewer.properties +79 -0
  344. data/public/locale/sah/viewer.properties +171 -0
  345. data/public/locale/si/viewer.properties +172 -0
  346. data/public/locale/sk/viewer.properties +173 -0
  347. data/public/locale/sl/viewer.properties +173 -0
  348. data/public/locale/son/viewer.properties +173 -0
  349. data/public/locale/sq/viewer.properties +166 -0
  350. data/public/locale/sr/viewer.properties +173 -0
  351. data/public/locale/sv-SE/viewer.properties +173 -0
  352. data/public/locale/sw/viewer.properties +129 -0
  353. data/public/locale/ta/viewer.properties +173 -0
  354. data/public/locale/ta-LK/viewer.properties +72 -0
  355. data/public/locale/te/viewer.properties +173 -0
  356. data/public/locale/th/viewer.properties +173 -0
  357. data/public/locale/tl/viewer.properties +94 -0
  358. data/public/locale/tn/viewer.properties +83 -0
  359. data/public/locale/tr/viewer.properties +173 -0
  360. data/public/locale/uk/viewer.properties +173 -0
  361. data/public/locale/ur/viewer.properties +173 -0
  362. data/public/locale/vi/viewer.properties +173 -0
  363. data/public/locale/wo/viewer.properties +124 -0
  364. data/public/locale/xh/viewer.properties +173 -0
  365. data/public/locale/zh-CN/viewer.properties +173 -0
  366. data/public/locale/zh-TW/viewer.properties +174 -0
  367. data/public/locale/zu/viewer.properties +132 -0
  368. data/public/pdf.js +11515 -0
  369. data/public/pdf.worker.js +44463 -0
  370. data/public/viewer.css +2190 -0
  371. data/public/viewer.html +423 -0
  372. data/public/viewer.js +9742 -0
  373. data/public/web/cmaps/78-EUC-H.bcmap +0 -0
  374. data/public/web/cmaps/78-EUC-V.bcmap +0 -0
  375. data/public/web/cmaps/78-H.bcmap +0 -0
  376. data/public/web/cmaps/78-RKSJ-H.bcmap +0 -0
  377. data/public/web/cmaps/78-RKSJ-V.bcmap +0 -0
  378. data/public/web/cmaps/78-V.bcmap +0 -0
  379. data/public/web/cmaps/78ms-RKSJ-H.bcmap +0 -0
  380. data/public/web/cmaps/78ms-RKSJ-V.bcmap +0 -0
  381. data/public/web/cmaps/83pv-RKSJ-H.bcmap +0 -0
  382. data/public/web/cmaps/90ms-RKSJ-H.bcmap +0 -0
  383. data/public/web/cmaps/90ms-RKSJ-V.bcmap +0 -0
  384. data/public/web/cmaps/90msp-RKSJ-H.bcmap +0 -0
  385. data/public/web/cmaps/90msp-RKSJ-V.bcmap +0 -0
  386. data/public/web/cmaps/90pv-RKSJ-H.bcmap +0 -0
  387. data/public/web/cmaps/90pv-RKSJ-V.bcmap +0 -0
  388. data/public/web/cmaps/Add-H.bcmap +0 -0
  389. data/public/web/cmaps/Add-RKSJ-H.bcmap +0 -0
  390. data/public/web/cmaps/Add-RKSJ-V.bcmap +0 -0
  391. data/public/web/cmaps/Add-V.bcmap +0 -0
  392. data/public/web/cmaps/Adobe-CNS1-0.bcmap +0 -0
  393. data/public/web/cmaps/Adobe-CNS1-1.bcmap +0 -0
  394. data/public/web/cmaps/Adobe-CNS1-2.bcmap +0 -0
  395. data/public/web/cmaps/Adobe-CNS1-3.bcmap +0 -0
  396. data/public/web/cmaps/Adobe-CNS1-4.bcmap +0 -0
  397. data/public/web/cmaps/Adobe-CNS1-5.bcmap +0 -0
  398. data/public/web/cmaps/Adobe-CNS1-6.bcmap +0 -0
  399. data/public/web/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  400. data/public/web/cmaps/Adobe-GB1-0.bcmap +0 -0
  401. data/public/web/cmaps/Adobe-GB1-1.bcmap +0 -0
  402. data/public/web/cmaps/Adobe-GB1-2.bcmap +0 -0
  403. data/public/web/cmaps/Adobe-GB1-3.bcmap +0 -0
  404. data/public/web/cmaps/Adobe-GB1-4.bcmap +0 -0
  405. data/public/web/cmaps/Adobe-GB1-5.bcmap +0 -0
  406. data/public/web/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  407. data/public/web/cmaps/Adobe-Japan1-0.bcmap +0 -0
  408. data/public/web/cmaps/Adobe-Japan1-1.bcmap +0 -0
  409. data/public/web/cmaps/Adobe-Japan1-2.bcmap +0 -0
  410. data/public/web/cmaps/Adobe-Japan1-3.bcmap +0 -0
  411. data/public/web/cmaps/Adobe-Japan1-4.bcmap +0 -0
  412. data/public/web/cmaps/Adobe-Japan1-5.bcmap +0 -0
  413. data/public/web/cmaps/Adobe-Japan1-6.bcmap +0 -0
  414. data/public/web/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  415. data/public/web/cmaps/Adobe-Korea1-0.bcmap +0 -0
  416. data/public/web/cmaps/Adobe-Korea1-1.bcmap +0 -0
  417. data/public/web/cmaps/Adobe-Korea1-2.bcmap +0 -0
  418. data/public/web/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  419. data/public/web/cmaps/B5-H.bcmap +0 -0
  420. data/public/web/cmaps/B5-V.bcmap +0 -0
  421. data/public/web/cmaps/B5pc-H.bcmap +0 -0
  422. data/public/web/cmaps/B5pc-V.bcmap +0 -0
  423. data/public/web/cmaps/CNS-EUC-H.bcmap +0 -0
  424. data/public/web/cmaps/CNS-EUC-V.bcmap +0 -0
  425. data/public/web/cmaps/CNS1-H.bcmap +0 -0
  426. data/public/web/cmaps/CNS1-V.bcmap +0 -0
  427. data/public/web/cmaps/CNS2-H.bcmap +0 -0
  428. data/public/web/cmaps/CNS2-V.bcmap +3 -0
  429. data/public/web/cmaps/ETHK-B5-H.bcmap +0 -0
  430. data/public/web/cmaps/ETHK-B5-V.bcmap +0 -0
  431. data/public/web/cmaps/ETen-B5-H.bcmap +0 -0
  432. data/public/web/cmaps/ETen-B5-V.bcmap +0 -0
  433. data/public/web/cmaps/ETenms-B5-H.bcmap +3 -0
  434. data/public/web/cmaps/ETenms-B5-V.bcmap +0 -0
  435. data/public/web/cmaps/EUC-H.bcmap +0 -0
  436. data/public/web/cmaps/EUC-V.bcmap +0 -0
  437. data/public/web/cmaps/Ext-H.bcmap +0 -0
  438. data/public/web/cmaps/Ext-RKSJ-H.bcmap +0 -0
  439. data/public/web/cmaps/Ext-RKSJ-V.bcmap +0 -0
  440. data/public/web/cmaps/Ext-V.bcmap +0 -0
  441. data/public/web/cmaps/GB-EUC-H.bcmap +0 -0
  442. data/public/web/cmaps/GB-EUC-V.bcmap +0 -0
  443. data/public/web/cmaps/GB-H.bcmap +4 -0
  444. data/public/web/cmaps/GB-V.bcmap +0 -0
  445. data/public/web/cmaps/GBK-EUC-H.bcmap +0 -0
  446. data/public/web/cmaps/GBK-EUC-V.bcmap +0 -0
  447. data/public/web/cmaps/GBK2K-H.bcmap +0 -0
  448. data/public/web/cmaps/GBK2K-V.bcmap +0 -0
  449. data/public/web/cmaps/GBKp-EUC-H.bcmap +0 -0
  450. data/public/web/cmaps/GBKp-EUC-V.bcmap +0 -0
  451. data/public/web/cmaps/GBT-EUC-H.bcmap +0 -0
  452. data/public/web/cmaps/GBT-EUC-V.bcmap +0 -0
  453. data/public/web/cmaps/GBT-H.bcmap +0 -0
  454. data/public/web/cmaps/GBT-V.bcmap +0 -0
  455. data/public/web/cmaps/GBTpc-EUC-H.bcmap +0 -0
  456. data/public/web/cmaps/GBTpc-EUC-V.bcmap +0 -0
  457. data/public/web/cmaps/GBpc-EUC-H.bcmap +0 -0
  458. data/public/web/cmaps/GBpc-EUC-V.bcmap +0 -0
  459. data/public/web/cmaps/H.bcmap +0 -0
  460. data/public/web/cmaps/HKdla-B5-H.bcmap +0 -0
  461. data/public/web/cmaps/HKdla-B5-V.bcmap +0 -0
  462. data/public/web/cmaps/HKdlb-B5-H.bcmap +0 -0
  463. data/public/web/cmaps/HKdlb-B5-V.bcmap +0 -0
  464. data/public/web/cmaps/HKgccs-B5-H.bcmap +0 -0
  465. data/public/web/cmaps/HKgccs-B5-V.bcmap +0 -0
  466. data/public/web/cmaps/HKm314-B5-H.bcmap +0 -0
  467. data/public/web/cmaps/HKm314-B5-V.bcmap +0 -0
  468. data/public/web/cmaps/HKm471-B5-H.bcmap +0 -0
  469. data/public/web/cmaps/HKm471-B5-V.bcmap +0 -0
  470. data/public/web/cmaps/HKscs-B5-H.bcmap +0 -0
  471. data/public/web/cmaps/HKscs-B5-V.bcmap +0 -0
  472. data/public/web/cmaps/Hankaku.bcmap +0 -0
  473. data/public/web/cmaps/Hiragana.bcmap +0 -0
  474. data/public/web/cmaps/KSC-EUC-H.bcmap +0 -0
  475. data/public/web/cmaps/KSC-EUC-V.bcmap +0 -0
  476. data/public/web/cmaps/KSC-H.bcmap +0 -0
  477. data/public/web/cmaps/KSC-Johab-H.bcmap +0 -0
  478. data/public/web/cmaps/KSC-Johab-V.bcmap +0 -0
  479. data/public/web/cmaps/KSC-V.bcmap +0 -0
  480. data/public/web/cmaps/KSCms-UHC-H.bcmap +0 -0
  481. data/public/web/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  482. data/public/web/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  483. data/public/web/cmaps/KSCms-UHC-V.bcmap +0 -0
  484. data/public/web/cmaps/KSCpc-EUC-H.bcmap +0 -0
  485. data/public/web/cmaps/KSCpc-EUC-V.bcmap +0 -0
  486. data/public/web/cmaps/Katakana.bcmap +0 -0
  487. data/public/web/cmaps/LICENSE +36 -0
  488. data/public/web/cmaps/NWP-H.bcmap +0 -0
  489. data/public/web/cmaps/NWP-V.bcmap +0 -0
  490. data/public/web/cmaps/RKSJ-H.bcmap +0 -0
  491. data/public/web/cmaps/RKSJ-V.bcmap +0 -0
  492. data/public/web/cmaps/Roman.bcmap +0 -0
  493. data/public/web/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  494. data/public/web/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  495. data/public/web/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  496. data/public/web/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  497. data/public/web/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  498. data/public/web/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  499. data/public/web/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  500. data/public/web/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  501. data/public/web/cmaps/UniGB-UCS2-H.bcmap +0 -0
  502. data/public/web/cmaps/UniGB-UCS2-V.bcmap +0 -0
  503. data/public/web/cmaps/UniGB-UTF16-H.bcmap +0 -0
  504. data/public/web/cmaps/UniGB-UTF16-V.bcmap +0 -0
  505. data/public/web/cmaps/UniGB-UTF32-H.bcmap +0 -0
  506. data/public/web/cmaps/UniGB-UTF32-V.bcmap +0 -0
  507. data/public/web/cmaps/UniGB-UTF8-H.bcmap +0 -0
  508. data/public/web/cmaps/UniGB-UTF8-V.bcmap +0 -0
  509. data/public/web/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  510. data/public/web/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  511. data/public/web/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  512. data/public/web/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  513. data/public/web/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  514. data/public/web/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  515. data/public/web/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  516. data/public/web/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  517. data/public/web/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  518. data/public/web/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  519. data/public/web/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  520. data/public/web/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  521. data/public/web/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  522. data/public/web/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  523. data/public/web/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  524. data/public/web/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  525. data/public/web/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  526. data/public/web/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  527. data/public/web/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  528. data/public/web/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  529. data/public/web/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  530. data/public/web/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  531. data/public/web/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  532. data/public/web/cmaps/UniKS-UCS2-H.bcmap +0 -0
  533. data/public/web/cmaps/UniKS-UCS2-V.bcmap +0 -0
  534. data/public/web/cmaps/UniKS-UTF16-H.bcmap +0 -0
  535. data/public/web/cmaps/UniKS-UTF16-V.bcmap +0 -0
  536. data/public/web/cmaps/UniKS-UTF32-H.bcmap +0 -0
  537. data/public/web/cmaps/UniKS-UTF32-V.bcmap +0 -0
  538. data/public/web/cmaps/UniKS-UTF8-H.bcmap +0 -0
  539. data/public/web/cmaps/UniKS-UTF8-V.bcmap +0 -0
  540. data/public/web/cmaps/V.bcmap +0 -0
  541. data/public/web/cmaps/WP-Symbol.bcmap +0 -0
  542. data/public/web/compatibility.js +596 -0
  543. data/public/web/compressed.tracemonkey-pldi-09.pdf +0 -0
  544. data/public/web/debugger.js +616 -0
  545. data/public/web/images/annotation-check.svg +11 -0
  546. data/public/web/images/annotation-comment.svg +16 -0
  547. data/public/web/images/annotation-help.svg +26 -0
  548. data/public/web/images/annotation-insert.svg +10 -0
  549. data/public/web/images/annotation-key.svg +11 -0
  550. data/public/web/images/annotation-newparagraph.svg +11 -0
  551. data/public/web/images/annotation-noicon.svg +7 -0
  552. data/public/web/images/annotation-note.svg +42 -0
  553. data/public/web/images/annotation-paragraph.svg +16 -0
  554. data/public/web/images/findbarButton-next-rtl.png +0 -0
  555. data/public/web/images/findbarButton-next-rtl@2x.png +0 -0
  556. data/public/web/images/findbarButton-next.png +0 -0
  557. data/public/web/images/findbarButton-next@2x.png +0 -0
  558. data/public/web/images/findbarButton-previous-rtl.png +0 -0
  559. data/public/web/images/findbarButton-previous-rtl@2x.png +0 -0
  560. data/public/web/images/findbarButton-previous.png +0 -0
  561. data/public/web/images/findbarButton-previous@2x.png +0 -0
  562. data/public/web/images/grab.cur +0 -0
  563. data/public/web/images/grabbing.cur +0 -0
  564. data/public/web/images/loading-icon.gif +0 -0
  565. data/public/web/images/loading-small.png +0 -0
  566. data/public/web/images/loading-small@2x.png +0 -0
  567. data/public/web/images/secondaryToolbarButton-documentProperties.png +0 -0
  568. data/public/web/images/secondaryToolbarButton-documentProperties@2x.png +0 -0
  569. data/public/web/images/secondaryToolbarButton-firstPage.png +0 -0
  570. data/public/web/images/secondaryToolbarButton-firstPage@2x.png +0 -0
  571. data/public/web/images/secondaryToolbarButton-handTool.png +0 -0
  572. data/public/web/images/secondaryToolbarButton-handTool@2x.png +0 -0
  573. data/public/web/images/secondaryToolbarButton-lastPage.png +0 -0
  574. data/public/web/images/secondaryToolbarButton-lastPage@2x.png +0 -0
  575. data/public/web/images/secondaryToolbarButton-rotateCcw.png +0 -0
  576. data/public/web/images/secondaryToolbarButton-rotateCcw@2x.png +0 -0
  577. data/public/web/images/secondaryToolbarButton-rotateCw.png +0 -0
  578. data/public/web/images/secondaryToolbarButton-rotateCw@2x.png +0 -0
  579. data/public/web/images/shadow.png +0 -0
  580. data/public/web/images/texture.png +0 -0
  581. data/public/web/images/toolbarButton-bookmark.png +0 -0
  582. data/public/web/images/toolbarButton-bookmark@2x.png +0 -0
  583. data/public/web/images/toolbarButton-download.png +0 -0
  584. data/public/web/images/toolbarButton-download@2x.png +0 -0
  585. data/public/web/images/toolbarButton-menuArrows.png +0 -0
  586. data/public/web/images/toolbarButton-menuArrows@2x.png +0 -0
  587. data/public/web/images/toolbarButton-openFile.png +0 -0
  588. data/public/web/images/toolbarButton-openFile@2x.png +0 -0
  589. data/public/web/images/toolbarButton-pageDown-rtl.png +0 -0
  590. data/public/web/images/toolbarButton-pageDown-rtl@2x.png +0 -0
  591. data/public/web/images/toolbarButton-pageDown.png +0 -0
  592. data/public/web/images/toolbarButton-pageDown@2x.png +0 -0
  593. data/public/web/images/toolbarButton-pageUp-rtl.png +0 -0
  594. data/public/web/images/toolbarButton-pageUp-rtl@2x.png +0 -0
  595. data/public/web/images/toolbarButton-pageUp.png +0 -0
  596. data/public/web/images/toolbarButton-pageUp@2x.png +0 -0
  597. data/public/web/images/toolbarButton-presentationMode.png +0 -0
  598. data/public/web/images/toolbarButton-presentationMode@2x.png +0 -0
  599. data/public/web/images/toolbarButton-print.png +0 -0
  600. data/public/web/images/toolbarButton-print@2x.png +0 -0
  601. data/public/web/images/toolbarButton-search.png +0 -0
  602. data/public/web/images/toolbarButton-search@2x.png +0 -0
  603. data/public/web/images/toolbarButton-secondaryToolbarToggle-rtl.png +0 -0
  604. data/public/web/images/toolbarButton-secondaryToolbarToggle-rtl@2x.png +0 -0
  605. data/public/web/images/toolbarButton-secondaryToolbarToggle.png +0 -0
  606. data/public/web/images/toolbarButton-secondaryToolbarToggle@2x.png +0 -0
  607. data/public/web/images/toolbarButton-sidebarToggle-rtl.png +0 -0
  608. data/public/web/images/toolbarButton-sidebarToggle-rtl@2x.png +0 -0
  609. data/public/web/images/toolbarButton-sidebarToggle.png +0 -0
  610. data/public/web/images/toolbarButton-sidebarToggle@2x.png +0 -0
  611. data/public/web/images/toolbarButton-viewAttachments.png +0 -0
  612. data/public/web/images/toolbarButton-viewAttachments@2x.png +0 -0
  613. data/public/web/images/toolbarButton-viewOutline-rtl.png +0 -0
  614. data/public/web/images/toolbarButton-viewOutline-rtl@2x.png +0 -0
  615. data/public/web/images/toolbarButton-viewOutline.png +0 -0
  616. data/public/web/images/toolbarButton-viewOutline@2x.png +0 -0
  617. data/public/web/images/toolbarButton-viewThumbnail.png +0 -0
  618. data/public/web/images/toolbarButton-viewThumbnail@2x.png +0 -0
  619. data/public/web/images/toolbarButton-zoomIn.png +0 -0
  620. data/public/web/images/toolbarButton-zoomIn@2x.png +0 -0
  621. data/public/web/images/toolbarButton-zoomOut.png +0 -0
  622. data/public/web/images/toolbarButton-zoomOut@2x.png +0 -0
  623. data/public/web/images/treeitem-collapsed-rtl.png +0 -0
  624. data/public/web/images/treeitem-collapsed-rtl@2x.png +0 -0
  625. data/public/web/images/treeitem-collapsed.png +0 -0
  626. data/public/web/images/treeitem-collapsed@2x.png +0 -0
  627. data/public/web/images/treeitem-expanded.png +0 -0
  628. data/public/web/images/treeitem-expanded@2x.png +0 -0
  629. data/public/web/l10n.js +1033 -0
  630. data/public/web/locale/ach/viewer.properties +173 -0
  631. data/public/web/locale/af/viewer.properties +173 -0
  632. data/public/web/locale/ak/viewer.properties +131 -0
  633. data/public/web/locale/an/viewer.properties +173 -0
  634. data/public/web/locale/ar/viewer.properties +173 -0
  635. data/public/web/locale/as/viewer.properties +172 -0
  636. data/public/web/locale/ast/viewer.properties +173 -0
  637. data/public/web/locale/az/viewer.properties +173 -0
  638. data/public/web/locale/be/viewer.properties +105 -0
  639. data/public/web/locale/bg/viewer.properties +173 -0
  640. data/public/web/locale/bn-BD/viewer.properties +173 -0
  641. data/public/web/locale/bn-IN/viewer.properties +173 -0
  642. data/public/web/locale/br/viewer.properties +173 -0
  643. data/public/web/locale/bs/viewer.properties +173 -0
  644. data/public/web/locale/ca/viewer.properties +173 -0
  645. data/public/web/locale/cs/viewer.properties +173 -0
  646. data/public/web/locale/csb/viewer.properties +134 -0
  647. data/public/web/locale/cy/viewer.properties +173 -0
  648. data/public/web/locale/da/viewer.properties +167 -0
  649. data/public/web/locale/de/viewer.properties +167 -0
  650. data/public/web/locale/el/viewer.properties +173 -0
  651. data/public/web/locale/en-GB/viewer.properties +173 -0
  652. data/public/web/locale/en-US/viewer.properties +173 -0
  653. data/public/web/locale/en-ZA/viewer.properties +173 -0
  654. data/public/web/locale/eo/viewer.properties +173 -0
  655. data/public/web/locale/es-AR/viewer.properties +167 -0
  656. data/public/web/locale/es-CL/viewer.properties +173 -0
  657. data/public/web/locale/es-ES/viewer.properties +111 -0
  658. data/public/web/locale/es-MX/viewer.properties +173 -0
  659. data/public/web/locale/et/viewer.properties +173 -0
  660. data/public/web/locale/eu/viewer.properties +173 -0
  661. data/public/web/locale/fa/viewer.properties +173 -0
  662. data/public/web/locale/ff/viewer.properties +173 -0
  663. data/public/web/locale/fi/viewer.properties +167 -0
  664. data/public/web/locale/fr/viewer.properties +167 -0
  665. data/public/web/locale/fy-NL/viewer.properties +180 -0
  666. data/public/web/locale/ga-IE/viewer.properties +173 -0
  667. data/public/web/locale/gd/viewer.properties +173 -0
  668. data/public/web/locale/gl/viewer.properties +173 -0
  669. data/public/web/locale/gu-IN/viewer.properties +167 -0
  670. data/public/web/locale/he/viewer.properties +173 -0
  671. data/public/web/locale/hi-IN/viewer.properties +173 -0
  672. data/public/web/locale/hr/viewer.properties +173 -0
  673. data/public/web/locale/hu/viewer.properties +173 -0
  674. data/public/web/locale/hy-AM/viewer.properties +173 -0
  675. data/public/web/locale/id/viewer.properties +173 -0
  676. data/public/web/locale/is/viewer.properties +173 -0
  677. data/public/web/locale/it/viewer.properties +111 -0
  678. data/public/web/locale/ja/viewer.properties +167 -0
  679. data/public/web/locale/ka/viewer.properties +173 -0
  680. data/public/web/locale/kk/viewer.properties +173 -0
  681. data/public/web/locale/km/viewer.properties +173 -0
  682. data/public/web/locale/kn/viewer.properties +173 -0
  683. data/public/web/locale/ko/viewer.properties +173 -0
  684. data/public/web/locale/ku/viewer.properties +147 -0
  685. data/public/web/locale/lg/viewer.properties +111 -0
  686. data/public/web/locale/lij/viewer.properties +124 -0
  687. data/public/web/locale/locale.properties +312 -0
  688. data/public/web/locale/lt/viewer.properties +173 -0
  689. data/public/web/locale/lv/viewer.properties +173 -0
  690. data/public/web/locale/mai/viewer.properties +173 -0
  691. data/public/web/locale/mk/viewer.properties +133 -0
  692. data/public/web/locale/ml/viewer.properties +173 -0
  693. data/public/web/locale/mn/viewer.properties +79 -0
  694. data/public/web/locale/mr/viewer.properties +173 -0
  695. data/public/web/locale/ms/viewer.properties +173 -0
  696. data/public/web/locale/my/viewer.properties +173 -0
  697. data/public/web/locale/nb-NO/viewer.properties +173 -0
  698. data/public/web/locale/nl/viewer.properties +173 -0
  699. data/public/web/locale/nn-NO/viewer.properties +173 -0
  700. data/public/web/locale/nso/viewer.properties +131 -0
  701. data/public/web/locale/oc/viewer.properties +171 -0
  702. data/public/web/locale/or/viewer.properties +172 -0
  703. data/public/web/locale/pa-IN/viewer.properties +173 -0
  704. data/public/web/locale/pl/viewer.properties +124 -0
  705. data/public/web/locale/pt-BR/viewer.properties +173 -0
  706. data/public/web/locale/pt-PT/viewer.properties +173 -0
  707. data/public/web/locale/rm/viewer.properties +173 -0
  708. data/public/web/locale/ro/viewer.properties +173 -0
  709. data/public/web/locale/ru/viewer.properties +111 -0
  710. data/public/web/locale/rw/viewer.properties +79 -0
  711. data/public/web/locale/sah/viewer.properties +171 -0
  712. data/public/web/locale/si/viewer.properties +172 -0
  713. data/public/web/locale/sk/viewer.properties +173 -0
  714. data/public/web/locale/sl/viewer.properties +173 -0
  715. data/public/web/locale/son/viewer.properties +173 -0
  716. data/public/web/locale/sq/viewer.properties +166 -0
  717. data/public/web/locale/sr/viewer.properties +173 -0
  718. data/public/web/locale/sv-SE/viewer.properties +173 -0
  719. data/public/web/locale/sw/viewer.properties +129 -0
  720. data/public/web/locale/ta/viewer.properties +173 -0
  721. data/public/web/locale/ta-LK/viewer.properties +72 -0
  722. data/public/web/locale/te/viewer.properties +173 -0
  723. data/public/web/locale/th/viewer.properties +173 -0
  724. data/public/web/locale/tl/viewer.properties +94 -0
  725. data/public/web/locale/tn/viewer.properties +83 -0
  726. data/public/web/locale/tr/viewer.properties +173 -0
  727. data/public/web/locale/uk/viewer.properties +173 -0
  728. data/public/web/locale/ur/viewer.properties +173 -0
  729. data/public/web/locale/vi/viewer.properties +173 -0
  730. data/public/web/locale/wo/viewer.properties +124 -0
  731. data/public/web/locale/xh/viewer.properties +173 -0
  732. data/public/web/locale/zh-CN/viewer.properties +173 -0
  733. data/public/web/locale/zh-TW/viewer.properties +174 -0
  734. data/public/web/locale/zu/viewer.properties +132 -0
  735. data/public/web/viewer.css +2191 -0
  736. data/public/web/viewer.html +425 -0
  737. data/public/web/viewer.js +9780 -0
  738. data/set/abstract/pdfjs.rb +36 -0
  739. metadata +796 -0
@@ -0,0 +1,616 @@
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
+
16
+ 'use strict';
17
+
18
+ var FontInspector = (function FontInspectorClosure() {
19
+ var fonts;
20
+ var active = false;
21
+ var fontAttribute = 'data-font-name';
22
+ function removeSelection() {
23
+ var divs = document.querySelectorAll('div[' + fontAttribute + ']');
24
+ for (var i = 0, ii = divs.length; i < ii; ++i) {
25
+ var div = divs[i];
26
+ div.className = '';
27
+ }
28
+ }
29
+ function resetSelection() {
30
+ var divs = document.querySelectorAll('div[' + fontAttribute + ']');
31
+ for (var i = 0, ii = divs.length; i < ii; ++i) {
32
+ var div = divs[i];
33
+ div.className = 'debuggerHideText';
34
+ }
35
+ }
36
+ function selectFont(fontName, show) {
37
+ var divs = document.querySelectorAll('div[' + fontAttribute + '=' +
38
+ fontName + ']');
39
+ for (var i = 0, ii = divs.length; i < ii; ++i) {
40
+ var div = divs[i];
41
+ div.className = show ? 'debuggerShowText' : 'debuggerHideText';
42
+ }
43
+ }
44
+ function textLayerClick(e) {
45
+ if (!e.target.dataset.fontName ||
46
+ e.target.tagName.toUpperCase() !== 'DIV') {
47
+ return;
48
+ }
49
+ var fontName = e.target.dataset.fontName;
50
+ var selects = document.getElementsByTagName('input');
51
+ for (var i = 0; i < selects.length; ++i) {
52
+ var select = selects[i];
53
+ if (select.dataset.fontName !== fontName) {
54
+ continue;
55
+ }
56
+ select.checked = !select.checked;
57
+ selectFont(fontName, select.checked);
58
+ select.scrollIntoView();
59
+ }
60
+ }
61
+ return {
62
+ // Properties/functions needed by PDFBug.
63
+ id: 'FontInspector',
64
+ name: 'Font Inspector',
65
+ panel: null,
66
+ manager: null,
67
+ init: function init(pdfjsLib) {
68
+ var panel = this.panel;
69
+ panel.setAttribute('style', 'padding: 5px;');
70
+ var tmp = document.createElement('button');
71
+ tmp.addEventListener('click', resetSelection);
72
+ tmp.textContent = 'Refresh';
73
+ panel.appendChild(tmp);
74
+
75
+ fonts = document.createElement('div');
76
+ panel.appendChild(fonts);
77
+ },
78
+ cleanup: function cleanup() {
79
+ fonts.textContent = '';
80
+ },
81
+ enabled: false,
82
+ get active() {
83
+ return active;
84
+ },
85
+ set active(value) {
86
+ active = value;
87
+ if (active) {
88
+ document.body.addEventListener('click', textLayerClick, true);
89
+ resetSelection();
90
+ } else {
91
+ document.body.removeEventListener('click', textLayerClick, true);
92
+ removeSelection();
93
+ }
94
+ },
95
+ // FontInspector specific functions.
96
+ fontAdded: function fontAdded(fontObj, url) {
97
+ function properties(obj, list) {
98
+ var moreInfo = document.createElement('table');
99
+ for (var i = 0; i < list.length; i++) {
100
+ var tr = document.createElement('tr');
101
+ var td1 = document.createElement('td');
102
+ td1.textContent = list[i];
103
+ tr.appendChild(td1);
104
+ var td2 = document.createElement('td');
105
+ td2.textContent = obj[list[i]].toString();
106
+ tr.appendChild(td2);
107
+ moreInfo.appendChild(tr);
108
+ }
109
+ return moreInfo;
110
+ }
111
+ var moreInfo = properties(fontObj, ['name', 'type']);
112
+ var fontName = fontObj.loadedName;
113
+ var font = document.createElement('div');
114
+ var name = document.createElement('span');
115
+ name.textContent = fontName;
116
+ var download = document.createElement('a');
117
+ if (url) {
118
+ url = /url\(['"]?([^\)"']+)/.exec(url);
119
+ download.href = url[1];
120
+ } else if (fontObj.data) {
121
+ url = URL.createObjectURL(new Blob([fontObj.data], {
122
+ type: fontObj.mimeType
123
+ }));
124
+ download.href = url;
125
+ }
126
+ download.textContent = 'Download';
127
+ var logIt = document.createElement('a');
128
+ logIt.href = '';
129
+ logIt.textContent = 'Log';
130
+ logIt.addEventListener('click', function(event) {
131
+ event.preventDefault();
132
+ console.log(fontObj);
133
+ });
134
+ var select = document.createElement('input');
135
+ select.setAttribute('type', 'checkbox');
136
+ select.dataset.fontName = fontName;
137
+ select.addEventListener('click', (function(select, fontName) {
138
+ return (function() {
139
+ selectFont(fontName, select.checked);
140
+ });
141
+ })(select, fontName));
142
+ font.appendChild(select);
143
+ font.appendChild(name);
144
+ font.appendChild(document.createTextNode(' '));
145
+ font.appendChild(download);
146
+ font.appendChild(document.createTextNode(' '));
147
+ font.appendChild(logIt);
148
+ font.appendChild(moreInfo);
149
+ fonts.appendChild(font);
150
+ // Somewhat of a hack, should probably add a hook for when the text layer
151
+ // is done rendering.
152
+ setTimeout(function() {
153
+ if (this.active) {
154
+ resetSelection();
155
+ }
156
+ }.bind(this), 2000);
157
+ }
158
+ };
159
+ })();
160
+
161
+ var opMap;
162
+
163
+ // Manages all the page steppers.
164
+ var StepperManager = (function StepperManagerClosure() {
165
+ var steppers = [];
166
+ var stepperDiv = null;
167
+ var stepperControls = null;
168
+ var stepperChooser = null;
169
+ var breakPoints = Object.create(null);
170
+ return {
171
+ // Properties/functions needed by PDFBug.
172
+ id: 'Stepper',
173
+ name: 'Stepper',
174
+ panel: null,
175
+ manager: null,
176
+ init: function init(pdfjsLib) {
177
+ var self = this;
178
+ this.panel.setAttribute('style', 'padding: 5px;');
179
+ stepperControls = document.createElement('div');
180
+ stepperChooser = document.createElement('select');
181
+ stepperChooser.addEventListener('change', function(event) {
182
+ self.selectStepper(this.value);
183
+ });
184
+ stepperControls.appendChild(stepperChooser);
185
+ stepperDiv = document.createElement('div');
186
+ this.panel.appendChild(stepperControls);
187
+ this.panel.appendChild(stepperDiv);
188
+ if (sessionStorage.getItem('pdfjsBreakPoints')) {
189
+ breakPoints = JSON.parse(sessionStorage.getItem('pdfjsBreakPoints'));
190
+ }
191
+
192
+ opMap = Object.create(null);
193
+ for (var key in pdfjsLib.OPS) {
194
+ opMap[pdfjsLib.OPS[key]] = key;
195
+ }
196
+ },
197
+ cleanup: function cleanup() {
198
+ stepperChooser.textContent = '';
199
+ stepperDiv.textContent = '';
200
+ steppers = [];
201
+ },
202
+ enabled: false,
203
+ active: false,
204
+ // Stepper specific functions.
205
+ create: function create(pageIndex) {
206
+ var debug = document.createElement('div');
207
+ debug.id = 'stepper' + pageIndex;
208
+ debug.setAttribute('hidden', true);
209
+ debug.className = 'stepper';
210
+ stepperDiv.appendChild(debug);
211
+ var b = document.createElement('option');
212
+ b.textContent = 'Page ' + (pageIndex + 1);
213
+ b.value = pageIndex;
214
+ stepperChooser.appendChild(b);
215
+ var initBreakPoints = breakPoints[pageIndex] || [];
216
+ var stepper = new Stepper(debug, pageIndex, initBreakPoints);
217
+ steppers.push(stepper);
218
+ if (steppers.length === 1) {
219
+ this.selectStepper(pageIndex, false);
220
+ }
221
+ return stepper;
222
+ },
223
+ selectStepper: function selectStepper(pageIndex, selectPanel) {
224
+ var i;
225
+ pageIndex = pageIndex | 0;
226
+ if (selectPanel) {
227
+ this.manager.selectPanel(this);
228
+ }
229
+ for (i = 0; i < steppers.length; ++i) {
230
+ var stepper = steppers[i];
231
+ if (stepper.pageIndex === pageIndex) {
232
+ stepper.panel.removeAttribute('hidden');
233
+ } else {
234
+ stepper.panel.setAttribute('hidden', true);
235
+ }
236
+ }
237
+ var options = stepperChooser.options;
238
+ for (i = 0; i < options.length; ++i) {
239
+ var option = options[i];
240
+ option.selected = (option.value | 0) === pageIndex;
241
+ }
242
+ },
243
+ saveBreakPoints: function saveBreakPoints(pageIndex, bps) {
244
+ breakPoints[pageIndex] = bps;
245
+ sessionStorage.setItem('pdfjsBreakPoints', JSON.stringify(breakPoints));
246
+ }
247
+ };
248
+ })();
249
+
250
+ // The stepper for each page's IRQueue.
251
+ var Stepper = (function StepperClosure() {
252
+ // Shorter way to create element and optionally set textContent.
253
+ function c(tag, textContent) {
254
+ var d = document.createElement(tag);
255
+ if (textContent) {
256
+ d.textContent = textContent;
257
+ }
258
+ return d;
259
+ }
260
+
261
+ function simplifyArgs(args) {
262
+ if (typeof args === 'string') {
263
+ var MAX_STRING_LENGTH = 75;
264
+ return args.length <= MAX_STRING_LENGTH ? args :
265
+ args.substr(0, MAX_STRING_LENGTH) + '...';
266
+ }
267
+ if (typeof args !== 'object' || args === null) {
268
+ return args;
269
+ }
270
+ if ('length' in args) { // array
271
+ var simpleArgs = [], i, ii;
272
+ var MAX_ITEMS = 10;
273
+ for (i = 0, ii = Math.min(MAX_ITEMS, args.length); i < ii; i++) {
274
+ simpleArgs.push(simplifyArgs(args[i]));
275
+ }
276
+ if (i < args.length) {
277
+ simpleArgs.push('...');
278
+ }
279
+ return simpleArgs;
280
+ }
281
+ var simpleObj = {};
282
+ for (var key in args) {
283
+ simpleObj[key] = simplifyArgs(args[key]);
284
+ }
285
+ return simpleObj;
286
+ }
287
+
288
+ function Stepper(panel, pageIndex, initialBreakPoints) {
289
+ this.panel = panel;
290
+ this.breakPoint = 0;
291
+ this.nextBreakPoint = null;
292
+ this.pageIndex = pageIndex;
293
+ this.breakPoints = initialBreakPoints;
294
+ this.currentIdx = -1;
295
+ this.operatorListIdx = 0;
296
+ }
297
+ Stepper.prototype = {
298
+ init: function init(operatorList) {
299
+ var panel = this.panel;
300
+ var content = c('div', 'c=continue, s=step');
301
+ var table = c('table');
302
+ content.appendChild(table);
303
+ table.cellSpacing = 0;
304
+ var headerRow = c('tr');
305
+ table.appendChild(headerRow);
306
+ headerRow.appendChild(c('th', 'Break'));
307
+ headerRow.appendChild(c('th', 'Idx'));
308
+ headerRow.appendChild(c('th', 'fn'));
309
+ headerRow.appendChild(c('th', 'args'));
310
+ panel.appendChild(content);
311
+ this.table = table;
312
+ this.updateOperatorList(operatorList);
313
+ },
314
+ updateOperatorList: function updateOperatorList(operatorList) {
315
+ var self = this;
316
+
317
+ function cboxOnClick() {
318
+ var x = +this.dataset.idx;
319
+ if (this.checked) {
320
+ self.breakPoints.push(x);
321
+ } else {
322
+ self.breakPoints.splice(self.breakPoints.indexOf(x), 1);
323
+ }
324
+ StepperManager.saveBreakPoints(self.pageIndex, self.breakPoints);
325
+ }
326
+
327
+ var MAX_OPERATORS_COUNT = 15000;
328
+ if (this.operatorListIdx > MAX_OPERATORS_COUNT) {
329
+ return;
330
+ }
331
+
332
+ var chunk = document.createDocumentFragment();
333
+ var operatorsToDisplay = Math.min(MAX_OPERATORS_COUNT,
334
+ operatorList.fnArray.length);
335
+ for (var i = this.operatorListIdx; i < operatorsToDisplay; i++) {
336
+ var line = c('tr');
337
+ line.className = 'line';
338
+ line.dataset.idx = i;
339
+ chunk.appendChild(line);
340
+ var checked = this.breakPoints.indexOf(i) !== -1;
341
+ var args = operatorList.argsArray[i] || [];
342
+
343
+ var breakCell = c('td');
344
+ var cbox = c('input');
345
+ cbox.type = 'checkbox';
346
+ cbox.className = 'points';
347
+ cbox.checked = checked;
348
+ cbox.dataset.idx = i;
349
+ cbox.onclick = cboxOnClick;
350
+
351
+ breakCell.appendChild(cbox);
352
+ line.appendChild(breakCell);
353
+ line.appendChild(c('td', i.toString()));
354
+ var fn = opMap[operatorList.fnArray[i]];
355
+ var decArgs = args;
356
+ if (fn === 'showText') {
357
+ var glyphs = args[0];
358
+ var newArgs = [];
359
+ var str = [];
360
+ for (var j = 0; j < glyphs.length; j++) {
361
+ var glyph = glyphs[j];
362
+ if (typeof glyph === 'object' && glyph !== null) {
363
+ str.push(glyph.fontChar);
364
+ } else {
365
+ if (str.length > 0) {
366
+ newArgs.push(str.join(''));
367
+ str = [];
368
+ }
369
+ newArgs.push(glyph); // null or number
370
+ }
371
+ }
372
+ if (str.length > 0) {
373
+ newArgs.push(str.join(''));
374
+ }
375
+ decArgs = [newArgs];
376
+ }
377
+ line.appendChild(c('td', fn));
378
+ line.appendChild(c('td', JSON.stringify(simplifyArgs(decArgs))));
379
+ }
380
+ if (operatorsToDisplay < operatorList.fnArray.length) {
381
+ line = c('tr');
382
+ var lastCell = c('td', '...');
383
+ lastCell.colspan = 4;
384
+ chunk.appendChild(lastCell);
385
+ }
386
+ this.operatorListIdx = operatorList.fnArray.length;
387
+ this.table.appendChild(chunk);
388
+ },
389
+ getNextBreakPoint: function getNextBreakPoint() {
390
+ this.breakPoints.sort(function(a, b) { return a - b; });
391
+ for (var i = 0; i < this.breakPoints.length; i++) {
392
+ if (this.breakPoints[i] > this.currentIdx) {
393
+ return this.breakPoints[i];
394
+ }
395
+ }
396
+ return null;
397
+ },
398
+ breakIt: function breakIt(idx, callback) {
399
+ StepperManager.selectStepper(this.pageIndex, true);
400
+ var self = this;
401
+ var dom = document;
402
+ self.currentIdx = idx;
403
+ var listener = function(e) {
404
+ switch (e.keyCode) {
405
+ case 83: // step
406
+ dom.removeEventListener('keydown', listener, false);
407
+ self.nextBreakPoint = self.currentIdx + 1;
408
+ self.goTo(-1);
409
+ callback();
410
+ break;
411
+ case 67: // continue
412
+ dom.removeEventListener('keydown', listener, false);
413
+ var breakPoint = self.getNextBreakPoint();
414
+ self.nextBreakPoint = breakPoint;
415
+ self.goTo(-1);
416
+ callback();
417
+ break;
418
+ }
419
+ };
420
+ dom.addEventListener('keydown', listener, false);
421
+ self.goTo(idx);
422
+ },
423
+ goTo: function goTo(idx) {
424
+ var allRows = this.panel.getElementsByClassName('line');
425
+ for (var x = 0, xx = allRows.length; x < xx; ++x) {
426
+ var row = allRows[x];
427
+ if ((row.dataset.idx | 0) === idx) {
428
+ row.style.backgroundColor = 'rgb(251,250,207)';
429
+ row.scrollIntoView();
430
+ } else {
431
+ row.style.backgroundColor = null;
432
+ }
433
+ }
434
+ }
435
+ };
436
+ return Stepper;
437
+ })();
438
+
439
+ var Stats = (function Stats() {
440
+ var stats = [];
441
+ function clear(node) {
442
+ while (node.hasChildNodes()) {
443
+ node.removeChild(node.lastChild);
444
+ }
445
+ }
446
+ function getStatIndex(pageNumber) {
447
+ for (var i = 0, ii = stats.length; i < ii; ++i) {
448
+ if (stats[i].pageNumber === pageNumber) {
449
+ return i;
450
+ }
451
+ }
452
+ return false;
453
+ }
454
+ return {
455
+ // Properties/functions needed by PDFBug.
456
+ id: 'Stats',
457
+ name: 'Stats',
458
+ panel: null,
459
+ manager: null,
460
+ init: function init(pdfjsLib) {
461
+ this.panel.setAttribute('style', 'padding: 5px;');
462
+ pdfjsLib.PDFJS.enableStats = true;
463
+ },
464
+ enabled: false,
465
+ active: false,
466
+ // Stats specific functions.
467
+ add: function(pageNumber, stat) {
468
+ if (!stat) {
469
+ return;
470
+ }
471
+ var statsIndex = getStatIndex(pageNumber);
472
+ if (statsIndex !== false) {
473
+ var b = stats[statsIndex];
474
+ this.panel.removeChild(b.div);
475
+ stats.splice(statsIndex, 1);
476
+ }
477
+ var wrapper = document.createElement('div');
478
+ wrapper.className = 'stats';
479
+ var title = document.createElement('div');
480
+ title.className = 'title';
481
+ title.textContent = 'Page: ' + pageNumber;
482
+ var statsDiv = document.createElement('div');
483
+ statsDiv.textContent = stat.toString();
484
+ wrapper.appendChild(title);
485
+ wrapper.appendChild(statsDiv);
486
+ stats.push({ pageNumber: pageNumber, div: wrapper });
487
+ stats.sort(function(a, b) { return a.pageNumber - b.pageNumber; });
488
+ clear(this.panel);
489
+ for (var i = 0, ii = stats.length; i < ii; ++i) {
490
+ this.panel.appendChild(stats[i].div);
491
+ }
492
+ },
493
+ cleanup: function () {
494
+ stats = [];
495
+ clear(this.panel);
496
+ }
497
+ };
498
+ })();
499
+
500
+ // Manages all the debugging tools.
501
+ var PDFBug = (function PDFBugClosure() {
502
+ var panelWidth = 300;
503
+ var buttons = [];
504
+ var activePanel = null;
505
+
506
+ return {
507
+ tools: [
508
+ FontInspector,
509
+ StepperManager,
510
+ Stats
511
+ ],
512
+ enable: function(ids) {
513
+ var all = false, tools = this.tools;
514
+ if (ids.length === 1 && ids[0] === 'all') {
515
+ all = true;
516
+ }
517
+ for (var i = 0; i < tools.length; ++i) {
518
+ var tool = tools[i];
519
+ if (all || ids.indexOf(tool.id) !== -1) {
520
+ tool.enabled = true;
521
+ }
522
+ }
523
+ if (!all) {
524
+ // Sort the tools by the order they are enabled.
525
+ tools.sort(function(a, b) {
526
+ var indexA = ids.indexOf(a.id);
527
+ indexA = indexA < 0 ? tools.length : indexA;
528
+ var indexB = ids.indexOf(b.id);
529
+ indexB = indexB < 0 ? tools.length : indexB;
530
+ return indexA - indexB;
531
+ });
532
+ }
533
+ },
534
+ init: function init(pdfjsLib, container) {
535
+ /*
536
+ * Basic Layout:
537
+ * PDFBug
538
+ * Controls
539
+ * Panels
540
+ * Panel
541
+ * Panel
542
+ * ...
543
+ */
544
+ var ui = document.createElement('div');
545
+ ui.id = 'PDFBug';
546
+
547
+ var controls = document.createElement('div');
548
+ controls.setAttribute('class', 'controls');
549
+ ui.appendChild(controls);
550
+
551
+ var panels = document.createElement('div');
552
+ panels.setAttribute('class', 'panels');
553
+ ui.appendChild(panels);
554
+
555
+ container.appendChild(ui);
556
+ container.style.right = panelWidth + 'px';
557
+
558
+ // Initialize all the debugging tools.
559
+ var tools = this.tools;
560
+ var self = this;
561
+ for (var i = 0; i < tools.length; ++i) {
562
+ var tool = tools[i];
563
+ var panel = document.createElement('div');
564
+ var panelButton = document.createElement('button');
565
+ panelButton.textContent = tool.name;
566
+ panelButton.addEventListener('click', (function(selected) {
567
+ return function(event) {
568
+ event.preventDefault();
569
+ self.selectPanel(selected);
570
+ };
571
+ })(i));
572
+ controls.appendChild(panelButton);
573
+ panels.appendChild(panel);
574
+ tool.panel = panel;
575
+ tool.manager = this;
576
+ if (tool.enabled) {
577
+ tool.init(pdfjsLib);
578
+ } else {
579
+ panel.textContent = tool.name + ' is disabled. To enable add ' +
580
+ ' "' + tool.id + '" to the pdfBug parameter ' +
581
+ 'and refresh (separate multiple by commas).';
582
+ }
583
+ buttons.push(panelButton);
584
+ }
585
+ this.selectPanel(0);
586
+ },
587
+ cleanup: function cleanup() {
588
+ for (var i = 0, ii = this.tools.length; i < ii; i++) {
589
+ if (this.tools[i].enabled) {
590
+ this.tools[i].cleanup();
591
+ }
592
+ }
593
+ },
594
+ selectPanel: function selectPanel(index) {
595
+ if (typeof index !== 'number') {
596
+ index = this.tools.indexOf(index);
597
+ }
598
+ if (index === activePanel) {
599
+ return;
600
+ }
601
+ activePanel = index;
602
+ var tools = this.tools;
603
+ for (var j = 0; j < tools.length; ++j) {
604
+ if (j === index) {
605
+ buttons[j].setAttribute('class', 'active');
606
+ tools[j].active = true;
607
+ tools[j].panel.removeAttribute('hidden');
608
+ } else {
609
+ buttons[j].setAttribute('class', '');
610
+ tools[j].active = false;
611
+ tools[j].panel.setAttribute('hidden', 'true');
612
+ }
613
+ }
614
+ }
615
+ };
616
+ })();
@@ -0,0 +1,11 @@
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>
@@ -0,0 +1,16 @@
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>
@@ -0,0 +1,26 @@
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>
@@ -0,0 +1,10 @@
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>
@@ -0,0 +1,11 @@
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>