aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src/main')
-rw-r--r--pdf-as-web/src/main/webapp/assets/css/style.css31
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/dragNdrop.js94
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-EUC-H.bcmapbin0 -> 2404 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-EUC-V.bcmapbin0 -> 173 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-H.bcmapbin0 -> 2379 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-RKSJ-H.bcmapbin0 -> 2398 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-RKSJ-V.bcmapbin0 -> 173 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-V.bcmapbin0 -> 169 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78ms-RKSJ-H.bcmapbin0 -> 2651 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78ms-RKSJ-V.bcmapbin0 -> 290 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/83pv-RKSJ-H.bcmapbin0 -> 905 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90ms-RKSJ-H.bcmapbin0 -> 721 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90ms-RKSJ-V.bcmapbin0 -> 290 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90msp-RKSJ-H.bcmapbin0 -> 715 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90msp-RKSJ-V.bcmapbin0 -> 291 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90pv-RKSJ-H.bcmapbin0 -> 982 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90pv-RKSJ-V.bcmapbin0 -> 260 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-H.bcmapbin0 -> 2419 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-RKSJ-H.bcmapbin0 -> 2413 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-RKSJ-V.bcmapbin0 -> 287 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-V.bcmapbin0 -> 282 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-0.bcmapbin0 -> 317 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-1.bcmapbin0 -> 371 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-2.bcmapbin0 -> 376 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-3.bcmapbin0 -> 401 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-4.bcmapbin0 -> 405 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-5.bcmapbin0 -> 406 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-6.bcmapbin0 -> 406 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-UCS2.bcmapbin0 -> 41193 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-0.bcmapbin0 -> 217 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-1.bcmapbin0 -> 250 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-2.bcmapbin0 -> 465 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-3.bcmapbin0 -> 470 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-4.bcmapbin0 -> 601 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-5.bcmapbin0 -> 625 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-UCS2.bcmapbin0 -> 33974 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-0.bcmapbin0 -> 225 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-1.bcmapbin0 -> 226 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-2.bcmapbin0 -> 233 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-3.bcmapbin0 -> 242 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-4.bcmapbin0 -> 337 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-5.bcmapbin0 -> 430 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-6.bcmapbin0 -> 485 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-UCS2.bcmapbin0 -> 40951 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-0.bcmapbin0 -> 241 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-1.bcmapbin0 -> 386 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-2.bcmapbin0 -> 391 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-UCS2.bcmapbin0 -> 23293 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5-H.bcmapbin0 -> 1086 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5-V.bcmapbin0 -> 142 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5pc-H.bcmapbin0 -> 1099 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5pc-V.bcmapbin0 -> 144 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS-EUC-H.bcmapbin0 -> 1780 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS-EUC-V.bcmapbin0 -> 1920 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS1-H.bcmapbin0 -> 706 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS1-V.bcmapbin0 -> 143 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS2-H.bcmapbin0 -> 504 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS2-V.bcmap3
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETHK-B5-H.bcmapbin0 -> 4426 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETHK-B5-V.bcmapbin0 -> 158 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETen-B5-H.bcmapbin0 -> 1125 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETen-B5-V.bcmapbin0 -> 158 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETenms-B5-H.bcmap3
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETenms-B5-V.bcmapbin0 -> 172 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/EUC-H.bcmapbin0 -> 578 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/EUC-V.bcmapbin0 -> 170 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-H.bcmapbin0 -> 2536 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-RKSJ-H.bcmapbin0 -> 2542 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-RKSJ-V.bcmapbin0 -> 218 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-V.bcmapbin0 -> 215 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-EUC-H.bcmapbin0 -> 549 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-EUC-V.bcmapbin0 -> 179 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-H.bcmap4
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-V.bcmapbin0 -> 175 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK-EUC-H.bcmapbin0 -> 14692 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK-EUC-V.bcmapbin0 -> 180 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK2K-H.bcmapbin0 -> 19662 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK2K-V.bcmapbin0 -> 219 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBKp-EUC-H.bcmapbin0 -> 14686 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBKp-EUC-V.bcmapbin0 -> 181 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-EUC-H.bcmapbin0 -> 7290 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-EUC-V.bcmapbin0 -> 180 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-H.bcmapbin0 -> 7269 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-V.bcmapbin0 -> 176 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBTpc-EUC-H.bcmapbin0 -> 7298 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBTpc-EUC-V.bcmapbin0 -> 182 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBpc-EUC-H.bcmapbin0 -> 557 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBpc-EUC-V.bcmapbin0 -> 181 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/H.bcmapbin0 -> 553 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdla-B5-H.bcmapbin0 -> 2654 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdla-B5-V.bcmapbin0 -> 148 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdlb-B5-H.bcmapbin0 -> 2414 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdlb-B5-V.bcmapbin0 -> 148 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKgccs-B5-H.bcmapbin0 -> 2292 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKgccs-B5-V.bcmapbin0 -> 149 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm314-B5-H.bcmapbin0 -> 1772 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm314-B5-V.bcmapbin0 -> 149 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm471-B5-H.bcmapbin0 -> 2171 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm471-B5-V.bcmapbin0 -> 149 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKscs-B5-H.bcmapbin0 -> 4437 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKscs-B5-V.bcmapbin0 -> 159 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Hankaku.bcmapbin0 -> 132 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Hiragana.bcmapbin0 -> 124 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-EUC-H.bcmapbin0 -> 1848 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-EUC-V.bcmapbin0 -> 164 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-H.bcmapbin0 -> 1831 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-Johab-H.bcmapbin0 -> 16791 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-Johab-V.bcmapbin0 -> 166 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-V.bcmapbin0 -> 160 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-H.bcmapbin0 -> 2787 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-HW-H.bcmapbin0 -> 2789 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-HW-V.bcmapbin0 -> 169 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-V.bcmapbin0 -> 166 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCpc-EUC-H.bcmapbin0 -> 2024 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCpc-EUC-V.bcmapbin0 -> 166 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Katakana.bcmapbin0 -> 100 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/LICENSE36
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/NWP-H.bcmapbin0 -> 2765 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/NWP-V.bcmapbin0 -> 252 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/RKSJ-H.bcmapbin0 -> 534 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/RKSJ-V.bcmapbin0 -> 170 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Roman.bcmapbin0 -> 96 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UCS2-H.bcmapbin0 -> 48280 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UCS2-V.bcmapbin0 -> 156 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF16-H.bcmapbin0 -> 50419 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF16-V.bcmapbin0 -> 156 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF32-H.bcmapbin0 -> 52679 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF32-V.bcmapbin0 -> 160 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF8-H.bcmapbin0 -> 53629 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF8-V.bcmapbin0 -> 157 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UCS2-H.bcmapbin0 -> 43366 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UCS2-V.bcmapbin0 -> 193 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF16-H.bcmapbin0 -> 44086 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF16-V.bcmapbin0 -> 178 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF32-H.bcmapbin0 -> 45738 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF32-V.bcmapbin0 -> 182 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF8-H.bcmapbin0 -> 46837 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF8-V.bcmapbin0 -> 181 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-H.bcmapbin0 -> 25439 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-HW-H.bcmapbin0 -> 119 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-HW-V.bcmapbin0 -> 680 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-V.bcmapbin0 -> 664 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF16-H.bcmapbin0 -> 39443 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF16-V.bcmapbin0 -> 643 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF32-H.bcmapbin0 -> 40539 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF32-V.bcmapbin0 -> 677 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF8-H.bcmapbin0 -> 41695 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF8-V.bcmapbin0 -> 678 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF16-H.bcmapbin0 -> 39534 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF16-V.bcmapbin0 -> 647 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF32-H.bcmapbin0 -> 40630 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF32-V.bcmapbin0 -> 681 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF8-H.bcmapbin0 -> 41779 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF8-V.bcmapbin0 -> 682 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UCS2-HW-V.bcmapbin0 -> 705 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UCS2-V.bcmapbin0 -> 689 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UTF8-V.bcmapbin0 -> 726 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX0213-UTF32-H.bcmapbin0 -> 40517 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX0213-UTF32-V.bcmapbin0 -> 684 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX02132004-UTF32-H.bcmapbin0 -> 40608 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX02132004-UTF32-V.bcmapbin0 -> 688 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UCS2-H.bcmapbin0 -> 25783 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UCS2-V.bcmapbin0 -> 178 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF16-H.bcmapbin0 -> 26327 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF16-V.bcmapbin0 -> 164 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF32-H.bcmapbin0 -> 26451 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF32-V.bcmapbin0 -> 168 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF8-H.bcmapbin0 -> 27790 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF8-V.bcmapbin0 -> 169 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/V.bcmapbin0 -> 166 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/WP-Symbol.bcmapbin0 -> 179 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/compatibility.js574
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/compressed.tracemonkey-pldi-09.pdfbin0 -> 1016315 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/debugger.js620
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-check.svg11
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-comment.svg16
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-help.svg26
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-insert.svg10
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-key.svg11
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-newparagraph.svg11
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-noicon.svg7
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-note.svg42
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-paragraph.svg16
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next-rtl.pngbin0 -> 199 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next-rtl@2x.pngbin0 -> 304 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next.pngbin0 -> 193 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next@2x.pngbin0 -> 296 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous-rtl.pngbin0 -> 193 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous-rtl@2x.pngbin0 -> 296 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous.pngbin0 -> 199 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous@2x.pngbin0 -> 304 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/grab.curbin0 -> 326 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/grabbing.curbin0 -> 326 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-icon.gifbin0 -> 2545 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-small.pngbin0 -> 7402 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-small@2x.pngbin0 -> 16131 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-documentProperties.pngbin0 -> 403 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-documentProperties@2x.pngbin0 -> 933 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-firstPage.pngbin0 -> 179 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-firstPage@2x.pngbin0 -> 266 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-handTool.pngbin0 -> 301 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-handTool@2x.pngbin0 -> 583 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-lastPage.pngbin0 -> 175 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-lastPage@2x.pngbin0 -> 276 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCcw.pngbin0 -> 360 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCcw@2x.pngbin0 -> 731 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCw.pngbin0 -> 359 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCw@2x.pngbin0 -> 714 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/shadow.pngbin0 -> 290 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/texture.pngbin0 -> 2418 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-bookmark.pngbin0 -> 174 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-bookmark@2x.pngbin0 -> 260 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-download.pngbin0 -> 259 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-download@2x.pngbin0 -> 425 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-menuArrows.pngbin0 -> 108 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-menuArrows@2x.pngbin0 -> 152 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-openFile.pngbin0 -> 295 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-openFile@2x.pngbin0 -> 550 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown-rtl.pngbin0 -> 242 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown-rtl@2x.pngbin0 -> 398 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown.pngbin0 -> 238 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown@2x.pngbin0 -> 396 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp-rtl.pngbin0 -> 245 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp-rtl@2x.pngbin0 -> 405 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp.pngbin0 -> 246 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp@2x.pngbin0 -> 403 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-presentationMode.pngbin0 -> 321 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-presentationMode@2x.pngbin0 -> 586 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-print.pngbin0 -> 257 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-print@2x.pngbin0 -> 464 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-search.pngbin0 -> 309 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-search@2x.pngbin0 -> 653 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle-rtl.pngbin0 -> 246 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle-rtl@2x.pngbin0 -> 456 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle.pngbin0 -> 243 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle@2x.pngbin0 -> 458 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle-rtl.pngbin0 -> 225 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle-rtl@2x.pngbin0 -> 344 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle.pngbin0 -> 225 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle@2x.pngbin0 -> 331 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewAttachments.pngbin0 -> 384 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewAttachments@2x.pngbin0 -> 871 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline-rtl.pngbin0 -> 177 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline-rtl@2x.pngbin0 -> 394 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline.pngbin0 -> 178 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline@2x.pngbin0 -> 331 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewThumbnail.pngbin0 -> 185 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewThumbnail@2x.pngbin0 -> 220 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomIn.pngbin0 -> 136 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomIn@2x.pngbin0 -> 160 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomOut.pngbin0 -> 88 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomOut@2x.pngbin0 -> 109 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/l10n.js1033
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ach/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/af/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ak/viewer.properties123
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/an/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ar/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/as/viewer.properties164
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ast/viewer.properties110
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/az/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/be/viewer.properties105
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bg/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bn-BD/viewer.properties139
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bn-IN/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/br/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bs/viewer.properties125
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ca/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/cs/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/csb/viewer.properties134
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/cy/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/da/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/de/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/el/viewer.properties131
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-GB/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-US/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-ZA/viewer.properties163
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/eo/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-AR/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-CL/viewer.properties130
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-ES/viewer.properties111
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-MX/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/et/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/eu/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fa/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ff/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fi/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fr/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fy-NL/viewer.properties173
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ga-IE/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gd/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gl/viewer.properties164
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gu-IN/viewer.properties149
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/he/viewer.properties152
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hi-IN/viewer.properties166
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hr/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hu/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hy-AM/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/id/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/is/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/it/viewer.properties111
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ja/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ka/viewer.properties124
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/kk/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/km/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/kn/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ko/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ku/viewer.properties139
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lg/viewer.properties103
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lij/viewer.properties116
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/locale.properties312
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lt/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lv/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mai/viewer.properties165
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mk/viewer.properties126
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ml/viewer.properties165
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mn/viewer.properties65
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mr/viewer.properties165
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ms/viewer.properties165
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/my/viewer.properties166
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nb-NO/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nl/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nn-NO/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nso/viewer.properties123
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/oc/viewer.properties165
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/or/viewer.properties164
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pa-IN/viewer.properties181
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pl/viewer.properties152
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pt-BR/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pt-PT/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/rm/viewer.properties157
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ro/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ru/viewer.properties111
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/rw/viewer.properties73
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sah/viewer.properties163
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/si/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sk/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sl/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/son/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sq/viewer.properties165
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sr/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sv-SE/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sw/viewer.properties123
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ta-LK/viewer.properties64
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ta/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/te/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/th/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tl/viewer.properties83
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tn/viewer.properties72
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tr/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/uk/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ur/viewer.properties161
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/vi/viewer.properties143
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/wo/viewer.properties118
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/xh/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zh-CN/viewer.properties167
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zh-TW/viewer.properties168
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zu/viewer.properties124
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.css1997
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.html418
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js7435
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp24
362 files changed, 28577 insertions, 35 deletions
diff --git a/pdf-as-web/src/main/webapp/assets/css/style.css b/pdf-as-web/src/main/webapp/assets/css/style.css
index 8849709f..1d8ddb5b 100644
--- a/pdf-as-web/src/main/webapp/assets/css/style.css
+++ b/pdf-as-web/src/main/webapp/assets/css/style.css
@@ -10,11 +10,11 @@ footer {
clear: both;
}
-iframe {
- border: none;
+canvas {
+ border: 1px solid black;
}
-#leftMain {
+#sidebar {
float: left;
margin-right: 1em;
}
@@ -50,6 +50,26 @@ iframe {
height: 5%;
}
+#btnSign {
+ border-top-left-radius: 15px;
+ border-top-right-radius: 15px;
+ border-bottom-left-radius: 15px;
+ border-bottom-right-radius: 15px;
+ border: 2px solid;
+ border-color: #66A3FF;
+ background: #66A3FF;
+ box-shadow: 0px 0px 15px #333333;
+ margin-bottom: 1em;
+ width: 20em;
+}
+
+#btnSign h3 {
+ color: #FFFFFF;
+ margin: 0px;
+ height: 2em;
+ text-align: center;
+}
+
.center {
display: flex;
justify-content: center;
@@ -68,8 +88,8 @@ iframe {
}
.container h3 {
- border-top-left-radius: 13px;
- border-top-right-radius: 13px;
+ border-top-left-radius: 11px;
+ border-top-right-radius: 11px;
background: #66A3FF;
color: #FFFFFF;
text-align: center;
@@ -80,3 +100,4 @@ iframe {
.container fieldset {
border: none;
}
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js b/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js
index 040b61d0..e1a3424a 100644
--- a/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js
+++ b/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js
@@ -4,6 +4,11 @@ $(document).ready(function() {
});
function registerEventListeners() {
+
+ var file;
+ var locale = "EN";
+ var connector = "mobilebku";
+
$(document).bind("dragover", function(evt) {
evt.preventDefault();
});
@@ -41,12 +46,36 @@ function registerEventListeners() {
unhighlightDropzone();
var files = evt.originalEvent.dataTransfer.files;
- if(files == null) {
+ if(files == null || files.length === 0) {
+ return;
+ }
+
+ file = files[0];
+ previewFile(file);
+ });
+
+ $("#pdf-file").bind("change", function(evt) {
+ var files = evt.target.files;
+ if(files == null || files.length === 0) {
return;
}
- previewFile(files[0]);
+ file = files[0];
+ previewFile(file);
+ });
+
+ $("input[name='connector']").bind("change", function(evt) {
+ connector = this.value;
+ });
+
+ $("input[name='locale']").bind("change", function(evt) {
+ locale = this.value;
+ });
+
+ $("#btnSign").bind("click", function(evt) {
+ sign(file, connector, locale);
});
+
}
function previewFile(file) {
@@ -54,25 +83,25 @@ function previewFile(file) {
fr.onload = function(file) {
var buffer = fr.result;
- /*var int8View = new Uint8Array(buffer);
- var output = document.getElementById("output");
- output.innerHTML =
- int8View[0].toString(16)
- + int8View[1].toString(16)
- + int8View[2].toString(16)
- + int8View[3].toString(16);*/
- displaypdf(buffer);
+ var uint8array = new Uint8Array(buffer);
+ displaypdf(uint8array);
};
clearContentDiv();
- fr.readAsDataURL(file);
+ fr.readAsArrayBuffer(file);
}
-function sign() {
- /*var fd = new FormData();
- fd.append("pdf-file", files[0]);
+function sign(file, connector, locale) {
+ if(file == null) {
+ alert("No file selected");
+ return
+ }
+
+ var fd = new FormData();
fd.append("source", "internal");
- fd.append("connector", "mobilebku");
+ fd.append("pdf-file", file);
+ fd.append("connector", connector);
+ fd.append("locale", locale);
$.ajax({
url: "Sign",
@@ -84,7 +113,7 @@ function sign() {
$("html").empty();
$("html").html(response);
}
- });*/
+ });
}
function highlightDropzone() {
@@ -95,9 +124,22 @@ function unhighlightDropzone() {
$("#dropzone").css("background", "#E8F4FF");
}
-function displaypdf(datauri) {
+function clearContentDiv() {
+ $("#content").empty();
+}
+
+function displaypdf(uint8array) {
$("#content").append("<img src='assets/img/signature.png' alt='Signature' id='signature' draggable='true' style='position: absolute'>");
- $("#content").append("<iframe src=" + datauri + " width='800px' height='868px'></iframe>");
+ $("#content").append("<canvas id='pdf-preview'></canvas>");
+
+
+ PDFJS.getDocument(uint8array).then(function(__pdf) {
+ var pdf = __pdf;
+ var last_page = pdf.numPages;
+
+ pdf.getPage(last_page).then(renderPage);
+
+ });
$("#signature").draggable({
drag: function() {
@@ -107,6 +149,18 @@ function displaypdf(datauri) {
});
}
-function clearContentDiv() {
- $("#content").empty();
+function renderPage(page) {
+ var viewport = page.getViewport(1);
+ var canvas = document.getElementById("pdf-preview");
+ var context = canvas.getContext('2d');
+ canvas.height = 868;
+ canvas.width = 800;
+
+ page.render({
+ canvasContext: context,
+ viewport: viewport
+ });
+
}
+
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-EUC-H.bcmap
new file mode 100644
index 00000000..2655fc70
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-EUC-V.bcmap
new file mode 100644
index 00000000..f1ed8538
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-H.bcmap
new file mode 100644
index 00000000..39e89d33
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-RKSJ-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-RKSJ-H.bcmap
new file mode 100644
index 00000000..e4167cb5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-RKSJ-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-RKSJ-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-RKSJ-V.bcmap
new file mode 100644
index 00000000..50b1646e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-RKSJ-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-V.bcmap
new file mode 100644
index 00000000..d7af99b5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78ms-RKSJ-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78ms-RKSJ-H.bcmap
new file mode 100644
index 00000000..37077d01
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78ms-RKSJ-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78ms-RKSJ-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78ms-RKSJ-V.bcmap
new file mode 100644
index 00000000..acf23231
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/78ms-RKSJ-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/83pv-RKSJ-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/83pv-RKSJ-H.bcmap
new file mode 100644
index 00000000..2359bc52
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/83pv-RKSJ-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90ms-RKSJ-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90ms-RKSJ-H.bcmap
new file mode 100644
index 00000000..af829382
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90ms-RKSJ-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90ms-RKSJ-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90ms-RKSJ-V.bcmap
new file mode 100644
index 00000000..780549de
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90ms-RKSJ-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90msp-RKSJ-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90msp-RKSJ-H.bcmap
new file mode 100644
index 00000000..bfd3119c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90msp-RKSJ-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90msp-RKSJ-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90msp-RKSJ-V.bcmap
new file mode 100644
index 00000000..25ef14ab
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90msp-RKSJ-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90pv-RKSJ-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90pv-RKSJ-H.bcmap
new file mode 100644
index 00000000..02f713bb
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90pv-RKSJ-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90pv-RKSJ-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90pv-RKSJ-V.bcmap
new file mode 100644
index 00000000..d08e0cc5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/90pv-RKSJ-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-H.bcmap
new file mode 100644
index 00000000..59442aca
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-RKSJ-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-RKSJ-H.bcmap
new file mode 100644
index 00000000..a3065e44
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-RKSJ-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-RKSJ-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-RKSJ-V.bcmap
new file mode 100644
index 00000000..040014cf
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-RKSJ-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-V.bcmap
new file mode 100644
index 00000000..2f816d32
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Add-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-0.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-0.bcmap
new file mode 100644
index 00000000..88ec04af
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-0.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-1.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-1.bcmap
new file mode 100644
index 00000000..03a50147
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-1.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-2.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-2.bcmap
new file mode 100644
index 00000000..2aa95141
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-2.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-3.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-3.bcmap
new file mode 100644
index 00000000..86d8b8c7
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-3.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-4.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-4.bcmap
new file mode 100644
index 00000000..f50fc6c1
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-4.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-5.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-5.bcmap
new file mode 100644
index 00000000..6caf4a83
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-5.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-6.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-6.bcmap
new file mode 100644
index 00000000..b77fb070
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-6.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-UCS2.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-UCS2.bcmap
new file mode 100644
index 00000000..69d79a2c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-CNS1-UCS2.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-0.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-0.bcmap
new file mode 100644
index 00000000..36101083
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-0.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-1.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-1.bcmap
new file mode 100644
index 00000000..707bb106
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-1.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-2.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-2.bcmap
new file mode 100644
index 00000000..f7648cc3
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-2.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-3.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-3.bcmap
new file mode 100644
index 00000000..85214589
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-3.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-4.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-4.bcmap
new file mode 100644
index 00000000..e40c63ab
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-4.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-5.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-5.bcmap
new file mode 100644
index 00000000..d7623b50
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-5.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-UCS2.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-UCS2.bcmap
new file mode 100644
index 00000000..75865259
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-GB1-UCS2.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-0.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-0.bcmap
new file mode 100644
index 00000000..f0e94ec1
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-0.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-1.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-1.bcmap
new file mode 100644
index 00000000..dad42c5a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-1.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-2.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-2.bcmap
new file mode 100644
index 00000000..090819a0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-2.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-3.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-3.bcmap
new file mode 100644
index 00000000..087dfc15
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-3.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-4.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-4.bcmap
new file mode 100644
index 00000000..46aa9bff
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-4.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-5.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-5.bcmap
new file mode 100644
index 00000000..5b4b65cc
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-5.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-6.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-6.bcmap
new file mode 100644
index 00000000..e77d699a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-6.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-UCS2.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-UCS2.bcmap
new file mode 100644
index 00000000..128a1410
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Japan1-UCS2.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-0.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-0.bcmap
new file mode 100644
index 00000000..cef1a998
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-0.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-1.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-1.bcmap
new file mode 100644
index 00000000..11ffa36d
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-1.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-2.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-2.bcmap
new file mode 100644
index 00000000..3172308c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-2.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-UCS2.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-UCS2.bcmap
new file mode 100644
index 00000000..f3371c0c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Adobe-Korea1-UCS2.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5-H.bcmap
new file mode 100644
index 00000000..beb4d228
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5-V.bcmap
new file mode 100644
index 00000000..2d4f87d5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5pc-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5pc-H.bcmap
new file mode 100644
index 00000000..ce001316
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5pc-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5pc-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5pc-V.bcmap
new file mode 100644
index 00000000..73b99ff2
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/B5pc-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS-EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS-EUC-H.bcmap
new file mode 100644
index 00000000..61d1d0cb
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS-EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS-EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS-EUC-V.bcmap
new file mode 100644
index 00000000..1a393a51
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS-EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS1-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS1-H.bcmap
new file mode 100644
index 00000000..f738e218
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS1-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS1-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS1-V.bcmap
new file mode 100644
index 00000000..9c3169f0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS1-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS2-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS2-H.bcmap
new file mode 100644
index 00000000..c89b3527
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS2-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS2-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS2-V.bcmap
new file mode 100644
index 00000000..7588cec8
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/CNS2-V.bcmap
@@ -0,0 +1,3 @@
+àRCopyright 1990-2009 Adobe Systems Incorporated.
+All rights reserved.
+See ./LICENSEáCNS2-H \ No newline at end of file
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETHK-B5-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETHK-B5-H.bcmap
new file mode 100644
index 00000000..cb29415d
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETHK-B5-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETHK-B5-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETHK-B5-V.bcmap
new file mode 100644
index 00000000..f09aec63
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETHK-B5-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETen-B5-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETen-B5-H.bcmap
new file mode 100644
index 00000000..c2d77462
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETen-B5-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETen-B5-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETen-B5-V.bcmap
new file mode 100644
index 00000000..89bff159
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETen-B5-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETenms-B5-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETenms-B5-H.bcmap
new file mode 100644
index 00000000..a7d69db5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETenms-B5-H.bcmap
@@ -0,0 +1,3 @@
+àRCopyright 1990-2009 Adobe Systems Incorporated.
+All rights reserved.
+See ./LICENSEá ETen-B5-H` ^ \ No newline at end of file
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETenms-B5-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETenms-B5-V.bcmap
new file mode 100644
index 00000000..adc5d618
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/ETenms-B5-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/EUC-H.bcmap
new file mode 100644
index 00000000..e92ea5b3
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/EUC-V.bcmap
new file mode 100644
index 00000000..7a7c1832
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-H.bcmap
new file mode 100644
index 00000000..3b5cde44
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-RKSJ-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-RKSJ-H.bcmap
new file mode 100644
index 00000000..ea4d2d97
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-RKSJ-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-RKSJ-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-RKSJ-V.bcmap
new file mode 100644
index 00000000..3457c277
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-RKSJ-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-V.bcmap
new file mode 100644
index 00000000..4999ca40
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Ext-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-EUC-H.bcmap
new file mode 100644
index 00000000..e39908b9
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-EUC-V.bcmap
new file mode 100644
index 00000000..d5be5446
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-H.bcmap
new file mode 100644
index 00000000..39189c54
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-H.bcmap
@@ -0,0 +1,4 @@
+àRCopyright 1990-2009 Adobe Systems Incorporated.
+All rights reserved.
+See ./LICENSE!!º]aX!!]`21> p z$]‚"R‚d-Uƒ7*„ 4„%+ „Z „{/…%…<9K…b1]†."‡ ‰`]‡,"]ˆ
+"]ˆh"]‰F"]Š$"]‹"]‹`"]Œ>"]"]z"]ŽX"]6"]"]r"]‘P"]’."]“ "]“j"]”H"]•&"]–"]–b"]—@"]˜"]˜|"]™Z"]š8"]›"]›t"]œR"]0"]ž"]žl"]ŸJ"] ("]¡"]¡d"]¢B"]£ "X£~']¤W"]¥5"]¦"]¦q"]§O"]¨-"]© "]©i"]ªG"]«%"]¬"]¬a"]­?"]®"]®{"]¯Y"]°7"]±"]±s"]²Q"]³/"]´ "]´k"]µI"]¶'"]·"]·c"]¸A"]¹"]¹}"]º["]»9 \ No newline at end of file
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-V.bcmap
new file mode 100644
index 00000000..31083451
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GB-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK-EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK-EUC-H.bcmap
new file mode 100644
index 00000000..05fff7e8
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK-EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK-EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK-EUC-V.bcmap
new file mode 100644
index 00000000..0cdf6bed
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK-EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK2K-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK2K-H.bcmap
new file mode 100644
index 00000000..46f6ba59
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK2K-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK2K-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK2K-V.bcmap
new file mode 100644
index 00000000..d9a94798
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBK2K-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBKp-EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBKp-EUC-H.bcmap
new file mode 100644
index 00000000..5cb0af68
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBKp-EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBKp-EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBKp-EUC-V.bcmap
new file mode 100644
index 00000000..bca93b8e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBKp-EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-EUC-H.bcmap
new file mode 100644
index 00000000..4b4e2d32
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-EUC-V.bcmap
new file mode 100644
index 00000000..38f70669
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-H.bcmap
new file mode 100644
index 00000000..8437ac33
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-V.bcmap
new file mode 100644
index 00000000..697ab4a8
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBT-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBTpc-EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBTpc-EUC-H.bcmap
new file mode 100644
index 00000000..f6e50e89
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBTpc-EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBTpc-EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBTpc-EUC-V.bcmap
new file mode 100644
index 00000000..6c0d71a2
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBTpc-EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBpc-EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBpc-EUC-H.bcmap
new file mode 100644
index 00000000..c9edf67c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBpc-EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBpc-EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBpc-EUC-V.bcmap
new file mode 100644
index 00000000..31450c97
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/GBpc-EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/H.bcmap
new file mode 100644
index 00000000..7b24ea46
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdla-B5-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdla-B5-H.bcmap
new file mode 100644
index 00000000..7d30c050
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdla-B5-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdla-B5-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdla-B5-V.bcmap
new file mode 100644
index 00000000..78946940
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdla-B5-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdlb-B5-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdlb-B5-H.bcmap
new file mode 100644
index 00000000..d829a231
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdlb-B5-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdlb-B5-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdlb-B5-V.bcmap
new file mode 100644
index 00000000..2b572b50
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKdlb-B5-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKgccs-B5-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKgccs-B5-H.bcmap
new file mode 100644
index 00000000..971a4f23
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKgccs-B5-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKgccs-B5-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKgccs-B5-V.bcmap
new file mode 100644
index 00000000..d353ca25
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKgccs-B5-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm314-B5-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm314-B5-H.bcmap
new file mode 100644
index 00000000..576dc011
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm314-B5-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm314-B5-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm314-B5-V.bcmap
new file mode 100644
index 00000000..0e96d0e2
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm314-B5-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm471-B5-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm471-B5-H.bcmap
new file mode 100644
index 00000000..11d170c7
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm471-B5-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm471-B5-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm471-B5-V.bcmap
new file mode 100644
index 00000000..54959bf9
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKm471-B5-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKscs-B5-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKscs-B5-H.bcmap
new file mode 100644
index 00000000..6ef7857a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKscs-B5-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKscs-B5-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKscs-B5-V.bcmap
new file mode 100644
index 00000000..1fb2fa2a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/HKscs-B5-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Hankaku.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Hankaku.bcmap
new file mode 100644
index 00000000..4b8ec7fc
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Hankaku.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Hiragana.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Hiragana.bcmap
new file mode 100644
index 00000000..17e983e7
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Hiragana.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-EUC-H.bcmap
new file mode 100644
index 00000000..a45c65f0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-EUC-V.bcmap
new file mode 100644
index 00000000..0e7b21f0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-H.bcmap
new file mode 100644
index 00000000..b9b22b67
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-Johab-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-Johab-H.bcmap
new file mode 100644
index 00000000..2531ffcf
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-Johab-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-Johab-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-Johab-V.bcmap
new file mode 100644
index 00000000..367ceb22
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-Johab-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-V.bcmap
new file mode 100644
index 00000000..6ae2f0b6
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-H.bcmap
new file mode 100644
index 00000000..a8d4240e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-HW-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-HW-H.bcmap
new file mode 100644
index 00000000..8b4ae18f
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-HW-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-HW-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-HW-V.bcmap
new file mode 100644
index 00000000..b655dbcf
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-HW-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-V.bcmap
new file mode 100644
index 00000000..21f97f65
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCms-UHC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCpc-EUC-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCpc-EUC-H.bcmap
new file mode 100644
index 00000000..e06f361e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCpc-EUC-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCpc-EUC-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCpc-EUC-V.bcmap
new file mode 100644
index 00000000..f3c9113f
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/KSCpc-EUC-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Katakana.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Katakana.bcmap
new file mode 100644
index 00000000..524303c4
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Katakana.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/LICENSE b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/LICENSE
new file mode 100644
index 00000000..b1ad168a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/LICENSE
@@ -0,0 +1,36 @@
+%%Copyright: -----------------------------------------------------------
+%%Copyright: Copyright 1990-2009 Adobe Systems Incorporated.
+%%Copyright: All rights reserved.
+%%Copyright:
+%%Copyright: Redistribution and use in source and binary forms, with or
+%%Copyright: without modification, are permitted provided that the
+%%Copyright: following conditions are met:
+%%Copyright:
+%%Copyright: Redistributions of source code must retain the above
+%%Copyright: copyright notice, this list of conditions and the following
+%%Copyright: disclaimer.
+%%Copyright:
+%%Copyright: Redistributions in binary form must reproduce the above
+%%Copyright: copyright notice, this list of conditions and the following
+%%Copyright: disclaimer in the documentation and/or other materials
+%%Copyright: provided with the distribution.
+%%Copyright:
+%%Copyright: Neither the name of Adobe Systems Incorporated nor the names
+%%Copyright: of its contributors may be used to endorse or promote
+%%Copyright: products derived from this software without specific prior
+%%Copyright: written permission.
+%%Copyright:
+%%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+%%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+%%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+%%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+%%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+%%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+%%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+%%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+%%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+%%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+%%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+%%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+%%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+%%Copyright: -----------------------------------------------------------
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/NWP-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/NWP-H.bcmap
new file mode 100644
index 00000000..afc5e4b0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/NWP-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/NWP-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/NWP-V.bcmap
new file mode 100644
index 00000000..bb5785e3
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/NWP-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/RKSJ-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/RKSJ-H.bcmap
new file mode 100644
index 00000000..fb8d298e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/RKSJ-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/RKSJ-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/RKSJ-V.bcmap
new file mode 100644
index 00000000..a2555a6c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/RKSJ-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Roman.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Roman.bcmap
new file mode 100644
index 00000000..f896dcf1
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/Roman.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UCS2-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UCS2-H.bcmap
new file mode 100644
index 00000000..d5db27c5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UCS2-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UCS2-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UCS2-V.bcmap
new file mode 100644
index 00000000..1dc9b7a2
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UCS2-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF16-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF16-H.bcmap
new file mode 100644
index 00000000..961afefb
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF16-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF16-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF16-V.bcmap
new file mode 100644
index 00000000..df0cffe8
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF16-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF32-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF32-H.bcmap
new file mode 100644
index 00000000..1ab18a14
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF32-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF32-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF32-V.bcmap
new file mode 100644
index 00000000..ad14662e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF32-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF8-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF8-H.bcmap
new file mode 100644
index 00000000..83c6bd7c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF8-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF8-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF8-V.bcmap
new file mode 100644
index 00000000..22a27e4d
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniCNS-UTF8-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UCS2-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UCS2-H.bcmap
new file mode 100644
index 00000000..5bd6228c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UCS2-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UCS2-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UCS2-V.bcmap
new file mode 100644
index 00000000..53c534b7
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UCS2-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF16-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF16-H.bcmap
new file mode 100644
index 00000000..b95045b4
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF16-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF16-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF16-V.bcmap
new file mode 100644
index 00000000..51f023e0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF16-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF32-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF32-H.bcmap
new file mode 100644
index 00000000..f0dbd14f
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF32-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF32-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF32-V.bcmap
new file mode 100644
index 00000000..ce9c30a9
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF32-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF8-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF8-H.bcmap
new file mode 100644
index 00000000..982ca462
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF8-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF8-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF8-V.bcmap
new file mode 100644
index 00000000..f78020dd
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniGB-UTF8-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-H.bcmap
new file mode 100644
index 00000000..7daf56af
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-HW-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-HW-H.bcmap
new file mode 100644
index 00000000..ac9975c5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-HW-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-HW-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-HW-V.bcmap
new file mode 100644
index 00000000..3da0a1c6
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-HW-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-V.bcmap
new file mode 100644
index 00000000..c50b9ddf
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UCS2-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF16-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF16-H.bcmap
new file mode 100644
index 00000000..67613446
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF16-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF16-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF16-V.bcmap
new file mode 100644
index 00000000..70bf90c0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF16-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF32-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF32-H.bcmap
new file mode 100644
index 00000000..7a83d53a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF32-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF32-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF32-V.bcmap
new file mode 100644
index 00000000..7a871353
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF32-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF8-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF8-H.bcmap
new file mode 100644
index 00000000..9f0334ca
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF8-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF8-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF8-V.bcmap
new file mode 100644
index 00000000..808a94f0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS-UTF8-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF16-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF16-H.bcmap
new file mode 100644
index 00000000..d768bf81
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF16-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF16-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF16-V.bcmap
new file mode 100644
index 00000000..3d5bf6fb
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF16-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF32-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF32-H.bcmap
new file mode 100644
index 00000000..09eee10d
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF32-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF32-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF32-V.bcmap
new file mode 100644
index 00000000..6c546001
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF32-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF8-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF8-H.bcmap
new file mode 100644
index 00000000..1b1a64f5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF8-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF8-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF8-V.bcmap
new file mode 100644
index 00000000..994aa9ef
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJIS2004-UTF8-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UCS2-HW-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UCS2-HW-V.bcmap
new file mode 100644
index 00000000..643f921b
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UCS2-HW-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UCS2-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UCS2-V.bcmap
new file mode 100644
index 00000000..c148f67f
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UCS2-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UTF8-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UTF8-V.bcmap
new file mode 100644
index 00000000..1849d809
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISPro-UTF8-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX0213-UTF32-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX0213-UTF32-H.bcmap
new file mode 100644
index 00000000..a83a677c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX0213-UTF32-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX0213-UTF32-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX0213-UTF32-V.bcmap
new file mode 100644
index 00000000..f527248a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX0213-UTF32-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX02132004-UTF32-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX02132004-UTF32-H.bcmap
new file mode 100644
index 00000000..e1a988dc
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX02132004-UTF32-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX02132004-UTF32-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX02132004-UTF32-V.bcmap
new file mode 100644
index 00000000..47e054a9
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniJISX02132004-UTF32-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UCS2-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UCS2-H.bcmap
new file mode 100644
index 00000000..b5b94852
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UCS2-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UCS2-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UCS2-V.bcmap
new file mode 100644
index 00000000..026adcaa
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UCS2-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF16-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF16-H.bcmap
new file mode 100644
index 00000000..fd4e66e8
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF16-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF16-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF16-V.bcmap
new file mode 100644
index 00000000..075efb70
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF16-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF32-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF32-H.bcmap
new file mode 100644
index 00000000..769d2142
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF32-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF32-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF32-V.bcmap
new file mode 100644
index 00000000..bdab208b
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF32-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF8-H.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF8-H.bcmap
new file mode 100644
index 00000000..6ff8674a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF8-H.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF8-V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF8-V.bcmap
new file mode 100644
index 00000000..8dfa76a5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/UniKS-UTF8-V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/V.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/V.bcmap
new file mode 100644
index 00000000..fdec9906
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/V.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/WP-Symbol.bcmap b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/WP-Symbol.bcmap
new file mode 100644
index 00000000..46729bbf
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/cmaps/WP-Symbol.bcmap
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/compatibility.js b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/compatibility.js
new file mode 100644
index 00000000..00429dde
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/compatibility.js
@@ -0,0 +1,574 @@
+/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
+/* Copyright 2012 Mozilla Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* globals VBArray, PDFJS */
+
+'use strict';
+
+// Initializing PDFJS global object here, it case if we need to change/disable
+// some PDF.js features, e.g. range requests
+if (typeof PDFJS === 'undefined') {
+ (typeof window !== 'undefined' ? window : this).PDFJS = {};
+}
+
+// Checking if the typed arrays are supported
+// Support: iOS<6.0 (subarray), IE<10, Android<4.0
+(function checkTypedArrayCompatibility() {
+ if (typeof Uint8Array !== 'undefined') {
+ // Support: iOS<6.0
+ if (typeof Uint8Array.prototype.subarray === 'undefined') {
+ Uint8Array.prototype.subarray = function subarray(start, end) {
+ return new Uint8Array(this.slice(start, end));
+ };
+ Float32Array.prototype.subarray = function subarray(start, end) {
+ return new Float32Array(this.slice(start, end));
+ };
+ }
+
+ // Support: Android<4.1
+ if (typeof Float64Array === 'undefined') {
+ window.Float64Array = Float32Array;
+ }
+ return;
+ }
+
+ function subarray(start, end) {
+ return new TypedArray(this.slice(start, end));
+ }
+
+ function setArrayOffset(array, offset) {
+ if (arguments.length < 2) {
+ offset = 0;
+ }
+ for (var i = 0, n = array.length; i < n; ++i, ++offset) {
+ this[offset] = array[i] & 0xFF;
+ }
+ }
+
+ function TypedArray(arg1) {
+ var result, i, n;
+ if (typeof arg1 === 'number') {
+ result = [];
+ for (i = 0; i < arg1; ++i) {
+ result[i] = 0;
+ }
+ } else if ('slice' in arg1) {
+ result = arg1.slice(0);
+ } else {
+ result = [];
+ for (i = 0, n = arg1.length; i < n; ++i) {
+ result[i] = arg1[i];
+ }
+ }
+
+ result.subarray = subarray;
+ result.buffer = result;
+ result.byteLength = result.length;
+ result.set = setArrayOffset;
+
+ if (typeof arg1 === 'object' && arg1.buffer) {
+ result.buffer = arg1.buffer;
+ }
+ return result;
+ }
+
+ window.Uint8Array = TypedArray;
+ window.Int8Array = TypedArray;
+
+ // we don't need support for set, byteLength for 32-bit array
+ // so we can use the TypedArray as well
+ window.Uint32Array = TypedArray;
+ window.Int32Array = TypedArray;
+ window.Uint16Array = TypedArray;
+ window.Float32Array = TypedArray;
+ window.Float64Array = TypedArray;
+})();
+
+// URL = URL || webkitURL
+// Support: Safari<7, Android 4.2+
+(function normalizeURLObject() {
+ if (!window.URL) {
+ window.URL = window.webkitURL;
+ }
+})();
+
+// Object.defineProperty()?
+// Support: Android<4.0, Safari<5.1
+(function checkObjectDefinePropertyCompatibility() {
+ if (typeof Object.defineProperty !== 'undefined') {
+ var definePropertyPossible = true;
+ try {
+ // some browsers (e.g. safari) cannot use defineProperty() on DOM objects
+ // and thus the native version is not sufficient
+ Object.defineProperty(new Image(), 'id', { value: 'test' });
+ // ... another test for android gb browser for non-DOM objects
+ var Test = function Test() {};
+ Test.prototype = { get id() { } };
+ Object.defineProperty(new Test(), 'id',
+ { value: '', configurable: true, enumerable: true, writable: false });
+ } catch (e) {
+ definePropertyPossible = false;
+ }
+ if (definePropertyPossible) {
+ return;
+ }
+ }
+
+ Object.defineProperty = function objectDefineProperty(obj, name, def) {
+ delete obj[name];
+ if ('get' in def) {
+ obj.__defineGetter__(name, def['get']);
+ }
+ if ('set' in def) {
+ obj.__defineSetter__(name, def['set']);
+ }
+ if ('value' in def) {
+ obj.__defineSetter__(name, function objectDefinePropertySetter(value) {
+ this.__defineGetter__(name, function objectDefinePropertyGetter() {
+ return value;
+ });
+ return value;
+ });
+ obj[name] = def.value;
+ }
+ };
+})();
+
+
+// No XMLHttpRequest#response?
+// Support: IE<11, Android <4.0
+(function checkXMLHttpRequestResponseCompatibility() {
+ var xhrPrototype = XMLHttpRequest.prototype;
+ var xhr = new XMLHttpRequest();
+ if (!('overrideMimeType' in xhr)) {
+ // IE10 might have response, but not overrideMimeType
+ // Support: IE10
+ Object.defineProperty(xhrPrototype, 'overrideMimeType', {
+ value: function xmlHttpRequestOverrideMimeType(mimeType) {}
+ });
+ }
+ if ('responseType' in xhr) {
+ return;
+ }
+
+ // The worker will be using XHR, so we can save time and disable worker.
+ PDFJS.disableWorker = true;
+
+ Object.defineProperty(xhrPrototype, 'responseType', {
+ get: function xmlHttpRequestGetResponseType() {
+ return this._responseType || 'text';
+ },
+ set: function xmlHttpRequestSetResponseType(value) {
+ if (value === 'text' || value === 'arraybuffer') {
+ this._responseType = value;
+ if (value === 'arraybuffer' &&
+ typeof this.overrideMimeType === 'function') {
+ this.overrideMimeType('text/plain; charset=x-user-defined');
+ }
+ }
+ }
+ });
+
+ // Support: IE9
+ if (typeof VBArray !== 'undefined') {
+ Object.defineProperty(xhrPrototype, 'response', {
+ get: function xmlHttpRequestResponseGet() {
+ if (this.responseType === 'arraybuffer') {
+ return new Uint8Array(new VBArray(this.responseBody).toArray());
+ } else {
+ return this.responseText;
+ }
+ }
+ });
+ return;
+ }
+
+ Object.defineProperty(xhrPrototype, 'response', {
+ get: function xmlHttpRequestResponseGet() {
+ if (this.responseType !== 'arraybuffer') {
+ return this.responseText;
+ }
+ var text = this.responseText;
+ var i, n = text.length;
+ var result = new Uint8Array(n);
+ for (i = 0; i < n; ++i) {
+ result[i] = text.charCodeAt(i) & 0xFF;
+ }
+ return result.buffer;
+ }
+ });
+})();
+
+// window.btoa (base64 encode function) ?
+// Support: IE<10
+(function checkWindowBtoaCompatibility() {
+ if ('btoa' in window) {
+ return;
+ }
+
+ var digits =
+ 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
+
+ window.btoa = function windowBtoa(chars) {
+ var buffer = '';
+ var i, n;
+ for (i = 0, n = chars.length; i < n; i += 3) {
+ var b1 = chars.charCodeAt(i) & 0xFF;
+ var b2 = chars.charCodeAt(i + 1) & 0xFF;
+ var b3 = chars.charCodeAt(i + 2) & 0xFF;
+ var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
+ var d3 = i + 1 < n ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
+ var d4 = i + 2 < n ? (b3 & 0x3F) : 64;
+ buffer += (digits.charAt(d1) + digits.charAt(d2) +
+ digits.charAt(d3) + digits.charAt(d4));
+ }
+ return buffer;
+ };
+})();
+
+// window.atob (base64 encode function)?
+// Support: IE<10
+(function checkWindowAtobCompatibility() {
+ if ('atob' in window) {
+ return;
+ }
+
+ // https://github.com/davidchambers/Base64.js
+ var digits =
+ 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
+ window.atob = function (input) {
+ input = input.replace(/=+$/, '');
+ if (input.length % 4 === 1) {
+ throw new Error('bad atob input');
+ }
+ for (
+ // initialize result and counters
+ var bc = 0, bs, buffer, idx = 0, output = '';
+ // get next character
+ buffer = input.charAt(idx++);
+ // character found in table?
+ // initialize bit storage and add its ascii value
+ ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,
+ // and if not first of each 4 characters,
+ // convert the first 8 bits to one ascii character
+ bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0
+ ) {
+ // try to find character in table (0-63, not found => -1)
+ buffer = digits.indexOf(buffer);
+ }
+ return output;
+ };
+})();
+
+// Function.prototype.bind?
+// Support: Android<4.0, iOS<6.0
+(function checkFunctionPrototypeBindCompatibility() {
+ if (typeof Function.prototype.bind !== 'undefined') {
+ return;
+ }
+
+ Function.prototype.bind = function functionPrototypeBind(obj) {
+ var fn = this, headArgs = Array.prototype.slice.call(arguments, 1);
+ var bound = function functionPrototypeBindBound() {
+ var args = headArgs.concat(Array.prototype.slice.call(arguments));
+ return fn.apply(obj, args);
+ };
+ return bound;
+ };
+})();
+
+// HTMLElement dataset property
+// Support: IE<11, Safari<5.1, Android<4.0
+(function checkDatasetProperty() {
+ var div = document.createElement('div');
+ if ('dataset' in div) {
+ return; // dataset property exists
+ }
+
+ Object.defineProperty(HTMLElement.prototype, 'dataset', {
+ get: function() {
+ if (this._dataset) {
+ return this._dataset;
+ }
+
+ var dataset = {};
+ for (var j = 0, jj = this.attributes.length; j < jj; j++) {
+ var attribute = this.attributes[j];
+ if (attribute.name.substring(0, 5) !== 'data-') {
+ continue;
+ }
+ var key = attribute.name.substring(5).replace(/\-([a-z])/g,
+ function(all, ch) {
+ return ch.toUpperCase();
+ });
+ dataset[key] = attribute.value;
+ }
+
+ Object.defineProperty(this, '_dataset', {
+ value: dataset,
+ writable: false,
+ enumerable: false
+ });
+ return dataset;
+ },
+ enumerable: true
+ });
+})();
+
+// HTMLElement classList property
+// Support: IE<10, Android<4.0, iOS<5.0
+(function checkClassListProperty() {
+ var div = document.createElement('div');
+ if ('classList' in div) {
+ return; // classList property exists
+ }
+
+ function changeList(element, itemName, add, remove) {
+ var s = element.className || '';
+ var list = s.split(/\s+/g);
+ if (list[0] === '') {
+ list.shift();
+ }
+ var index = list.indexOf(itemName);
+ if (index < 0 && add) {
+ list.push(itemName);
+ }
+ if (index >= 0 && remove) {
+ list.splice(index, 1);
+ }
+ element.className = list.join(' ');
+ return (index >= 0);
+ }
+
+ var classListPrototype = {
+ add: function(name) {
+ changeList(this.element, name, true, false);
+ },
+ contains: function(name) {
+ return changeList(this.element, name, false, false);
+ },
+ remove: function(name) {
+ changeList(this.element, name, false, true);
+ },
+ toggle: function(name) {
+ changeList(this.element, name, true, true);
+ }
+ };
+
+ Object.defineProperty(HTMLElement.prototype, 'classList', {
+ get: function() {
+ if (this._classList) {
+ return this._classList;
+ }
+
+ var classList = Object.create(classListPrototype, {
+ element: {
+ value: this,
+ writable: false,
+ enumerable: true
+ }
+ });
+ Object.defineProperty(this, '_classList', {
+ value: classList,
+ writable: false,
+ enumerable: false
+ });
+ return classList;
+ },
+ enumerable: true
+ });
+})();
+
+// Check console compatibility
+// In older IE versions the console object is not available
+// unless console is open.
+// Support: IE<10
+(function checkConsoleCompatibility() {
+ if (!('console' in window)) {
+ window.console = {
+ log: function() {},
+ error: function() {},
+ warn: function() {}
+ };
+ } else if (!('bind' in console.log)) {
+ // native functions in IE9 might not have bind
+ console.log = (function(fn) {
+ return function(msg) { return fn(msg); };
+ })(console.log);
+ console.error = (function(fn) {
+ return function(msg) { return fn(msg); };
+ })(console.error);
+ console.warn = (function(fn) {
+ return function(msg) { return fn(msg); };
+ })(console.warn);
+ }
+})();
+
+// Check onclick compatibility in Opera
+// Support: Opera<15
+(function checkOnClickCompatibility() {
+ // workaround for reported Opera bug DSK-354448:
+ // onclick fires on disabled buttons with opaque content
+ function ignoreIfTargetDisabled(event) {
+ if (isDisabled(event.target)) {
+ event.stopPropagation();
+ }
+ }
+ function isDisabled(node) {
+ return node.disabled || (node.parentNode && isDisabled(node.parentNode));
+ }
+ if (navigator.userAgent.indexOf('Opera') !== -1) {
+ // use browser detection since we cannot feature-check this bug
+ document.addEventListener('click', ignoreIfTargetDisabled, true);
+ }
+})();
+
+// Checks if possible to use URL.createObjectURL()
+// Support: IE
+(function checkOnBlobSupport() {
+ // sometimes IE loosing the data created with createObjectURL(), see #3977
+ if (navigator.userAgent.indexOf('Trident') >= 0) {
+ PDFJS.disableCreateObjectURL = true;
+ }
+})();
+
+// Checks if navigator.language is supported
+(function checkNavigatorLanguage() {
+ if ('language' in navigator) {
+ return;
+ }
+ PDFJS.locale = navigator.userLanguage || 'en-US';
+})();
+
+(function checkRangeRequests() {
+ // Safari has issues with cached range requests see:
+ // https://github.com/mozilla/pdf.js/issues/3260
+ // Last tested with version 6.0.4.
+ // Support: Safari 6.0+
+ var isSafari = Object.prototype.toString.call(
+ window.HTMLElement).indexOf('Constructor') > 0;
+
+ // Older versions of Android (pre 3.0) has issues with range requests, see:
+ // https://github.com/mozilla/pdf.js/issues/3381.
+ // Make sure that we only match webkit-based Android browsers,
+ // since Firefox/Fennec works as expected.
+ // Support: Android<3.0
+ var regex = /Android\s[0-2][^\d]/;
+ var isOldAndroid = regex.test(navigator.userAgent);
+
+ if (isSafari || isOldAndroid) {
+ PDFJS.disableRange = true;
+ PDFJS.disableStream = true;
+ }
+})();
+
+// Check if the browser supports manipulation of the history.
+// Support: IE<10, Android<4.2
+(function checkHistoryManipulation() {
+ // Android 2.x has so buggy pushState support that it was removed in
+ // Android 3.0 and restored as late as in Android 4.2.
+ // Support: Android 2.x
+ if (!history.pushState || navigator.userAgent.indexOf('Android 2.') >= 0) {
+ PDFJS.disableHistory = true;
+ }
+})();
+
+// Support: IE<11, Chrome<21, Android<4.4, Safari<6
+(function checkSetPresenceInImageData() {
+ // IE < 11 will use window.CanvasPixelArray which lacks set function.
+ if (window.CanvasPixelArray) {
+ if (typeof window.CanvasPixelArray.prototype.set !== 'function') {
+ window.CanvasPixelArray.prototype.set = function(arr) {
+ for (var i = 0, ii = this.length; i < ii; i++) {
+ this[i] = arr[i];
+ }
+ };
+ }
+ } else {
+ // Old Chrome and Android use an inaccessible CanvasPixelArray prototype.
+ // Because we cannot feature detect it, we rely on user agent parsing.
+ var polyfill = false, versionMatch;
+ if (navigator.userAgent.indexOf('Chrom') >= 0) {
+ versionMatch = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
+ // Chrome < 21 lacks the set function.
+ polyfill = versionMatch && parseInt(versionMatch[2]) < 21;
+ } else if (navigator.userAgent.indexOf('Android') >= 0) {
+ // Android < 4.4 lacks the set function.
+ // Android >= 4.4 will contain Chrome in the user agent,
+ // thus pass the Chrome check above and not reach this block.
+ polyfill = /Android\s[0-4][^\d]/g.test(navigator.userAgent);
+ } else if (navigator.userAgent.indexOf('Safari') >= 0) {
+ versionMatch = navigator.userAgent.
+ match(/Version\/([0-9]+)\.([0-9]+)\.([0-9]+) Safari\//);
+ // Safari < 6 lacks the set function.
+ polyfill = versionMatch && parseInt(versionMatch[1]) < 6;
+ }
+
+ if (polyfill) {
+ var contextPrototype = window.CanvasRenderingContext2D.prototype;
+ contextPrototype._createImageData = contextPrototype.createImageData;
+ contextPrototype.createImageData = function(w, h) {
+ var imageData = this._createImageData(w, h);
+ imageData.data.set = function(arr) {
+ for (var i = 0, ii = this.length; i < ii; i++) {
+ this[i] = arr[i];
+ }
+ };
+ return imageData;
+ };
+ }
+ }
+})();
+
+// Support: IE<10, Android<4.0, iOS
+(function checkRequestAnimationFrame() {
+ function fakeRequestAnimationFrame(callback) {
+ window.setTimeout(callback, 20);
+ }
+
+ var isIOS = /(iPad|iPhone|iPod)/g.test(navigator.userAgent);
+ if (isIOS) {
+ // requestAnimationFrame on iOS is broken, replacing with fake one.
+ window.requestAnimationFrame = fakeRequestAnimationFrame;
+ return;
+ }
+ if ('requestAnimationFrame' in window) {
+ return;
+ }
+ window.requestAnimationFrame =
+ window.mozRequestAnimationFrame ||
+ window.webkitRequestAnimationFrame ||
+ fakeRequestAnimationFrame;
+})();
+
+(function checkCanvasSizeLimitation() {
+ var isIOS = /(iPad|iPhone|iPod)/g.test(navigator.userAgent);
+ var isAndroid = /Android/g.test(navigator.userAgent);
+ if (isIOS || isAndroid) {
+ // 5MP
+ PDFJS.maxCanvasPixels = 5242880;
+ }
+})();
+
+// Disable fullscreen support for certain problematic configurations.
+// Support: IE11+ (when embedded).
+(function checkFullscreenSupport() {
+ var isEmbeddedIE = (navigator.userAgent.indexOf('Trident') >= 0 &&
+ window.parent !== window);
+ if (isEmbeddedIE) {
+ PDFJS.disableFullscreen = true;
+ }
+})();
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/compressed.tracemonkey-pldi-09.pdf b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/compressed.tracemonkey-pldi-09.pdf
new file mode 100644
index 00000000..65570184
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/compressed.tracemonkey-pldi-09.pdf
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/debugger.js b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/debugger.js
new file mode 100644
index 00000000..046fd34a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/debugger.js
@@ -0,0 +1,620 @@
+/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
+/* Copyright 2012 Mozilla Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* globals PDFJS */
+
+'use strict';
+
+var FontInspector = (function FontInspectorClosure() {
+ var fonts;
+ var active = false;
+ var fontAttribute = 'data-font-name';
+ function removeSelection() {
+ var divs = document.querySelectorAll('div[' + fontAttribute + ']');
+ for (var i = 0, ii = divs.length; i < ii; ++i) {
+ var div = divs[i];
+ div.className = '';
+ }
+ }
+ function resetSelection() {
+ var divs = document.querySelectorAll('div[' + fontAttribute + ']');
+ for (var i = 0, ii = divs.length; i < ii; ++i) {
+ var div = divs[i];
+ div.className = 'debuggerHideText';
+ }
+ }
+ function selectFont(fontName, show) {
+ var divs = document.querySelectorAll('div[' + fontAttribute + '=' +
+ fontName + ']');
+ for (var i = 0, ii = divs.length; i < ii; ++i) {
+ var div = divs[i];
+ div.className = show ? 'debuggerShowText' : 'debuggerHideText';
+ }
+ }
+ function textLayerClick(e) {
+ if (!e.target.dataset.fontName ||
+ e.target.tagName.toUpperCase() !== 'DIV') {
+ return;
+ }
+ var fontName = e.target.dataset.fontName;
+ var selects = document.getElementsByTagName('input');
+ for (var i = 0; i < selects.length; ++i) {
+ var select = selects[i];
+ if (select.dataset.fontName !== fontName) {
+ continue;
+ }
+ select.checked = !select.checked;
+ selectFont(fontName, select.checked);
+ select.scrollIntoView();
+ }
+ }
+ return {
+ // Properties/functions needed by PDFBug.
+ id: 'FontInspector',
+ name: 'Font Inspector',
+ panel: null,
+ manager: null,
+ init: function init() {
+ var panel = this.panel;
+ panel.setAttribute('style', 'padding: 5px;');
+ var tmp = document.createElement('button');
+ tmp.addEventListener('click', resetSelection);
+ tmp.textContent = 'Refresh';
+ panel.appendChild(tmp);
+
+ fonts = document.createElement('div');
+ panel.appendChild(fonts);
+ },
+ cleanup: function cleanup() {
+ fonts.textContent = '';
+ },
+ enabled: false,
+ get active() {
+ return active;
+ },
+ set active(value) {
+ active = value;
+ if (active) {
+ document.body.addEventListener('click', textLayerClick, true);
+ resetSelection();
+ } else {
+ document.body.removeEventListener('click', textLayerClick, true);
+ removeSelection();
+ }
+ },
+ // FontInspector specific functions.
+ fontAdded: function fontAdded(fontObj, url) {
+ function properties(obj, list) {
+ var moreInfo = document.createElement('table');
+ for (var i = 0; i < list.length; i++) {
+ var tr = document.createElement('tr');
+ var td1 = document.createElement('td');
+ td1.textContent = list[i];
+ tr.appendChild(td1);
+ var td2 = document.createElement('td');
+ td2.textContent = obj[list[i]].toString();
+ tr.appendChild(td2);
+ moreInfo.appendChild(tr);
+ }
+ return moreInfo;
+ }
+ var moreInfo = properties(fontObj, ['name', 'type']);
+ var fontName = fontObj.loadedName;
+ var font = document.createElement('div');
+ var name = document.createElement('span');
+ name.textContent = fontName;
+ var download = document.createElement('a');
+ if (url) {
+ url = /url\(['"]?([^\)"']+)/.exec(url);
+ download.href = url[1];
+ } else if (fontObj.data) {
+ url = URL.createObjectURL(new Blob([fontObj.data], {
+ type: fontObj.mimeType
+ }));
+ download.href = url;
+ }
+ download.textContent = 'Download';
+ var logIt = document.createElement('a');
+ logIt.href = '';
+ logIt.textContent = 'Log';
+ logIt.addEventListener('click', function(event) {
+ event.preventDefault();
+ console.log(fontObj);
+ });
+ var select = document.createElement('input');
+ select.setAttribute('type', 'checkbox');
+ select.dataset.fontName = fontName;
+ select.addEventListener('click', (function(select, fontName) {
+ return (function() {
+ selectFont(fontName, select.checked);
+ });
+ })(select, fontName));
+ font.appendChild(select);
+ font.appendChild(name);
+ font.appendChild(document.createTextNode(' '));
+ font.appendChild(download);
+ font.appendChild(document.createTextNode(' '));
+ font.appendChild(logIt);
+ font.appendChild(moreInfo);
+ fonts.appendChild(font);
+ // Somewhat of a hack, should probably add a hook for when the text layer
+ // is done rendering.
+ setTimeout(function() {
+ if (this.active) {
+ resetSelection();
+ }
+ }.bind(this), 2000);
+ }
+ };
+})();
+
+// Manages all the page steppers.
+var StepperManager = (function StepperManagerClosure() {
+ var steppers = [];
+ var stepperDiv = null;
+ var stepperControls = null;
+ var stepperChooser = null;
+ var breakPoints = {};
+ return {
+ // Properties/functions needed by PDFBug.
+ id: 'Stepper',
+ name: 'Stepper',
+ panel: null,
+ manager: null,
+ init: function init() {
+ var self = this;
+ this.panel.setAttribute('style', 'padding: 5px;');
+ stepperControls = document.createElement('div');
+ stepperChooser = document.createElement('select');
+ stepperChooser.addEventListener('change', function(event) {
+ self.selectStepper(this.value);
+ });
+ stepperControls.appendChild(stepperChooser);
+ stepperDiv = document.createElement('div');
+ this.panel.appendChild(stepperControls);
+ this.panel.appendChild(stepperDiv);
+ if (sessionStorage.getItem('pdfjsBreakPoints')) {
+ breakPoints = JSON.parse(sessionStorage.getItem('pdfjsBreakPoints'));
+ }
+ },
+ cleanup: function cleanup() {
+ stepperChooser.textContent = '';
+ stepperDiv.textContent = '';
+ steppers = [];
+ },
+ enabled: false,
+ active: false,
+ // Stepper specific functions.
+ create: function create(pageIndex) {
+ var debug = document.createElement('div');
+ debug.id = 'stepper' + pageIndex;
+ debug.setAttribute('hidden', true);
+ debug.className = 'stepper';
+ stepperDiv.appendChild(debug);
+ var b = document.createElement('option');
+ b.textContent = 'Page ' + (pageIndex + 1);
+ b.value = pageIndex;
+ stepperChooser.appendChild(b);
+ var initBreakPoints = breakPoints[pageIndex] || [];
+ var stepper = new Stepper(debug, pageIndex, initBreakPoints);
+ steppers.push(stepper);
+ if (steppers.length === 1) {
+ this.selectStepper(pageIndex, false);
+ }
+ return stepper;
+ },
+ selectStepper: function selectStepper(pageIndex, selectPanel) {
+ var i;
+ pageIndex = pageIndex | 0;
+ if (selectPanel) {
+ this.manager.selectPanel(this);
+ }
+ for (i = 0; i < steppers.length; ++i) {
+ var stepper = steppers[i];
+ if (stepper.pageIndex === pageIndex) {
+ stepper.panel.removeAttribute('hidden');
+ } else {
+ stepper.panel.setAttribute('hidden', true);
+ }
+ }
+ var options = stepperChooser.options;
+ for (i = 0; i < options.length; ++i) {
+ var option = options[i];
+ option.selected = (option.value | 0) === pageIndex;
+ }
+ },
+ saveBreakPoints: function saveBreakPoints(pageIndex, bps) {
+ breakPoints[pageIndex] = bps;
+ sessionStorage.setItem('pdfjsBreakPoints', JSON.stringify(breakPoints));
+ }
+ };
+})();
+
+// The stepper for each page's IRQueue.
+var Stepper = (function StepperClosure() {
+ // Shorter way to create element and optionally set textContent.
+ function c(tag, textContent) {
+ var d = document.createElement(tag);
+ if (textContent) {
+ d.textContent = textContent;
+ }
+ return d;
+ }
+
+ var opMap = null;
+
+ function simplifyArgs(args) {
+ if (typeof args === 'string') {
+ var MAX_STRING_LENGTH = 75;
+ return args.length <= MAX_STRING_LENGTH ? args :
+ args.substr(0, MAX_STRING_LENGTH) + '...';
+ }
+ if (typeof args !== 'object' || args === null) {
+ return args;
+ }
+ if ('length' in args) { // array
+ var simpleArgs = [], i, ii;
+ var MAX_ITEMS = 10;
+ for (i = 0, ii = Math.min(MAX_ITEMS, args.length); i < ii; i++) {
+ simpleArgs.push(simplifyArgs(args[i]));
+ }
+ if (i < args.length) {
+ simpleArgs.push('...');
+ }
+ return simpleArgs;
+ }
+ var simpleObj = {};
+ for (var key in args) {
+ simpleObj[key] = simplifyArgs(args[key]);
+ }
+ return simpleObj;
+ }
+
+ function Stepper(panel, pageIndex, initialBreakPoints) {
+ this.panel = panel;
+ this.breakPoint = 0;
+ this.nextBreakPoint = null;
+ this.pageIndex = pageIndex;
+ this.breakPoints = initialBreakPoints;
+ this.currentIdx = -1;
+ this.operatorListIdx = 0;
+ }
+ Stepper.prototype = {
+ init: function init() {
+ var panel = this.panel;
+ var content = c('div', 'c=continue, s=step');
+ var table = c('table');
+ content.appendChild(table);
+ table.cellSpacing = 0;
+ var headerRow = c('tr');
+ table.appendChild(headerRow);
+ headerRow.appendChild(c('th', 'Break'));
+ headerRow.appendChild(c('th', 'Idx'));
+ headerRow.appendChild(c('th', 'fn'));
+ headerRow.appendChild(c('th', 'args'));
+ panel.appendChild(content);
+ this.table = table;
+ if (!opMap) {
+ opMap = Object.create(null);
+ for (var key in PDFJS.OPS) {
+ opMap[PDFJS.OPS[key]] = key;
+ }
+ }
+ },
+ updateOperatorList: function updateOperatorList(operatorList) {
+ var self = this;
+
+ function cboxOnClick() {
+ var x = +this.dataset.idx;
+ if (this.checked) {
+ self.breakPoints.push(x);
+ } else {
+ self.breakPoints.splice(self.breakPoints.indexOf(x), 1);
+ }
+ StepperManager.saveBreakPoints(self.pageIndex, self.breakPoints);
+ }
+
+ var MAX_OPERATORS_COUNT = 15000;
+ if (this.operatorListIdx > MAX_OPERATORS_COUNT) {
+ return;
+ }
+
+ var chunk = document.createDocumentFragment();
+ var operatorsToDisplay = Math.min(MAX_OPERATORS_COUNT,
+ operatorList.fnArray.length);
+ for (var i = this.operatorListIdx; i < operatorsToDisplay; i++) {
+ var line = c('tr');
+ line.className = 'line';
+ line.dataset.idx = i;
+ chunk.appendChild(line);
+ var checked = this.breakPoints.indexOf(i) !== -1;
+ var args = operatorList.argsArray[i] || [];
+
+ var breakCell = c('td');
+ var cbox = c('input');
+ cbox.type = 'checkbox';
+ cbox.className = 'points';
+ cbox.checked = checked;
+ cbox.dataset.idx = i;
+ cbox.onclick = cboxOnClick;
+
+ breakCell.appendChild(cbox);
+ line.appendChild(breakCell);
+ line.appendChild(c('td', i.toString()));
+ var fn = opMap[operatorList.fnArray[i]];
+ var decArgs = args;
+ if (fn === 'showText') {
+ var glyphs = args[0];
+ var newArgs = [];
+ var str = [];
+ for (var j = 0; j < glyphs.length; j++) {
+ var glyph = glyphs[j];
+ if (typeof glyph === 'object' && glyph !== null) {
+ str.push(glyph.fontChar);
+ } else {
+ if (str.length > 0) {
+ newArgs.push(str.join(''));
+ str = [];
+ }
+ newArgs.push(glyph); // null or number
+ }
+ }
+ if (str.length > 0) {
+ newArgs.push(str.join(''));
+ }
+ decArgs = [newArgs];
+ }
+ line.appendChild(c('td', fn));
+ line.appendChild(c('td', JSON.stringify(simplifyArgs(decArgs))));
+ }
+ if (operatorsToDisplay < operatorList.fnArray.length) {
+ line = c('tr');
+ var lastCell = c('td', '...');
+ lastCell.colspan = 4;
+ chunk.appendChild(lastCell);
+ }
+ this.operatorListIdx = operatorList.fnArray.length;
+ this.table.appendChild(chunk);
+ },
+ getNextBreakPoint: function getNextBreakPoint() {
+ this.breakPoints.sort(function(a, b) { return a - b; });
+ for (var i = 0; i < this.breakPoints.length; i++) {
+ if (this.breakPoints[i] > this.currentIdx) {
+ return this.breakPoints[i];
+ }
+ }
+ return null;
+ },
+ breakIt: function breakIt(idx, callback) {
+ StepperManager.selectStepper(this.pageIndex, true);
+ var self = this;
+ var dom = document;
+ self.currentIdx = idx;
+ var listener = function(e) {
+ switch (e.keyCode) {
+ case 83: // step
+ dom.removeEventListener('keydown', listener, false);
+ self.nextBreakPoint = self.currentIdx + 1;
+ self.goTo(-1);
+ callback();
+ break;
+ case 67: // continue
+ dom.removeEventListener('keydown', listener, false);
+ var breakPoint = self.getNextBreakPoint();
+ self.nextBreakPoint = breakPoint;
+ self.goTo(-1);
+ callback();
+ break;
+ }
+ };
+ dom.addEventListener('keydown', listener, false);
+ self.goTo(idx);
+ },
+ goTo: function goTo(idx) {
+ var allRows = this.panel.getElementsByClassName('line');
+ for (var x = 0, xx = allRows.length; x < xx; ++x) {
+ var row = allRows[x];
+ if ((row.dataset.idx | 0) === idx) {
+ row.style.backgroundColor = 'rgb(251,250,207)';
+ row.scrollIntoView();
+ } else {
+ row.style.backgroundColor = null;
+ }
+ }
+ }
+ };
+ return Stepper;
+})();
+
+var Stats = (function Stats() {
+ var stats = [];
+ function clear(node) {
+ while (node.hasChildNodes()) {
+ node.removeChild(node.lastChild);
+ }
+ }
+ function getStatIndex(pageNumber) {
+ for (var i = 0, ii = stats.length; i < ii; ++i) {
+ if (stats[i].pageNumber === pageNumber) {
+ return i;
+ }
+ }
+ return false;
+ }
+ return {
+ // Properties/functions needed by PDFBug.
+ id: 'Stats',
+ name: 'Stats',
+ panel: null,
+ manager: null,
+ init: function init() {
+ this.panel.setAttribute('style', 'padding: 5px;');
+ PDFJS.enableStats = true;
+ },
+ enabled: false,
+ active: false,
+ // Stats specific functions.
+ add: function(pageNumber, stat) {
+ if (!stat) {
+ return;
+ }
+ var statsIndex = getStatIndex(pageNumber);
+ if (statsIndex !== false) {
+ var b = stats[statsIndex];
+ this.panel.removeChild(b.div);
+ stats.splice(statsIndex, 1);
+ }
+ var wrapper = document.createElement('div');
+ wrapper.className = 'stats';
+ var title = document.createElement('div');
+ title.className = 'title';
+ title.textContent = 'Page: ' + pageNumber;
+ var statsDiv = document.createElement('div');
+ statsDiv.textContent = stat.toString();
+ wrapper.appendChild(title);
+ wrapper.appendChild(statsDiv);
+ stats.push({ pageNumber: pageNumber, div: wrapper });
+ stats.sort(function(a, b) { return a.pageNumber - b.pageNumber; });
+ clear(this.panel);
+ for (var i = 0, ii = stats.length; i < ii; ++i) {
+ this.panel.appendChild(stats[i].div);
+ }
+ },
+ cleanup: function () {
+ stats = [];
+ clear(this.panel);
+ }
+ };
+})();
+
+// Manages all the debugging tools.
+var PDFBug = (function PDFBugClosure() {
+ var panelWidth = 300;
+ var buttons = [];
+ var activePanel = null;
+
+ return {
+ tools: [
+ FontInspector,
+ StepperManager,
+ Stats
+ ],
+ enable: function(ids) {
+ var all = false, tools = this.tools;
+ if (ids.length === 1 && ids[0] === 'all') {
+ all = true;
+ }
+ for (var i = 0; i < tools.length; ++i) {
+ var tool = tools[i];
+ if (all || ids.indexOf(tool.id) !== -1) {
+ tool.enabled = true;
+ }
+ }
+ if (!all) {
+ // Sort the tools by the order they are enabled.
+ tools.sort(function(a, b) {
+ var indexA = ids.indexOf(a.id);
+ indexA = indexA < 0 ? tools.length : indexA;
+ var indexB = ids.indexOf(b.id);
+ indexB = indexB < 0 ? tools.length : indexB;
+ return indexA - indexB;
+ });
+ }
+ },
+ init: function init() {
+ /*
+ * Basic Layout:
+ * PDFBug
+ * Controls
+ * Panels
+ * Panel
+ * Panel
+ * ...
+ */
+ var ui = document.createElement('div');
+ ui.id = 'PDFBug';
+
+ var controls = document.createElement('div');
+ controls.setAttribute('class', 'controls');
+ ui.appendChild(controls);
+
+ var panels = document.createElement('div');
+ panels.setAttribute('class', 'panels');
+ ui.appendChild(panels);
+
+ var container = document.getElementById('viewerContainer');
+ container.appendChild(ui);
+ container.style.right = panelWidth + 'px';
+
+ // Initialize all the debugging tools.
+ var tools = this.tools;
+ var self = this;
+ for (var i = 0; i < tools.length; ++i) {
+ var tool = tools[i];
+ var panel = document.createElement('div');
+ var panelButton = document.createElement('button');
+ panelButton.textContent = tool.name;
+ panelButton.addEventListener('click', (function(selected) {
+ return function(event) {
+ event.preventDefault();
+ self.selectPanel(selected);
+ };
+ })(i));
+ controls.appendChild(panelButton);
+ panels.appendChild(panel);
+ tool.panel = panel;
+ tool.manager = this;
+ if (tool.enabled) {
+ tool.init();
+ } else {
+ panel.textContent = tool.name + ' is disabled. To enable add ' +
+ ' "' + tool.id + '" to the pdfBug parameter ' +
+ 'and refresh (seperate multiple by commas).';
+ }
+ buttons.push(panelButton);
+ }
+ this.selectPanel(0);
+ },
+ cleanup: function cleanup() {
+ for (var i = 0, ii = this.tools.length; i < ii; i++) {
+ if (this.tools[i].enabled) {
+ this.tools[i].cleanup();
+ }
+ }
+ },
+ selectPanel: function selectPanel(index) {
+ if (typeof index !== 'number') {
+ index = this.tools.indexOf(index);
+ }
+ if (index === activePanel) {
+ return;
+ }
+ activePanel = index;
+ var tools = this.tools;
+ for (var j = 0; j < tools.length; ++j) {
+ if (j === index) {
+ buttons[j].setAttribute('class', 'active');
+ tools[j].active = true;
+ tools[j].panel.removeAttribute('hidden');
+ } else {
+ buttons[j].setAttribute('class', '');
+ tools[j].active = false;
+ tools[j].panel.setAttribute('hidden', 'true');
+ }
+ }
+ }
+ };
+})();
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-check.svg b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-check.svg
new file mode 100644
index 00000000..71cd16df
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-check.svg
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="40"
+ height="40"
+ viewBox="0 0 40 40">
+ <path
+ 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"
+ id="path4"
+ style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.25402856;stroke-opacity:1" />
+</svg>
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-comment.svg b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-comment.svg
new file mode 100644
index 00000000..86f1f172
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-comment.svg
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ height="40"
+ width="40"
+ viewBox="0 0 40 40">
+ <rect
+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ width="33.76017"
+ height="33.76017"
+ x="3.119915"
+ y="3.119915" />
+ <path
+ 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"
+ style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.93031836;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"/>
+</svg>
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-help.svg b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-help.svg
new file mode 100644
index 00000000..00938fef
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-help.svg
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="40"
+ height="40"
+ viewBox="0 0 40 40">
+ <g
+ transform="translate(0,-60)"
+ id="layer1">
+ <rect
+ width="36.460953"
+ height="34.805603"
+ x="1.7695236"
+ y="62.597198"
+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.30826771;stroke-opacity:1" />
+ <g
+ transform="matrix(0.88763677,0,0,0.88763677,2.2472646,8.9890584)">
+ <path
+ 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"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.02768445;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ <path
+ 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"
+ style="fill:#000000;fill-opacity:1;stroke:none" />
+ </g>
+ </g>
+</svg>
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-insert.svg b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-insert.svg
new file mode 100644
index 00000000..519ef682
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-insert.svg
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="64"
+ height="64"
+ viewBox="0 0 64 64">
+ <path
+ d="M 32.003143,1.4044602 57.432701,62.632577 6.5672991,62.627924 z"
+ 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" />
+</svg>
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-key.svg b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-key.svg
new file mode 100644
index 00000000..8d09d537
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-key.svg
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="64"
+ height="64"
+ viewBox="0 0 64 64">
+ <path
+ 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"
+ id="path604"
+ style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.72665179;stroke-opacity:1" />
+</svg>
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-newparagraph.svg b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-newparagraph.svg
new file mode 100644
index 00000000..38d2497d
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-newparagraph.svg
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="64"
+ height="64"
+ viewBox="0 0 64 64">
+ <path
+ d="M 32.003143,10.913072 57.432701,53.086929 6.567299,53.083723 z"
+ id="path2985"
+ style="fill:#ffff00;fill-opacity:0.94117647;fill-rule:nonzero;stroke:#000000;stroke-width:0.83403099;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+</svg>
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-noicon.svg b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-noicon.svg
new file mode 100644
index 00000000..c07d1080
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-noicon.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="40"
+ height="40"
+ viewBox="0 0 40 40">
+</svg>
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-note.svg b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-note.svg
new file mode 100644
index 00000000..70173651
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-note.svg
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="40"
+ height="40"
+ viewBox="0 0 40 40">
+ <rect
+ width="36.075428"
+ height="31.096582"
+ x="1.962286"
+ y="4.4517088"
+ id="rect4"
+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.23004246;stroke-opacity:1" />
+ <rect
+ width="27.96859"
+ height="1.5012145"
+ x="6.0157046"
+ y="10.285"
+ id="rect6"
+ style="fill:#000000;fill-opacity:1;stroke:none" />
+ <rect
+ width="27.96859"
+ height="0.85783684"
+ x="6.0157056"
+ y="23.21689"
+ id="rect8"
+ style="fill:#000000;fill-opacity:1;stroke:none" />
+ <rect
+ width="27.96859"
+ height="0.85783684"
+ x="5.8130345"
+ y="28.964394"
+ id="rect10"
+ style="fill:#000000;fill-opacity:1;stroke:none" />
+ <rect
+ width="27.96859"
+ height="0.85783684"
+ x="6.0157046"
+ y="17.426493"
+ id="rect12"
+ style="fill:#000000;fill-opacity:1;stroke:none" />
+</svg>
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-paragraph.svg b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-paragraph.svg
new file mode 100644
index 00000000..6ae5212b
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/annotation-paragraph.svg
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="40"
+ height="40"
+ viewBox="0 0 40 40">
+ <rect
+ width="33.76017"
+ height="33.76017"
+ x="3.119915"
+ y="3.119915"
+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ <path
+ d="m 17.692678,34.50206 0,-16.182224 c -1.930515,-0.103225 -3.455824,-0.730383 -4.57593,-1.881473 -1.12011,-1.151067 -1.680164,-2.619596 -1.680164,-4.405591 0,-1.992435 0.621995,-3.5796849 1.865988,-4.7617553 1.243989,-1.1820288 3.06352,-1.7730536 5.458598,-1.7730764 l 9.802246,0 0,2.6789711 -2.229895,0 0,26.3251486 -2.632515,0 0,-26.3251486 -3.45324,0 0,26.3251486 z"
+ style="font-size:29.42051125px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.07795751;stroke-opacity:1;font-family:Arial;-inkscape-font-specification:Arial" />
+</svg>
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next-rtl.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next-rtl.png
new file mode 100644
index 00000000..bef02743
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next-rtl.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next-rtl@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next-rtl@2x.png
new file mode 100644
index 00000000..1da6dc94
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next-rtl@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next.png
new file mode 100644
index 00000000..de1d0fc9
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next@2x.png
new file mode 100644
index 00000000..0250307c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-next@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous-rtl.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous-rtl.png
new file mode 100644
index 00000000..de1d0fc9
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous-rtl.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous-rtl@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous-rtl@2x.png
new file mode 100644
index 00000000..0250307c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous-rtl@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous.png
new file mode 100644
index 00000000..bef02743
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous@2x.png
new file mode 100644
index 00000000..1da6dc94
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/findbarButton-previous@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/grab.cur b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/grab.cur
new file mode 100644
index 00000000..db7ad5ae
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/grab.cur
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/grabbing.cur b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/grabbing.cur
new file mode 100644
index 00000000..e0dfd04e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/grabbing.cur
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-icon.gif b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-icon.gif
new file mode 100644
index 00000000..1c72ebb5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-icon.gif
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-small.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-small.png
new file mode 100644
index 00000000..8831a805
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-small.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-small@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-small@2x.png
new file mode 100644
index 00000000..b25b4452
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/loading-small@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-documentProperties.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-documentProperties.png
new file mode 100644
index 00000000..40925e25
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-documentProperties.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-documentProperties@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-documentProperties@2x.png
new file mode 100644
index 00000000..adb240ea
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-documentProperties@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-firstPage.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-firstPage.png
new file mode 100644
index 00000000..e68846aa
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-firstPage.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-firstPage@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-firstPage@2x.png
new file mode 100644
index 00000000..3ad8af51
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-firstPage@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-handTool.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-handTool.png
new file mode 100644
index 00000000..cb85a841
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-handTool.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-handTool@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-handTool@2x.png
new file mode 100644
index 00000000..5c13f77f
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-handTool@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-lastPage.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-lastPage.png
new file mode 100644
index 00000000..be763e0c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-lastPage.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-lastPage@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-lastPage@2x.png
new file mode 100644
index 00000000..8570984f
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-lastPage@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCcw.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCcw.png
new file mode 100644
index 00000000..675d6da2
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCcw.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCcw@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCcw@2x.png
new file mode 100644
index 00000000..b9e74312
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCcw@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCw.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCw.png
new file mode 100644
index 00000000..e1c75988
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCw.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCw@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCw@2x.png
new file mode 100644
index 00000000..cb257b41
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/secondaryToolbarButton-rotateCw@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/shadow.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/shadow.png
new file mode 100644
index 00000000..31d3bdb1
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/shadow.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/texture.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/texture.png
new file mode 100644
index 00000000..eb5ccb5e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/texture.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-bookmark.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-bookmark.png
new file mode 100644
index 00000000..a187be6c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-bookmark.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-bookmark@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-bookmark@2x.png
new file mode 100644
index 00000000..4efbaa67
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-bookmark@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-download.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-download.png
new file mode 100644
index 00000000..eaab35f0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-download.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-download@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-download@2x.png
new file mode 100644
index 00000000..896face4
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-download@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-menuArrows.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-menuArrows.png
new file mode 100644
index 00000000..306eb43b
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-menuArrows.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-menuArrows@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-menuArrows@2x.png
new file mode 100644
index 00000000..f7570bc0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-menuArrows@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-openFile.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-openFile.png
new file mode 100644
index 00000000..b5cf1bd0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-openFile.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-openFile@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-openFile@2x.png
new file mode 100644
index 00000000..91ab7659
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-openFile@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown-rtl.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown-rtl.png
new file mode 100644
index 00000000..1957f79a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown-rtl.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown-rtl@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown-rtl@2x.png
new file mode 100644
index 00000000..16ebcb8e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown-rtl@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown.png
new file mode 100644
index 00000000..8219ecf8
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown@2x.png
new file mode 100644
index 00000000..758c01d8
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageDown@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp-rtl.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp-rtl.png
new file mode 100644
index 00000000..98e7ce48
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp-rtl.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp-rtl@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp-rtl@2x.png
new file mode 100644
index 00000000..a01b0238
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp-rtl@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp.png
new file mode 100644
index 00000000..fb9daa33
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp@2x.png
new file mode 100644
index 00000000..a5cfd755
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-pageUp@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-presentationMode.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-presentationMode.png
new file mode 100644
index 00000000..3ac21244
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-presentationMode.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-presentationMode@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-presentationMode@2x.png
new file mode 100644
index 00000000..cada9e79
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-presentationMode@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-print.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-print.png
new file mode 100644
index 00000000..51275e54
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-print.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-print@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-print@2x.png
new file mode 100644
index 00000000..53d18daf
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-print@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-search.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-search.png
new file mode 100644
index 00000000..f9b75579
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-search.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-search@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-search@2x.png
new file mode 100644
index 00000000..456b1332
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-search@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle-rtl.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle-rtl.png
new file mode 100644
index 00000000..84370952
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle-rtl.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle-rtl@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle-rtl@2x.png
new file mode 100644
index 00000000..9d9bfa4f
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle-rtl@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle.png
new file mode 100644
index 00000000..1f90f83d
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle@2x.png
new file mode 100644
index 00000000..b066fe5c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-secondaryToolbarToggle@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle-rtl.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle-rtl.png
new file mode 100644
index 00000000..6f85ec06
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle-rtl.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle-rtl@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle-rtl@2x.png
new file mode 100644
index 00000000..291e0067
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle-rtl@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle.png
new file mode 100644
index 00000000..025dc904
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle@2x.png
new file mode 100644
index 00000000..7f834df9
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-sidebarToggle@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewAttachments.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewAttachments.png
new file mode 100644
index 00000000..fcd0b268
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewAttachments.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewAttachments@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewAttachments@2x.png
new file mode 100644
index 00000000..b979e523
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewAttachments@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline-rtl.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline-rtl.png
new file mode 100644
index 00000000..aaa94302
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline-rtl.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline-rtl@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline-rtl@2x.png
new file mode 100644
index 00000000..3410f70d
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline-rtl@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline.png
new file mode 100644
index 00000000..976365a5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline@2x.png
new file mode 100644
index 00000000..b6a197fd
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewOutline@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewThumbnail.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewThumbnail.png
new file mode 100644
index 00000000..584ba558
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewThumbnail.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewThumbnail@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewThumbnail@2x.png
new file mode 100644
index 00000000..fb7db938
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-viewThumbnail@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomIn.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomIn.png
new file mode 100644
index 00000000..513d081b
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomIn.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomIn@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomIn@2x.png
new file mode 100644
index 00000000..d5d49d5f
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomIn@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomOut.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomOut.png
new file mode 100644
index 00000000..156c26b9
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomOut.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomOut@2x.png b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomOut@2x.png
new file mode 100644
index 00000000..959e1919
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/images/toolbarButton-zoomOut@2x.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/l10n.js b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/l10n.js
new file mode 100644
index 00000000..3d5ecffa
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/l10n.js
@@ -0,0 +1,1033 @@
+/**
+ * Copyright (c) 2011-2013 Fabien Cazenave, Mozilla.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+/*
+ Additional modifications for PDF.js project:
+ - Disables language initialization on page loading;
+ - Removes consoleWarn and consoleLog and use console.log/warn directly.
+ - Removes window._ assignment.
+ - Remove compatibility code for OldIE.
+*/
+
+/*jshint browser: true, devel: true, es5: true, globalstrict: true */
+'use strict';
+
+document.webL10n = (function(window, document, undefined) {
+ var gL10nData = {};
+ var gTextData = '';
+ var gTextProp = 'textContent';
+ var gLanguage = '';
+ var gMacros = {};
+ var gReadyState = 'loading';
+
+
+ /**
+ * Synchronously loading l10n resources significantly minimizes flickering
+ * from displaying the app with non-localized strings and then updating the
+ * strings. Although this will block all script execution on this page, we
+ * expect that the l10n resources are available locally on flash-storage.
+ *
+ * As synchronous XHR is generally considered as a bad idea, we're still
+ * loading l10n resources asynchronously -- but we keep this in a setting,
+ * just in case... and applications using this library should hide their
+ * content until the `localized' event happens.
+ */
+
+ var gAsyncResourceLoading = true; // read-only
+
+
+ /**
+ * DOM helpers for the so-called "HTML API".
+ *
+ * These functions are written for modern browsers. For old versions of IE,
+ * they're overridden in the 'startup' section at the end of this file.
+ */
+
+ function getL10nResourceLinks() {
+ return document.querySelectorAll('link[type="application/l10n"]');
+ }
+
+ function getL10nDictionary() {
+ var script = document.querySelector('script[type="application/l10n"]');
+ // TODO: support multiple and external JSON dictionaries
+ return script ? JSON.parse(script.innerHTML) : null;
+ }
+
+ function getTranslatableChildren(element) {
+ return element ? element.querySelectorAll('*[data-l10n-id]') : [];
+ }
+
+ function getL10nAttributes(element) {
+ if (!element)
+ return {};
+
+ var l10nId = element.getAttribute('data-l10n-id');
+ var l10nArgs = element.getAttribute('data-l10n-args');
+ var args = {};
+ if (l10nArgs) {
+ try {
+ args = JSON.parse(l10nArgs);
+ } catch (e) {
+ console.warn('could not parse arguments for #' + l10nId);
+ }
+ }
+ return { id: l10nId, args: args };
+ }
+
+ function fireL10nReadyEvent(lang) {
+ var evtObject = document.createEvent('Event');
+ evtObject.initEvent('localized', true, false);
+ evtObject.language = lang;
+ document.dispatchEvent(evtObject);
+ }
+
+ function xhrLoadText(url, onSuccess, onFailure) {
+ onSuccess = onSuccess || function _onSuccess(data) {};
+ onFailure = onFailure || function _onFailure() {
+ console.warn(url + ' not found.');
+ };
+
+ var xhr = new XMLHttpRequest();
+ xhr.open('GET', url, gAsyncResourceLoading);
+ if (xhr.overrideMimeType) {
+ xhr.overrideMimeType('text/plain; charset=utf-8');
+ }
+ xhr.onreadystatechange = function() {
+ if (xhr.readyState == 4) {
+ if (xhr.status == 200 || xhr.status === 0) {
+ onSuccess(xhr.responseText);
+ } else {
+ onFailure();
+ }
+ }
+ };
+ xhr.onerror = onFailure;
+ xhr.ontimeout = onFailure;
+
+ // in Firefox OS with the app:// protocol, trying to XHR a non-existing
+ // URL will raise an exception here -- hence this ugly try...catch.
+ try {
+ xhr.send(null);
+ } catch (e) {
+ onFailure();
+ }
+ }
+
+
+ /**
+ * l10n resource parser:
+ * - reads (async XHR) the l10n resource matching `lang';
+ * - imports linked resources (synchronously) when specified;
+ * - parses the text data (fills `gL10nData' and `gTextData');
+ * - triggers success/failure callbacks when done.
+ *
+ * @param {string} href
+ * URL of the l10n resource to parse.
+ *
+ * @param {string} lang
+ * locale (language) to parse. Must be a lowercase string.
+ *
+ * @param {Function} successCallback
+ * triggered when the l10n resource has been successully parsed.
+ *
+ * @param {Function} failureCallback
+ * triggered when the an error has occured.
+ *
+ * @return {void}
+ * uses the following global variables: gL10nData, gTextData, gTextProp.
+ */
+
+ function parseResource(href, lang, successCallback, failureCallback) {
+ var baseURL = href.replace(/[^\/]*$/, '') || './';
+
+ // handle escaped characters (backslashes) in a string
+ function evalString(text) {
+ if (text.lastIndexOf('\\') < 0)
+ return text;
+ return text.replace(/\\\\/g, '\\')
+ .replace(/\\n/g, '\n')
+ .replace(/\\r/g, '\r')
+ .replace(/\\t/g, '\t')
+ .replace(/\\b/g, '\b')
+ .replace(/\\f/g, '\f')
+ .replace(/\\{/g, '{')
+ .replace(/\\}/g, '}')
+ .replace(/\\"/g, '"')
+ .replace(/\\'/g, "'");
+ }
+
+ // parse *.properties text data into an l10n dictionary
+ // If gAsyncResourceLoading is false, then the callback will be called
+ // synchronously. Otherwise it is called asynchronously.
+ function parseProperties(text, parsedPropertiesCallback) {
+ var dictionary = {};
+
+ // token expressions
+ var reBlank = /^\s*|\s*$/;
+ var reComment = /^\s*#|^\s*$/;
+ var reSection = /^\s*\[(.*)\]\s*$/;
+ var reImport = /^\s*@import\s+url\((.*)\)\s*$/i;
+ var reSplit = /^([^=\s]*)\s*=\s*(.+)$/; // TODO: escape EOLs with '\'
+
+ // parse the *.properties file into an associative array
+ function parseRawLines(rawText, extendedSyntax, parsedRawLinesCallback) {
+ var entries = rawText.replace(reBlank, '').split(/[\r\n]+/);
+ var currentLang = '*';
+ var genericLang = lang.split('-', 1)[0];
+ var skipLang = false;
+ var match = '';
+
+ function nextEntry() {
+ // Use infinite loop instead of recursion to avoid reaching the
+ // maximum recursion limit for content with many lines.
+ while (true) {
+ if (!entries.length) {
+ parsedRawLinesCallback();
+ return;
+ }
+ var line = entries.shift();
+
+ // comment or blank line?
+ if (reComment.test(line))
+ continue;
+
+ // the extended syntax supports [lang] sections and @import rules
+ if (extendedSyntax) {
+ match = reSection.exec(line);
+ if (match) { // section start?
+ // RFC 4646, section 4.4, "All comparisons MUST be performed
+ // in a case-insensitive manner."
+
+ currentLang = match[1].toLowerCase();
+ skipLang = (currentLang !== '*') &&
+ (currentLang !== lang) && (currentLang !== genericLang);
+ continue;
+ } else if (skipLang) {
+ continue;
+ }
+ match = reImport.exec(line);
+ if (match) { // @import rule?
+ loadImport(baseURL + match[1], nextEntry);
+ return;
+ }
+ }
+
+ // key-value pair
+ var tmp = line.match(reSplit);
+ if (tmp && tmp.length == 3) {
+ dictionary[tmp[1]] = evalString(tmp[2]);
+ }
+ }
+ }
+ nextEntry();
+ }
+
+ // import another *.properties file
+ function loadImport(url, callback) {
+ xhrLoadText(url, function(content) {
+ parseRawLines(content, false, callback); // don't allow recursive imports
+ }, null);
+ }
+
+ // fill the dictionary
+ parseRawLines(text, true, function() {
+ parsedPropertiesCallback(dictionary);
+ });
+ }
+
+ // load and parse l10n data (warning: global variables are used here)
+ xhrLoadText(href, function(response) {
+ gTextData += response; // mostly for debug
+
+ // parse *.properties text data into an l10n dictionary
+ parseProperties(response, function(data) {
+
+ // find attribute descriptions, if any
+ for (var key in data) {
+ var id, prop, index = key.lastIndexOf('.');
+ if (index > 0) { // an attribute has been specified
+ id = key.substring(0, index);
+ prop = key.substr(index + 1);
+ } else { // no attribute: assuming text content by default
+ id = key;
+ prop = gTextProp;
+ }
+ if (!gL10nData[id]) {
+ gL10nData[id] = {};
+ }
+ gL10nData[id][prop] = data[key];
+ }
+
+ // trigger callback
+ if (successCallback) {
+ successCallback();
+ }
+ });
+ }, failureCallback);
+ }
+
+ // load and parse all resources for the specified locale
+ function loadLocale(lang, callback) {
+ // RFC 4646, section 2.1 states that language tags have to be treated as
+ // case-insensitive. Convert to lowercase for case-insensitive comparisons.
+ if (lang) {
+ lang = lang.toLowerCase();
+ }
+
+ callback = callback || function _callback() {};
+
+ clear();
+ gLanguage = lang;
+
+ // check all <link type="application/l10n" href="..." /> nodes
+ // and load the resource files
+ var langLinks = getL10nResourceLinks();
+ var langCount = langLinks.length;
+ if (langCount === 0) {
+ // we might have a pre-compiled dictionary instead
+ var dict = getL10nDictionary();
+ if (dict && dict.locales && dict.default_locale) {
+ console.log('using the embedded JSON directory, early way out');
+ gL10nData = dict.locales[lang];
+ if (!gL10nData) {
+ var defaultLocale = dict.default_locale.toLowerCase();
+ for (var anyCaseLang in dict.locales) {
+ anyCaseLang = anyCaseLang.toLowerCase();
+ if (anyCaseLang === lang) {
+ gL10nData = dict.locales[lang];
+ break;
+ } else if (anyCaseLang === defaultLocale) {
+ gL10nData = dict.locales[defaultLocale];
+ }
+ }
+ }
+ callback();
+ } else {
+ console.log('no resource to load, early way out');
+ }
+ // early way out
+ fireL10nReadyEvent(lang);
+ gReadyState = 'complete';
+ return;
+ }
+
+ // start the callback when all resources are loaded
+ var onResourceLoaded = null;
+ var gResourceCount = 0;
+ onResourceLoaded = function() {
+ gResourceCount++;
+ if (gResourceCount >= langCount) {
+ callback();
+ fireL10nReadyEvent(lang);
+ gReadyState = 'complete';
+ }
+ };
+
+ // load all resource files
+ function L10nResourceLink(link) {
+ var href = link.href;
+ // Note: If |gAsyncResourceLoading| is false, then the following callbacks
+ // are synchronously called.
+ this.load = function(lang, callback) {
+ parseResource(href, lang, callback, function() {
+ console.warn(href + ' not found.');
+ // lang not found, used default resource instead
+ console.warn('"' + lang + '" resource not found');
+ gLanguage = '';
+ // Resource not loaded, but we still need to call the callback.
+ callback();
+ });
+ };
+ }
+
+ for (var i = 0; i < langCount; i++) {
+ var resource = new L10nResourceLink(langLinks[i]);
+ resource.load(lang, onResourceLoaded);
+ }
+ }
+
+ // clear all l10n data
+ function clear() {
+ gL10nData = {};
+ gTextData = '';
+ gLanguage = '';
+ // TODO: clear all non predefined macros.
+ // There's no such macro /yet/ but we're planning to have some...
+ }
+
+
+ /**
+ * Get rules for plural forms (shared with JetPack), see:
+ * http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
+ * https://github.com/mozilla/addon-sdk/blob/master/python-lib/plural-rules-generator.p
+ *
+ * @param {string} lang
+ * locale (language) used.
+ *
+ * @return {Function}
+ * returns a function that gives the plural form name for a given integer:
+ * var fun = getPluralRules('en');
+ * fun(1) -> 'one'
+ * fun(0) -> 'other'
+ * fun(1000) -> 'other'.
+ */
+
+ function getPluralRules(lang) {
+ var locales2rules = {
+ 'af': 3,
+ 'ak': 4,
+ 'am': 4,
+ 'ar': 1,
+ 'asa': 3,
+ 'az': 0,
+ 'be': 11,
+ 'bem': 3,
+ 'bez': 3,
+ 'bg': 3,
+ 'bh': 4,
+ 'bm': 0,
+ 'bn': 3,
+ 'bo': 0,
+ 'br': 20,
+ 'brx': 3,
+ 'bs': 11,
+ 'ca': 3,
+ 'cgg': 3,
+ 'chr': 3,
+ 'cs': 12,
+ 'cy': 17,
+ 'da': 3,
+ 'de': 3,
+ 'dv': 3,
+ 'dz': 0,
+ 'ee': 3,
+ 'el': 3,
+ 'en': 3,
+ 'eo': 3,
+ 'es': 3,
+ 'et': 3,
+ 'eu': 3,
+ 'fa': 0,
+ 'ff': 5,
+ 'fi': 3,
+ 'fil': 4,
+ 'fo': 3,
+ 'fr': 5,
+ 'fur': 3,
+ 'fy': 3,
+ 'ga': 8,
+ 'gd': 24,
+ 'gl': 3,
+ 'gsw': 3,
+ 'gu': 3,
+ 'guw': 4,
+ 'gv': 23,
+ 'ha': 3,
+ 'haw': 3,
+ 'he': 2,
+ 'hi': 4,
+ 'hr': 11,
+ 'hu': 0,
+ 'id': 0,
+ 'ig': 0,
+ 'ii': 0,
+ 'is': 3,
+ 'it': 3,
+ 'iu': 7,
+ 'ja': 0,
+ 'jmc': 3,
+ 'jv': 0,
+ 'ka': 0,
+ 'kab': 5,
+ 'kaj': 3,
+ 'kcg': 3,
+ 'kde': 0,
+ 'kea': 0,
+ 'kk': 3,
+ 'kl': 3,
+ 'km': 0,
+ 'kn': 0,
+ 'ko': 0,
+ 'ksb': 3,
+ 'ksh': 21,
+ 'ku': 3,
+ 'kw': 7,
+ 'lag': 18,
+ 'lb': 3,
+ 'lg': 3,
+ 'ln': 4,
+ 'lo': 0,
+ 'lt': 10,
+ 'lv': 6,
+ 'mas': 3,
+ 'mg': 4,
+ 'mk': 16,
+ 'ml': 3,
+ 'mn': 3,
+ 'mo': 9,
+ 'mr': 3,
+ 'ms': 0,
+ 'mt': 15,
+ 'my': 0,
+ 'nah': 3,
+ 'naq': 7,
+ 'nb': 3,
+ 'nd': 3,
+ 'ne': 3,
+ 'nl': 3,
+ 'nn': 3,
+ 'no': 3,
+ 'nr': 3,
+ 'nso': 4,
+ 'ny': 3,
+ 'nyn': 3,
+ 'om': 3,
+ 'or': 3,
+ 'pa': 3,
+ 'pap': 3,
+ 'pl': 13,
+ 'ps': 3,
+ 'pt': 3,
+ 'rm': 3,
+ 'ro': 9,
+ 'rof': 3,
+ 'ru': 11,
+ 'rwk': 3,
+ 'sah': 0,
+ 'saq': 3,
+ 'se': 7,
+ 'seh': 3,
+ 'ses': 0,
+ 'sg': 0,
+ 'sh': 11,
+ 'shi': 19,
+ 'sk': 12,
+ 'sl': 14,
+ 'sma': 7,
+ 'smi': 7,
+ 'smj': 7,
+ 'smn': 7,
+ 'sms': 7,
+ 'sn': 3,
+ 'so': 3,
+ 'sq': 3,
+ 'sr': 11,
+ 'ss': 3,
+ 'ssy': 3,
+ 'st': 3,
+ 'sv': 3,
+ 'sw': 3,
+ 'syr': 3,
+ 'ta': 3,
+ 'te': 3,
+ 'teo': 3,
+ 'th': 0,
+ 'ti': 4,
+ 'tig': 3,
+ 'tk': 3,
+ 'tl': 4,
+ 'tn': 3,
+ 'to': 0,
+ 'tr': 0,
+ 'ts': 3,
+ 'tzm': 22,
+ 'uk': 11,
+ 'ur': 3,
+ 've': 3,
+ 'vi': 0,
+ 'vun': 3,
+ 'wa': 4,
+ 'wae': 3,
+ 'wo': 0,
+ 'xh': 3,
+ 'xog': 3,
+ 'yo': 0,
+ 'zh': 0,
+ 'zu': 3
+ };
+
+ // utility functions for plural rules methods
+ function isIn(n, list) {
+ return list.indexOf(n) !== -1;
+ }
+ function isBetween(n, start, end) {
+ return start <= n && n <= end;
+ }
+
+ // list of all plural rules methods:
+ // map an integer to the plural form name to use
+ var pluralRules = {
+ '0': function(n) {
+ return 'other';
+ },
+ '1': function(n) {
+ if ((isBetween((n % 100), 3, 10)))
+ return 'few';
+ if (n === 0)
+ return 'zero';
+ if ((isBetween((n % 100), 11, 99)))
+ return 'many';
+ if (n == 2)
+ return 'two';
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '2': function(n) {
+ if (n !== 0 && (n % 10) === 0)
+ return 'many';
+ if (n == 2)
+ return 'two';
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '3': function(n) {
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '4': function(n) {
+ if ((isBetween(n, 0, 1)))
+ return 'one';
+ return 'other';
+ },
+ '5': function(n) {
+ if ((isBetween(n, 0, 2)) && n != 2)
+ return 'one';
+ return 'other';
+ },
+ '6': function(n) {
+ if (n === 0)
+ return 'zero';
+ if ((n % 10) == 1 && (n % 100) != 11)
+ return 'one';
+ return 'other';
+ },
+ '7': function(n) {
+ if (n == 2)
+ return 'two';
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '8': function(n) {
+ if ((isBetween(n, 3, 6)))
+ return 'few';
+ if ((isBetween(n, 7, 10)))
+ return 'many';
+ if (n == 2)
+ return 'two';
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '9': function(n) {
+ if (n === 0 || n != 1 && (isBetween((n % 100), 1, 19)))
+ return 'few';
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '10': function(n) {
+ if ((isBetween((n % 10), 2, 9)) && !(isBetween((n % 100), 11, 19)))
+ return 'few';
+ if ((n % 10) == 1 && !(isBetween((n % 100), 11, 19)))
+ return 'one';
+ return 'other';
+ },
+ '11': function(n) {
+ if ((isBetween((n % 10), 2, 4)) && !(isBetween((n % 100), 12, 14)))
+ return 'few';
+ if ((n % 10) === 0 ||
+ (isBetween((n % 10), 5, 9)) ||
+ (isBetween((n % 100), 11, 14)))
+ return 'many';
+ if ((n % 10) == 1 && (n % 100) != 11)
+ return 'one';
+ return 'other';
+ },
+ '12': function(n) {
+ if ((isBetween(n, 2, 4)))
+ return 'few';
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '13': function(n) {
+ if ((isBetween((n % 10), 2, 4)) && !(isBetween((n % 100), 12, 14)))
+ return 'few';
+ if (n != 1 && (isBetween((n % 10), 0, 1)) ||
+ (isBetween((n % 10), 5, 9)) ||
+ (isBetween((n % 100), 12, 14)))
+ return 'many';
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '14': function(n) {
+ if ((isBetween((n % 100), 3, 4)))
+ return 'few';
+ if ((n % 100) == 2)
+ return 'two';
+ if ((n % 100) == 1)
+ return 'one';
+ return 'other';
+ },
+ '15': function(n) {
+ if (n === 0 || (isBetween((n % 100), 2, 10)))
+ return 'few';
+ if ((isBetween((n % 100), 11, 19)))
+ return 'many';
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '16': function(n) {
+ if ((n % 10) == 1 && n != 11)
+ return 'one';
+ return 'other';
+ },
+ '17': function(n) {
+ if (n == 3)
+ return 'few';
+ if (n === 0)
+ return 'zero';
+ if (n == 6)
+ return 'many';
+ if (n == 2)
+ return 'two';
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '18': function(n) {
+ if (n === 0)
+ return 'zero';
+ if ((isBetween(n, 0, 2)) && n !== 0 && n != 2)
+ return 'one';
+ return 'other';
+ },
+ '19': function(n) {
+ if ((isBetween(n, 2, 10)))
+ return 'few';
+ if ((isBetween(n, 0, 1)))
+ return 'one';
+ return 'other';
+ },
+ '20': function(n) {
+ if ((isBetween((n % 10), 3, 4) || ((n % 10) == 9)) && !(
+ isBetween((n % 100), 10, 19) ||
+ isBetween((n % 100), 70, 79) ||
+ isBetween((n % 100), 90, 99)
+ ))
+ return 'few';
+ if ((n % 1000000) === 0 && n !== 0)
+ return 'many';
+ if ((n % 10) == 2 && !isIn((n % 100), [12, 72, 92]))
+ return 'two';
+ if ((n % 10) == 1 && !isIn((n % 100), [11, 71, 91]))
+ return 'one';
+ return 'other';
+ },
+ '21': function(n) {
+ if (n === 0)
+ return 'zero';
+ if (n == 1)
+ return 'one';
+ return 'other';
+ },
+ '22': function(n) {
+ if ((isBetween(n, 0, 1)) || (isBetween(n, 11, 99)))
+ return 'one';
+ return 'other';
+ },
+ '23': function(n) {
+ if ((isBetween((n % 10), 1, 2)) || (n % 20) === 0)
+ return 'one';
+ return 'other';
+ },
+ '24': function(n) {
+ if ((isBetween(n, 3, 10) || isBetween(n, 13, 19)))
+ return 'few';
+ if (isIn(n, [2, 12]))
+ return 'two';
+ if (isIn(n, [1, 11]))
+ return 'one';
+ return 'other';
+ }
+ };
+
+ // return a function that gives the plural form name for a given integer
+ var index = locales2rules[lang.replace(/-.*$/, '')];
+ if (!(index in pluralRules)) {
+ console.warn('plural form unknown for [' + lang + ']');
+ return function() { return 'other'; };
+ }
+ return pluralRules[index];
+ }
+
+ // pre-defined 'plural' macro
+ gMacros.plural = function(str, param, key, prop) {
+ var n = parseFloat(param);
+ if (isNaN(n))
+ return str;
+
+ // TODO: support other properties (l20n still doesn't...)
+ if (prop != gTextProp)
+ return str;
+
+ // initialize _pluralRules
+ if (!gMacros._pluralRules) {
+ gMacros._pluralRules = getPluralRules(gLanguage);
+ }
+ var index = '[' + gMacros._pluralRules(n) + ']';
+
+ // try to find a [zero|one|two] key if it's defined
+ if (n === 0 && (key + '[zero]') in gL10nData) {
+ str = gL10nData[key + '[zero]'][prop];
+ } else if (n == 1 && (key + '[one]') in gL10nData) {
+ str = gL10nData[key + '[one]'][prop];
+ } else if (n == 2 && (key + '[two]') in gL10nData) {
+ str = gL10nData[key + '[two]'][prop];
+ } else if ((key + index) in gL10nData) {
+ str = gL10nData[key + index][prop];
+ } else if ((key + '[other]') in gL10nData) {
+ str = gL10nData[key + '[other]'][prop];
+ }
+
+ return str;
+ };
+
+
+ /**
+ * l10n dictionary functions
+ */
+
+ // fetch an l10n object, warn if not found, apply `args' if possible
+ function getL10nData(key, args, fallback) {
+ var data = gL10nData[key];
+ if (!data) {
+ console.warn('#' + key + ' is undefined.');
+ if (!fallback) {
+ return null;
+ }
+ data = fallback;
+ }
+
+ /** This is where l10n expressions should be processed.
+ * The plan is to support C-style expressions from the l20n project;
+ * until then, only two kinds of simple expressions are supported:
+ * {[ index ]} and {{ arguments }}.
+ */
+ var rv = {};
+ for (var prop in data) {
+ var str = data[prop];
+ str = substIndexes(str, args, key, prop);
+ str = substArguments(str, args, key);
+ rv[prop] = str;
+ }
+ return rv;
+ }
+
+ // replace {[macros]} with their values
+ function substIndexes(str, args, key, prop) {
+ var reIndex = /\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/;
+ var reMatch = reIndex.exec(str);
+ if (!reMatch || !reMatch.length)
+ return str;
+
+ // an index/macro has been found
+ // Note: at the moment, only one parameter is supported
+ var macroName = reMatch[1];
+ var paramName = reMatch[2];
+ var param;
+ if (args && paramName in args) {
+ param = args[paramName];
+ } else if (paramName in gL10nData) {
+ param = gL10nData[paramName];
+ }
+
+ // there's no macro parser yet: it has to be defined in gMacros
+ if (macroName in gMacros) {
+ var macro = gMacros[macroName];
+ str = macro(str, param, key, prop);
+ }
+ return str;
+ }
+
+ // replace {{arguments}} with their values
+ function substArguments(str, args, key) {
+ var reArgs = /\{\{\s*(.+?)\s*\}\}/g;
+ return str.replace(reArgs, function(matched_text, arg) {
+ if (args && arg in args) {
+ return args[arg];
+ }
+ if (arg in gL10nData) {
+ return gL10nData[arg];
+ }
+ console.log('argument {{' + arg + '}} for #' + key + ' is undefined.');
+ return matched_text;
+ });
+ }
+
+ // translate an HTML element
+ function translateElement(element) {
+ var l10n = getL10nAttributes(element);
+ if (!l10n.id)
+ return;
+
+ // get the related l10n object
+ var data = getL10nData(l10n.id, l10n.args);
+ if (!data) {
+ console.warn('#' + l10n.id + ' is undefined.');
+ return;
+ }
+
+ // translate element (TODO: security checks?)
+ if (data[gTextProp]) { // XXX
+ if (getChildElementCount(element) === 0) {
+ element[gTextProp] = data[gTextProp];
+ } else {
+ // this element has element children: replace the content of the first
+ // (non-empty) child textNode and clear other child textNodes
+ var children = element.childNodes;
+ var found = false;
+ for (var i = 0, l = children.length; i < l; i++) {
+ if (children[i].nodeType === 3 && /\S/.test(children[i].nodeValue)) {
+ if (found) {
+ children[i].nodeValue = '';
+ } else {
+ children[i].nodeValue = data[gTextProp];
+ found = true;
+ }
+ }
+ }
+ // if no (non-empty) textNode is found, insert a textNode before the
+ // first element child.
+ if (!found) {
+ var textNode = document.createTextNode(data[gTextProp]);
+ element.insertBefore(textNode, element.firstChild);
+ }
+ }
+ delete data[gTextProp];
+ }
+
+ for (var k in data) {
+ element[k] = data[k];
+ }
+ }
+
+ // webkit browsers don't currently support 'children' on SVG elements...
+ function getChildElementCount(element) {
+ if (element.children) {
+ return element.children.length;
+ }
+ if (typeof element.childElementCount !== 'undefined') {
+ return element.childElementCount;
+ }
+ var count = 0;
+ for (var i = 0; i < element.childNodes.length; i++) {
+ count += element.nodeType === 1 ? 1 : 0;
+ }
+ return count;
+ }
+
+ // translate an HTML subtree
+ function translateFragment(element) {
+ element = element || document.documentElement;
+
+ // check all translatable children (= w/ a `data-l10n-id' attribute)
+ var children = getTranslatableChildren(element);
+ var elementCount = children.length;
+ for (var i = 0; i < elementCount; i++) {
+ translateElement(children[i]);
+ }
+
+ // translate element itself if necessary
+ translateElement(element);
+ }
+
+ return {
+ // get a localized string
+ get: function(key, args, fallbackString) {
+ var index = key.lastIndexOf('.');
+ var prop = gTextProp;
+ if (index > 0) { // An attribute has been specified
+ prop = key.substr(index + 1);
+ key = key.substring(0, index);
+ }
+ var fallback;
+ if (fallbackString) {
+ fallback = {};
+ fallback[prop] = fallbackString;
+ }
+ var data = getL10nData(key, args, fallback);
+ if (data && prop in data) {
+ return data[prop];
+ }
+ return '{{' + key + '}}';
+ },
+
+ // debug
+ getData: function() { return gL10nData; },
+ getText: function() { return gTextData; },
+
+ // get|set the document language
+ getLanguage: function() { return gLanguage; },
+ setLanguage: function(lang, callback) {
+ loadLocale(lang, function() {
+ if (callback)
+ callback();
+ translateFragment();
+ });
+ },
+
+ // get the direction (ltr|rtl) of the current language
+ getDirection: function() {
+ // http://www.w3.org/International/questions/qa-scripts
+ // Arabic, Hebrew, Farsi, Pashto, Urdu
+ var rtlList = ['ar', 'he', 'fa', 'ps', 'ur'];
+ var shortCode = gLanguage.split('-', 1)[0];
+ return (rtlList.indexOf(shortCode) >= 0) ? 'rtl' : 'ltr';
+ },
+
+ // translate an element or document fragment
+ translate: translateFragment,
+
+ // this can be used to prevent race conditions
+ getReadyState: function() { return gReadyState; },
+ ready: function(callback) {
+ if (!callback) {
+ return;
+ } else if (gReadyState == 'complete' || gReadyState == 'interactive') {
+ window.setTimeout(function() {
+ callback();
+ });
+ } else if (document.addEventListener) {
+ document.addEventListener('localized', function once() {
+ document.removeEventListener('localized', once);
+ callback();
+ });
+ }
+ }
+ };
+}) (window, document);
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ach/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ach/viewer.properties
new file mode 100644
index 00000000..04cb71ae
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ach/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Pot buk mukato
+previous_label=Mukato
+next.title=Pot buk malubo
+next_label=Malubo
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Pot buk:
+page_of=pi {{pageCount}}
+
+zoom_out.title=Jwik Matidi
+zoom_out_label=Jwik Matidi
+zoom_in.title=Kwot Madit
+zoom_in_label=Kwot Madit
+zoom.title=Kwoti
+presentation_mode.title=Lokke i kit me tyer
+presentation_mode_label=Kit me tyer
+open_file.title=Yab Pwail
+open_file_label=Yab
+print.title=Go
+print_label=Go
+download.title=Gam
+download_label=Gam
+bookmark.title=Neno ma kombedi (lok onyo yab i dirica manyen)
+bookmark_label=Neno ma kombedi
+
+# Secondary toolbar and context menu
+tools.title=Gintic
+tools_label=Gintic
+first_page.title=Cit i pot buk mukwongo
+first_page.label=Cit i pot buk mukwongo
+first_page_label=Cit i pot buk mukwongo
+last_page.title=Cit i pot buk magiko
+last_page.label=Cit i pot buk magiko
+last_page_label=Cit i pot buk magiko
+page_rotate_cw.title=Wire i tung lacuc
+page_rotate_cw.label=Wire i tung lacuc
+page_rotate_cw_label=Wire i tung lacuc
+page_rotate_ccw.title=Wire i tung lacam
+page_rotate_ccw.label=Wire i tung lacam
+page_rotate_ccw_label=Wire i tung lacam
+
+hand_tool_enable.title=Ye gintic me cing
+hand_tool_enable_label=Ye gintic me cing
+hand_tool_disable.title=Juk gintic me cing
+hand_tool_disable_label=Juk gintic me cing
+
+# Document properties dialog box
+document_properties.title=Jami me gin acoya…
+document_properties_label=Jami me gin acoya…
+document_properties_file_name=Nying pwail:
+document_properties_file_size=Dit pa pwail:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Wiye:
+document_properties_author=Ngat mucoyo:
+document_properties_subject=Lok:
+document_properties_keywords=Lok mapire tek:
+document_properties_creation_date=Nino dwe me cwec:
+document_properties_modification_date=Nino dwe me yub:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Lacwec:
+document_properties_producer=Layub PDF:
+document_properties_version=Kit PDF:
+document_properties_page_count=Kwan me pot buk:
+document_properties_close=Lor
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Lok gintic ma inget
+toggle_sidebar_label=Lok gintic ma inget
+outline.title=Nyut rek pa gin acoya
+outline_label=Pek pa gin acoya
+attachments.title=Nyut twec
+attachments_label=Twec
+thumbs.title=Nyut cal
+thumbs_label=Cal
+findbar.title=Nong iye gin acoya
+findbar_label=Nong
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Pot buk {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Cal me pot buk {{page}}
+
+# Find panel button title and messages
+find_label=Nong:
+find_previous.title=Nong timme pa lok mukato
+find_previous_label=Mukato
+find_next.title=Nong timme pa lok malubo
+find_next_label=Malubo
+find_highlight=Wer weng
+find_match_case_label=Lok marwate
+find_reached_top=Oo iwi gin acoya, omede ki i tere
+find_reached_bottom=Oo i agiki me gin acoya, omede ki iwiye
+find_not_found=Lok pe ononge
+
+# Error panel labels
+error_more_info=Ngec Mukene
+error_less_info=Ngec Manok
+error_close=Lor
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Kwena: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Can kikore {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Pwail: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Rek: {{line}}
+rendering_error=Bal otime i kare me nyuto pot buk.
+
+# Predefined zoom values
+page_scale_width=Lac me iye pot buk
+page_scale_fit=Porre me pot buk
+page_scale_auto=Kwot pire kene
+page_scale_actual=Dite kikome
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Bal
+loading_error=Bal otime kun cano PDF.
+invalid_file_error=Pwail me PDF ma pe atir onyo obale woko.
+missing_file_error=Pwail me PDF tye ka rem.
+unexpected_response_error=Lagam mape kigeno pa lapok tic
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Lok angea manok]
+password_label=Ket mung me donyo me yabo pwail me PDF man.
+password_invalid=Mung me donyo pe atir. Tim ber i tem doki.
+password_ok=OK
+password_cancel=Juk
+
+printing_not_supported=Ciko: Layeny ma pe teno goyo liweng.
+printing_not_ready=Ciko: PDF pe ocane weng me agoya.
+web_fonts_disabled=Kijuko dit pa coc me kakube woko: pe romo tic ki dit pa coc me PDF ma kiketo i kine.
+document_colors_disabled=Pe ki ye ki gin acoya me PDF me tic ki rangi gi kengi: 'Ye pot buk me yero rangi mamegi kengi' kijuko woko i layeny.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/af/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/af/viewer.properties
new file mode 100644
index 00000000..d866b4d3
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/af/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Vorige bladsy
+previous_label=Vorige
+next.title=Volgende bladsy
+next_label=Volgende
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Bladsy:
+page_of=van {{pageCount}}
+
+zoom_out.title=Zoem uit
+zoom_out_label=Zoem uit
+zoom_in.title=Zoem in
+zoom_in_label=Zoem in
+zoom.title=Zoem
+presentation_mode.title=Wissel na voorleggingsmodus
+presentation_mode_label=Voorleggingsmodus
+open_file.title=Open lêer
+open_file_label=Open
+print.title=Druk
+print_label=Druk
+download.title=Laai af
+download_label=Laai af
+bookmark.title=Huidige aansig (kopieer of open in nuwe venster)
+bookmark_label=Huidige aansig
+
+# Secondary toolbar and context menu
+tools.title=Nutsgoed
+tools_label=Nutsgoed
+first_page.title=Gaan na eerste bladsy
+first_page.label=Gaan na eerste bladsy
+first_page_label=Gaan na eerste bladsy
+last_page.title=Gaan na laaste bladsy
+last_page.label=Gaan na laaste bladsy
+last_page_label=Gaan na laaste bladsy
+page_rotate_cw.title=Roteer kloksgewys
+page_rotate_cw.label=Roteer kloksgewys
+page_rotate_cw_label=Roteer kloksgewys
+page_rotate_ccw.title=Roteer anti-kloksgewys
+page_rotate_ccw.label=Roteer anti-kloksgewys
+page_rotate_ccw_label=Roteer anti-kloksgewys
+
+hand_tool_enable.title=Aktiveer handjie
+hand_tool_enable_label=Aktiveer handjie
+hand_tool_disable.title=Deaktiveer handjie
+hand_tool_disable_label=Deaktiveer handjie
+
+# Document properties dialog box
+document_properties.title=Dokumenteienskappe…
+document_properties_label=Dokumenteienskappe…
+document_properties_file_name=Lêernaam:
+document_properties_file_size=Lêergrootte:
+document_properties_kb={{size_kb}} kG ({{size_b}} grepe)
+document_properties_mb={{size_mb}} MG ({{size_b}} grepe)
+document_properties_title=Titel:
+document_properties_author=Outeur:
+document_properties_subject=Onderwerp:
+document_properties_keywords=Sleutelwoorde:
+document_properties_creation_date=Skeppingsdatum:
+document_properties_modification_date=Wysigingsdatum:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Skepper:
+document_properties_producer=PDF-vervaardiger:
+document_properties_version=PDF-weergawe:
+document_properties_page_count=Aantal bladsye:
+document_properties_close=Sluit
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Sypaneel aan/af
+toggle_sidebar_label=Sypaneel aan/af
+outline.title=Wys dokumentoorsig
+outline_label=Dokumentoorsig
+attachments.title=Wys aanhegsels
+attachments_label=Aanhegsels
+thumbs.title=Wys duimnaels
+thumbs_label=Duimnaels
+findbar.title=Soek in dokument
+findbar_label=Vind
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Bladsy {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Duimnael van bladsy {{page}}
+
+# Find panel button title and messages
+find_label=Vind:
+find_previous.title=Vind die vorige voorkoms van die frase
+find_previous_label=Vorige
+find_next.title=Vind die volgende voorkoms van die frase
+find_next_label=Volgende
+find_highlight=Verlig alle
+find_match_case_label=Kassensitief
+find_reached_top=Bokant van dokument is bereik; gaan voort van onder af
+find_reached_bottom=Einde van dokument is bereik; gaan voort van bo af
+find_not_found=Frase nie gevind nie
+
+# Error panel labels
+error_more_info=Meer inligting
+error_less_info=Minder inligting
+error_close=Sluit
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (ID: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Boodskap: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stapel: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Lêer: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Lyn: {{line}}
+rendering_error='n Fout het voorgekom toe die bladsy weergegee is.
+
+# Predefined zoom values
+page_scale_width=Bladsywydte
+page_scale_fit=Pas bladsy
+page_scale_auto=Outomatiese zoem
+page_scale_actual=Werklike grootte
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Fout
+loading_error='n Fout het voorgekom met die laai van die PDF.
+invalid_file_error=Ongeldige of korrupte PDF-lêer.
+missing_file_error=PDF-lêer is weg.
+unexpected_response_error=Onverwagse antwoord van bediener.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}}-annotasie
+password_label=Gee die wagwoord om dié PDF-lêer mee te open.
+password_invalid=Ongeldige wagwoord. Probeer gerus weer.
+password_ok=OK
+password_cancel=Kanselleer
+
+printing_not_supported=Waarskuwing: Dié blaaier ondersteun nie drukwerk ten volle nie.
+printing_not_ready=Waarskuwing: Die PDF is nog nie volledig gelaai vir drukwerk nie.
+web_fonts_disabled=Webfonte is gedeaktiveer: kan nie PDF-fonte wat ingebed is, gebruik nie.
+document_colors_disabled=PDF-dokumente word nie toegelaat om hul eie kleure te gebruik nie: 'Laat bladsye toe om hul eie kleure te kies' is gedeaktiveer in die blaaier.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ak/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ak/viewer.properties
new file mode 100644
index 00000000..883c2ab8
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ak/viewer.properties
@@ -0,0 +1,123 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Krataafa baako a etwa mu
+previous_label=Ekyiri-baako
+next.title=Krataafa a edi so baako
+next_label=Dea-É›-di-so-baako
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Krataafa:
+page_of=wÉ” {{pageCount}}
+
+zoom_out.title=Zuum pue
+zoom_out_label=Zuum ba abɔnten
+zoom_in.title=Zuum kÉ” mu
+zoom_in_label=Zuum kÉ” mu
+zoom.title=Zuum
+presentation_mode.title=Sesa kɔ Yɛkyerɛ Tebea mu
+presentation_mode_label=Yɛkyerɛ Tebea
+open_file.title=Bue Fael
+open_file_label=Bue
+print.title=Prente
+print_label=Prente
+download.title=Twe
+download_label=Twe
+bookmark.title=Seisei nhwÉ› (fa anaaso bue wÉ” tokuro foforo mu)
+bookmark_label=Seisei nhwÉ›
+
+# Secondary toolbar and context menu
+
+
+# Document properties dialog box
+document_properties_title=Ti asɛm:
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=SÉ” anaaso dum saedbaa
+toggle_sidebar_label=SÉ” anaaso dum saedbaa
+outline.title=Kyerɛ dɔkomɛnt bɔbea
+outline_label=Dɔkomɛnt bɔbea
+thumbs.title=KyerÉ› mfoniwaa
+thumbs_label=Mfoniwaa
+findbar.title=Hu wɔ dɔkomɛnt no mu
+findbar_label=Hu
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Krataafa {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Krataafa ne mfoniwaa {{page}}
+
+# Find panel button title and messages
+find_label=Hunu:
+find_previous.title=San hu fres wÉ” ekyiri baako
+find_previous_label=Ekyiri baako
+find_next.title=San hu fres no wÉ” enim baako
+find_next_label=Ndiso
+find_highlight=HyÉ› bibiara nso
+find_match_case_label=Fa susu kaase
+find_reached_top=Edu krataafa ne soro, atoa so efiri ase
+find_reached_bottom=Edu krataafa n'ewiei, atoa so efiri soro
+find_not_found=Ennhu fres
+
+# Error panel labels
+error_more_info=Infɔmehyɛn bio a wɔka ho
+error_less_info=Te infɔmehyɛn bio a wɔka ho so
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{vɛɛhyen}} (nsi: {{si}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Nkrato: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Staake: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fael: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Laen: {{line}}
+rendering_error=Mfomso bae wÉ” bere a wÉ” rekyerÉ› krataafa no.
+
+# Predefined zoom values
+page_scale_width=Krataafa tɛtrɛtɛ
+page_scale_fit=Krataafa ehimtwa
+page_scale_auto=Zuum otomatik
+page_scale_actual=Kɛseyɛ ankasa
+
+# Loading indicator messages
+loading_error_indicator=Mfomso
+loading_error=Mfomso bae wɔ bere a wɔreloode PDF no.
+invalid_file_error=PDF fael no nndi mu anaaso ho atÉ” kyima.
+missing_file_error=PDF fael no ayera.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Tɛkst-nyiano]
+password_ok=OK
+password_cancel=Twa-mu
+
+printing_not_supported=Kɔkɔbɔ: Brawsa yi nnhyɛ daa mma prent ho kwan.
+printing_not_ready=Kɔkɔbɔ: Wɔnntwee PDF fael no nyinara mmbaee ama wo ɛ tumi aprente.
+web_fonts_disabled=Ɔedum wɛb-mfɔnt: nntumi mmfa PDF mfɔnt a wɔhyɛ mu nndi dwuma.
+document_colors_disabled=Wɔmma ho kwan sɛ PDF adɔkomɛnt de wɔn ara wɔn ahosu bɛdi dwuma: wɔ adum 'Ma ho kwan ma nkrataafa mpaw wɔn ara wɔn ahosu' wɔ brawsa yi mu.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/an/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/an/viewer.properties
new file mode 100644
index 00000000..d9b7f66a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/an/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Pachina anterior
+previous_label=Anterior
+next.title=Pachina siguient
+next_label=Siguient
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Pachina:
+page_of=de {{pageCount}}
+
+zoom_out.title=Achiquir
+zoom_out_label=Achiquir
+zoom_in.title=Agrandir
+zoom_in_label=Agrandir
+zoom.title=Grandaria
+presentation_mode.title=Cambear t'o modo de presentación
+presentation_mode_label=Modo de presentación
+open_file.title=Ubrir o fichero
+open_file_label=Ubrir
+print.title=Imprentar
+print_label=Imprentar
+download.title=Descargar
+download_label=Descargar
+bookmark.title=Vista actual (copiar u ubrir en una nueva finestra)
+bookmark_label=Anvista actual
+
+# Secondary toolbar and context menu
+tools.title=Ferramientas
+tools_label=Ferramientas
+first_page.title=Ir ta la primer pachina
+first_page.label=Ir ta la primer pachina
+first_page_label=Ir ta la primer pachina
+last_page.title=Ir ta la zaguer pachina
+last_page.label=Ir ta la zaguera pachina
+last_page_label=Ir ta la zaguer pachina
+page_rotate_cw.title=Chirar enta la dreita
+page_rotate_cw.label=Chirar enta la dreita
+page_rotate_cw_label=Chira enta la dreita
+page_rotate_ccw.title=Chirar enta la zurda
+page_rotate_ccw.label=Chirar en sentiu antihorario
+page_rotate_ccw_label=Chirar enta la zurda
+
+hand_tool_enable.title=Activar a ferramienta man
+hand_tool_enable_label=Activar a ferramenta man
+hand_tool_disable.title=Desactivar a ferramienta man
+hand_tool_disable_label=Desactivar a ferramienta man
+
+# Document properties dialog box
+document_properties.title=Propiedatz d'o documento...
+document_properties_label=Propiedatz d'o documento...
+document_properties_file_name=Nombre de fichero:
+document_properties_file_size=Grandaria d'o fichero:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Titol:
+document_properties_author=Autor:
+document_properties_subject=Afer:
+document_properties_keywords=Parolas clau:
+document_properties_creation_date=Calendata de creyación:
+document_properties_modification_date=Calendata de modificación:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Creyador:
+document_properties_producer=Creyador de PDF:
+document_properties_version=Versión de PDF:
+document_properties_page_count=Numero de pachinas:
+document_properties_close=Zarrar
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Amostrar u amagar a barra lateral
+toggle_sidebar_label=Amostrar a barra lateral
+outline.title=Amostrar o esquema d'o documento
+outline_label=Esquema d'o documento
+attachments.title=Amostrar os adchuntos
+attachments_label=Adchuntos
+thumbs.title=Amostrar as miniaturas
+thumbs_label=Miniaturas
+findbar.title=Trobar en o documento
+findbar_label=Trobar
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Pachina {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatura d'a pachina {{page}}
+
+# Find panel button title and messages
+find_label=Trobar:
+find_previous.title=Trobar l'anterior coincidencia d'a frase
+find_previous_label=Anterior
+find_next.title=Trobar a siguient coincidencia d'a frase
+find_next_label=Siguient
+find_highlight=Resaltar-lo tot
+find_match_case_label=Coincidencia de mayusclas/minusclas
+find_reached_top=S'ha plegau a l'inicio d'o documento, se contina dende baixo
+find_reached_bottom=S'ha plegau a la fin d'o documento, se contina dende alto
+find_not_found=No s'ha trobau a frase
+
+# Error panel labels
+error_more_info=Mas información
+error_less_info=Menos información
+error_close=Zarrar
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mensache: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Pila: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fichero: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linia: {{line}}
+rendering_error=Ha ocurriu una error en renderizar a pachina.
+
+# Predefined zoom values
+page_scale_width=Amplaria d'a pachina
+page_scale_fit=Achuste d'a pachina
+page_scale_auto=Grandaria automatica
+page_scale_actual=Grandaria actual
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Error
+loading_error=S'ha produciu una error en cargar o PDF.
+invalid_file_error=O PDF no ye valido u ye estorbau.
+missing_file_error=No i ha fichero PDF.
+unexpected_response_error=Respuesta a lo servicio inasperada.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anotación {{type}}]
+password_label=Introduzca a clau ta ubrir iste fichero PDF.
+password_invalid=Clau invalida. Torna a intentar-lo.
+password_ok=Acceptar
+password_cancel=Cancelar
+
+printing_not_supported=Pare cuenta: Iste navegador no maneya totalment as impresions.
+printing_not_ready=Aviso: Encara no se ha cargau completament o PDF ta imprentar-lo.
+web_fonts_disabled=As fuents web son desactivadas: no se puet incrustar fichers PDF.
+document_colors_disabled=Os documentos PDF no pueden fer servir as suyas propias colors: 'Permitir que as pachinas triguen as suyas propias colors' ye desactivau en o navegador.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ar/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ar/viewer.properties
new file mode 100644
index 00000000..d114bbb1
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ar/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=الصÙحة السابقة
+previous_label=السابقة
+next.title=الصÙحة التالية
+next_label=التالية
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=صÙحة:
+page_of=من {{pageCount}}
+
+zoom_out.title=بعّد
+zoom_out_label=بعّد
+zoom_in.title=قرّب
+zoom_in_label=قرّب
+zoom.title=التقريب
+presentation_mode.title=انتقل لوضع العرض التقديمي
+presentation_mode_label=وضع العرض التقديمي
+open_file.title=اÙتح ملÙًا
+open_file_label=اÙتح
+print.title=اطبع
+print_label=اطبع
+download.title=نزّل
+download_label=نزّل
+bookmark.title=المنظور الحالي (انسخ أو اÙتح ÙÙŠ ناÙذة جديدة)
+bookmark_label=المنظور الحالي
+
+# Secondary toolbar and context menu
+tools.title=الأدوات
+tools_label=الأدوات
+first_page.title=اذهب إلى الصÙحة الأولى
+first_page.label=اذهب إلى الصÙحة الأولى
+first_page_label=اذهب إلى الصÙحة الأولى
+last_page.title=اذهب إلى الصÙحة الأخيرة
+last_page.label=اذهب إلى الصÙحة الأخيرة
+last_page_label=اذهب إلى الصÙحة الأخيرة
+page_rotate_cw.title=أدر باتجاه عقارب الساعة
+page_rotate_cw.label=أدر باتجاه عقارب الساعة
+page_rotate_cw_label=أدر باتجاه عقارب الساعة
+page_rotate_ccw.title=أدر بعكس اتجاه عقارب الساعة
+page_rotate_ccw.label=أدر بعكس اتجاه عقارب الساعة
+page_rotate_ccw_label=أدر بعكس اتجاه عقارب الساعة
+
+hand_tool_enable.title=Ùعّل أداة اليد
+hand_tool_enable_label=Ùعّل أداة اليد
+hand_tool_disable.title=عطّل أداة اليد
+hand_tool_disable_label=عطّل أداة اليد
+
+# Document properties dialog box
+document_properties.title=خصائص المستند…
+document_properties_label=خصائص المستند…
+document_properties_file_name=اسم الملÙ:
+document_properties_file_size=حجم الملÙ:
+document_properties_kb={{size_kb}} ك.بايت ({{size_b}} بايت)
+document_properties_mb={{size_mb}} م.بايت ({{size_b}} بايت)
+document_properties_title=العنوان:
+document_properties_author=المؤلÙ:
+document_properties_subject=الموضوع:
+document_properties_keywords=الكلمات الأساسية:
+document_properties_creation_date=تاريخ الإنشاء:
+document_properties_modification_date=تاريخ التعديل:
+document_properties_date_string={{date}}، {{time}}
+document_properties_creator=المنشئ:
+document_properties_producer=منتج PDF:
+document_properties_version=إصدارة PDF:
+document_properties_page_count=عدد الصÙحات:
+document_properties_close=أغلق
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=بدّل الشريط الجانبي
+toggle_sidebar_label=بدّل الشريط الجانبي
+outline.title=اعرض مخطط المستند
+outline_label=مخطط المستند
+attachments.title=اعرض المرÙقات
+attachments_label=المÙرÙقات
+thumbs.title=اعرض Ù…Ùصغرات
+thumbs_label=Ù…Ùصغّرات
+findbar.title=ابحث ÙÙŠ المستند
+findbar_label=ابحث
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=صÙحة {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=مصغّرة صÙحة {{page}}
+
+# Find panel button title and messages
+find_label=ابحث:
+find_previous.title=ابحث عن التّواجد السّابق للعبارة
+find_previous_label=السابق
+find_next.title=ابحث عن التّواجد التّالي للعبارة
+find_next_label=التالي
+find_highlight=أبرÙز الكل
+find_match_case_label=طابق حالة الأحرÙ
+find_reached_top=تابعت من الأسÙÙ„ بعدما وصلت إلى بداية المستند
+find_reached_bottom=تابعت من الأعلى بعدما وصلت إلى نهاية المستند
+find_not_found=لا وجود للعبارة
+
+# Error panel labels
+error_more_info=معلومات أكثر
+error_less_info=معلومات أقل
+error_close=أغلق
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=â€PDF.js Ù†{{version}} â€(بناء: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=الرسالة: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=الرصّة: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=الملÙ: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=السطر: {{line}}
+rendering_error=حدث خطأ أثناء عرض الصÙحة.
+
+# Predefined zoom values
+page_scale_width=عرض الصÙحة
+page_scale_fit=ملائمة الصÙحة
+page_scale_auto=تقريب تلقائي
+page_scale_actual=الحجم الحقيقي
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}Ùª
+
+# Loading indicator messages
+loading_error_indicator=عطل
+loading_error=حدث عطل أثناء تحميل مل٠PDF.
+invalid_file_error=مل٠PDF تال٠أو غير صحيح.
+missing_file_error=مل٠PDF غير موجود.
+unexpected_response_error=استجابة خادوم غير متوقعة.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[تعليق {{type}}]
+password_label=أدخل لكلمة السر Ù„Ùتح هذا الملÙ.
+password_invalid=كلمة سر خطأ. من Ùضلك أعد المحاولة.
+password_ok=حسنا
+password_cancel=ألغÙ
+
+printing_not_supported=تحذير: لا يدعم هذا المتصÙØ­ الطباعة بشكل كامل.
+printing_not_ready=تحذير: مل٠PDF لم ÙŠÙحمّل كاملًا للطباعة.
+web_fonts_disabled=خطوط الوب Ù…Ùعطّلة: تعذّر استخدام خطوط PDF المÙضمّنة.
+document_colors_disabled=ليس مسموحًا لملÙات PDF باستخدام ألوانها الخاصة: خيار 'اسمح للصÙحات باختيار ألوانها الخاصة' ليس Ù…ÙÙعّلًا ÙÙŠ المتصÙØ­.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/as/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/as/viewer.properties
new file mode 100644
index 00000000..a0d637f8
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/as/viewer.properties
@@ -0,0 +1,164 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=পূৰà§à¦¬à§±à§°à§à¦¤à§€ পৃষà§à¦ à¦¾
+previous_label=পূৰà§à¦¬à§±à§°à§à¦¤à§€
+next.title=পৰৱৰà§à¦¤à§€ পৃষà§à¦ à¦¾
+next_label=পৰৱৰà§à¦¤à§€
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=পৃষà§à¦ à¦¾:
+page_of=ৰ {{pageCount}}
+
+zoom_out.title=জà§à¦® আউট
+zoom_out_label=জà§à¦® আউট
+zoom_in.title=জà§à¦® ইন
+zoom_in_label=জà§à¦® ইন
+zoom.title=জà§à¦® কৰক
+presentation_mode.title=উপসà§à¦¥à¦¾à¦ªà¦¨ অৱসà§à¦¥à¦¾à¦²à§‡ যাওক
+presentation_mode_label=উপসà§à¦¥à¦¾à¦ªà¦¨ অৱসà§à¦¥à¦¾
+open_file.title=ফাইল খোলক
+open_file_label=খোলক
+print.title=পà§à§°à¦¿à¦¨à§à¦Ÿ কৰক
+print_label=পà§à§°à¦¿à¦¨à§à¦Ÿ কৰক
+download.title=ডাউনল'ড কৰক
+download_label=ডাউনল'ড কৰক
+bookmark.title=বৰà§à¦¤à¦®à¦¾à¦¨ দৃশà§à¦¯ (কপি কৰক অথবা নতà§à¦¨ উইনà§à¦¡à§‹à¦¤ খোলক)
+bookmark_label=বৰà§à¦¤à¦®à¦¾à¦¨ দৃশà§à¦¯
+
+# Secondary toolbar and context menu
+tools.title=সà¦à¦œà§à¦²à¦¿à¦¸à¦®à§‚হ
+tools_label=সà¦à¦œà§à¦²à¦¿à¦¸à¦®à§‚হ
+first_page.title=পà§à§°à¦¥à¦® পৃষà§à¦ à¦¾à¦¤ যাওক
+first_page.label=পà§à§°à¦¥à¦® পৃষà§à¦ à¦¾à¦¤ যাওক
+first_page_label=পà§à§°à¦¥à¦® পৃষà§à¦ à¦¾à¦¤ যাওক
+last_page.title=সৰà§à¦¬à¦¶à§‡à¦· পৃষà§à¦ à¦¾à¦¤ যাওক
+last_page.label=সৰà§à¦¬à¦¶à§‡à¦· পৃষà§à¦ à¦¾à¦¤ যাওক
+last_page_label=সৰà§à¦¬à¦¶à§‡à¦· পৃষà§à¦ à¦¾à¦¤ যাওক
+page_rotate_cw.title=ঘড়ীৰ দিশত ঘà§à§°à¦¾à¦“ক
+page_rotate_cw.label=ঘড়ীৰ দিশত ঘà§à§°à¦¾à¦“ক
+page_rotate_cw_label=ঘড়ীৰ দিশত ঘà§à§°à¦¾à¦“ক
+page_rotate_ccw.title=ঘড়ীৰ ওলোটা দিশত ঘà§à§°à¦¾à¦“ক
+page_rotate_ccw.label=ঘড়ীৰ ওলোটা দিশত ঘà§à§°à¦¾à¦“ক
+page_rotate_ccw_label=ঘড়ীৰ ওলোটা দিশত ঘà§à§°à¦¾à¦“ক
+
+hand_tool_enable.title=হাà¦à¦¤ সà¦à¦œà§à¦²à¦¿ সামৰà§à¦¥à¦¬à¦¾à¦¨ কৰক
+hand_tool_enable_label=হাà¦à¦¤ সà¦à¦œà§à¦²à¦¿ সামৰà§à¦¥à¦¬à¦¾à¦¨ কৰক
+hand_tool_disable.title=হাà¦à¦¤ সà¦à¦œà§à¦²à¦¿ অসামৰà§à¦¥à¦¬à¦¾à¦¨ কৰক
+hand_tool_disable_label=হাà¦à¦¤ সà¦à¦œà§à¦²à¦¿ অসামৰà§à¦¥à¦¬à¦¾à¦¨ কৰক
+
+# Document properties dialog box
+document_properties.title=দসà§à¦¤à¦¾à¦¬à§‡à¦œà§° বৈশিষà§à¦Ÿà§à¦¯à¦¸à¦®à§‚হ…
+document_properties_label=দসà§à¦¤à¦¾à¦¬à§‡à¦œà§° বৈশিষà§à¦Ÿà§à¦¯à¦¸à¦®à§‚হ…
+document_properties_file_name=ফাইল নাম:
+document_properties_file_size=ফাইলৰ আকাৰ:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=শীৰà§à¦·à¦•:
+document_properties_author=লেখক:
+document_properties_subject=বিষয়:
+document_properties_keywords=কিৱাৰà§à¦¡à¦¸à¦®à§‚হ:
+document_properties_creation_date=সৃষà§à¦Ÿà¦¿à§° তাৰিখ:
+document_properties_modification_date=পৰিবৰà§à¦¤à¦¨à§° তাৰিখ:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=সৃষà§à¦Ÿà¦¿à¦•à§°à§à¦¤à¦¾:
+document_properties_producer=PDF উৎপাদক:
+document_properties_version=PDF সংসà§à¦•à§°à¦£:
+document_properties_page_count=পৃষà§à¦ à¦¾à§° গণনা:
+document_properties_close=বনà§à¦§ কৰক
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=কাষবাৰ টগল কৰক
+toggle_sidebar_label=কাষবাৰ টগল কৰক
+outline.title=দসà§à¦¤à¦¾à¦¬à§‡à¦œ আউটলাইন দেখà§à§±à¦¾à¦“ক
+outline_label=দসà§à¦¤à¦¾à¦¬à§‡à¦œ আউটলাইন
+attachments.title=à¦à¦Ÿà¦¾à¦šà¦®à§‡à¦¨à§à¦Ÿà¦¸à¦®à§‚হ দেখà§à§±à¦¾à¦“ক
+attachments_label=à¦à¦Ÿà¦¾à¦šà¦®à§‡à¦¨à§à¦Ÿà¦¸à¦®à§‚হ
+thumbs.title=থামà§à¦¬à¦¨à§‡à¦‡à¦²à¦¸à¦®à§‚হ দেখà§à§±à¦¾à¦“ক
+thumbs_label=থামà§à¦¬à¦¨à§‡à¦‡à¦²à¦¸à¦®à§‚হ
+findbar.title=দসà§à¦¤à¦¾à¦¬à§‡à¦œà¦¤ সনà§à¦§à¦¾à¦¨ কৰক
+findbar_label=সনà§à¦§à¦¾à¦¨ কৰক
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=পৃষà§à¦ à¦¾ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=পৃষà§à¦ à¦¾à§° থামà§à¦¬à¦¨à§‡à¦‡à¦² {{page}}
+
+# Find panel button title and messages
+find_label=সনà§à¦§à¦¾à¦¨ কৰক:
+find_previous.title=বাকà§à¦¯à¦¾à¦‚শৰ পূৰà§à¦¬à§±à§°à§à¦¤à§€ উপসà§à¦¥à¦¿à¦¤à¦¿ সনà§à¦§à¦¾à¦¨ কৰক
+find_previous_label=পূৰà§à¦¬à§±à§°à§à¦¤à§€
+find_next.title=বাকà§à¦¯à¦¾à¦‚শৰ পৰৱৰà§à¦¤à§€ উপসà§à¦¥à¦¿à¦¤à¦¿ সনà§à¦§à¦¾à¦¨ কৰক
+find_next_label=পৰৱৰà§à¦¤à§€
+find_highlight=সকলো উজà§à¦œà§à¦¬à¦² কৰক
+find_match_case_label=ফলা মিলাওক
+find_reached_top=তলৰ পৰা আৰমà§à¦­ কৰি, দসà§à¦¤à¦¾à¦¬à§‡à¦œà§° ওপৰলৈ অহা হৈছে
+find_reached_bottom=ওপৰৰ পৰা আৰমà§à¦­ কৰি, দসà§à¦¤à¦¾à¦¬à§‡à¦œà§° তললৈ অহা হৈছে
+find_not_found=বাকà§à¦¯à¦¾à¦‚শ পোৱা নগল
+
+# Error panel labels
+error_more_info=অধিক তথà§à¦¯
+error_less_info=কম তথà§à¦¯
+error_close=বনà§à¦§ কৰক
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=বাৰà§à¦¤à¦¾: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=সà§à¦Ÿà§‡à¦•: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ফাইল: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=শাৰী: {{line}}
+rendering_error=à¦à¦‡ পৃষà§à¦ à¦¾ ৰেণà§à¦¡à¦¾à§° কৰোতে à¦à¦Ÿà¦¾ তà§à§°à§à¦Ÿà¦¿ দেখা দিলে।
+
+# Predefined zoom values
+page_scale_width=পৃষà§à¦ à¦¾à§° পà§à§°à¦¸à§à¦¥
+page_scale_fit=পৃষà§à¦ à¦¾ খাপ
+page_scale_auto=সà§à¦¬à¦šà¦¾à¦²à¦¿à¦¤ জà§à¦®
+page_scale_actual=পà§à§°à¦•à§ƒà¦¤ আকাৰ
+
+# Loading indicator messages
+loading_error_indicator=তà§à§°à§à¦Ÿà¦¿
+loading_error=PDF ল'ড কৰোতে à¦à¦Ÿà¦¾ তà§à§°à§à¦Ÿà¦¿ দেখা দিলে।
+invalid_file_error=অবৈধ অথবা কà§à¦·à¦¤à¦¿à¦—à§à§°à¦¸à§à¦¥ PDF file।
+missing_file_error=সনà§à¦§à¦¾à¦¨à¦¹à¦¿à¦¨ PDF ফাইল।
+unexpected_response_error=অপà§à§°à¦¤à§à¦¯à¦¾à¦¶à¦¿à¦¤ চাৰà§à¦­à¦¾à§° পà§à§°à¦¤à¦¿à¦•à§à§°à¦¿à§Ÿà¦¾à¥¤
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} টোকা]
+password_label=à¦à¦‡ PDF ফাইল খোলিবলৈ পাছৱৰà§à¦¡ সà§à¦®à§à§±à¦¾à¦“ক।
+password_invalid=অবৈধ পাছৱৰà§à¦¡à¥¤ অনà§à¦—à§à§°à¦¹ কৰি পà§à¦¨à§° চেষà§à¦Ÿà¦¾ কৰক।
+password_ok=ঠিক আছে
+password_cancel=বাতিল কৰক
+
+printing_not_supported=সতৰà§à¦•à¦¬à¦¾à§°à§à¦¤à¦¾: পà§à§°à¦¿à¦¨à§à¦Ÿà¦¿à¦‚ à¦à¦‡ বà§à§°à¦¾à¦‰à¦›à¦¾à§° দà§à¦¬à¦¾à§°à¦¾ সমà§à¦ªà§‚ৰà§à¦£à¦­à¦¾à§±à§‡ সমৰà§à¦¥à¦¿à¦¤ নহয়।
+printing_not_ready=সতৰà§à¦•à¦¬à¦¾à§°à§à¦¤à¦¾: PDF পà§à§°à¦¿à¦¨à§à¦Ÿà¦¿à¦‚ৰ বাবে সমà§à¦ªà§‚ৰà§à¦£à¦­à¦¾à§±à§‡ ল'ডেড নহয়।
+web_fonts_disabled=ৱেব ফনà§à¦Ÿà¦¸à¦®à§‚হ অসামৰà§à¦¥à¦¬à¦¾à¦¨ কৰা আছে: অনà§à¦¤à§°à§à¦­à§à¦•à§à¦¤ PDF ফনà§à¦Ÿà¦¸à¦®à§‚হ বà§à¦¯à§±à¦¹à¦¾à§° কৰিবলে অকà§à¦·à¦®à¥¤
+document_colors_disabled=PDF দসà§à¦¤à¦¾à¦¬à§‡à¦œà¦¸à¦®à§‚হৰ সিহতৰ নিজসà§à¦¬ ৰঙ বà§à¦¯à§±à¦¹à¦¾à§° কৰাৰ অনà§à¦®à¦¤à¦¿ নাই: বà§à§°à¦¾à¦‰à¦›à¦¾à§°à¦¤ 'পৃষà§à¦ à¦¾à¦¸à¦®à§‚হক সিহতৰ নিজসà§à¦¬ ৰঙ নিৰà§à¦¬à¦¾à¦šà¦¨ কৰাৰ অনà§à¦®à¦¤à¦¿ দিয়ক' অসামৰà§à¦¥à¦¬à¦¾à¦¨ কৰা আছে।
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ast/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ast/viewer.properties
new file mode 100644
index 00000000..daa5cbf0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ast/viewer.properties
@@ -0,0 +1,110 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+previous.title = Páxina anterior
+previous_label = Anterior
+next.title = Páxina siguiente
+next_label = Siguiente
+page_label = Páxina:
+page_of = de {{pageCount}}
+zoom_out.title = Reducir
+zoom_out_label = Reducir
+zoom_in.title = Aumentar
+zoom_in_label = Aumentar
+zoom.title = Tamañu
+print.title = Imprentar
+print_label = Imprentar
+open_file.title = Abrir ficheru
+open_file_label = Abrir
+download.title = Descargar
+download_label = Descargar
+bookmark.title = Vista actual (copiar o abrir nuna nueva ventana)
+bookmark_label = Vista actual
+outline.title = Amosar l'esquema del documentu
+outline_label = Esquema del documentu
+thumbs.title = Amosar miniatures
+thumbs_label = Miniatures
+thumb_page_title = Páxina {{page}}
+thumb_page_canvas = Miniatura de la páxina {{page}}
+error_more_info = Más información
+error_less_info = Menos información
+error_close = Zarrar
+error_message = Mensaxe: {{message}}
+error_stack = Pila: {{stack}}
+error_file = Ficheru: {{file}}
+error_line = Llinia: {{line}}
+rendering_error = Hebo un fallu al renderizar la páxina.
+page_scale_width = Anchor de la páxina
+page_scale_fit = Axuste de la páxina
+page_scale_auto = Tamañu automáticu
+page_scale_actual = Tamañu actual
+loading_error_indicator = Fallu
+loading_error = Hebo un fallu al cargar el PDF.
+printing_not_supported = Avisu: Imprentar nun tien sofitu téunicu completu nesti navegador.
+presentation_mode_label =
+presentation_mode.title =
+page_rotate_cw.label =
+page_rotate_ccw.label =
+last_page.label = Dir a la cabera páxina
+invalid_file_error = Ficheru PDF inválidu o corruptu.
+first_page.label = Dir a la primer páxina
+findbar_label = Guetar
+findbar.title = Guetar nel documentu
+find_previous_label = Anterior
+find_previous.title = Alcontrar l'anterior apaición de la fras
+find_not_found = Frase non atopada
+find_next_label = Siguiente
+find_next.title = Alcontrar la siguiente apaición d'esta fras
+find_match_case_label = Coincidencia de mayús./minús.
+find_label = Guetar:
+find_highlight = Remarcar toos
+find_reached_top=Algamóse'l principiu del documentu, siguir dende'l final
+find_reached_bottom=Algamóse'l final del documentu, siguir dende'l principiu
+web_fonts_disabled = Les fontes web tán desactivaes: ye imposible usar les fontes PDF embebíes.
+toggle_sidebar_label = Camudar barra llateral
+toggle_sidebar.title = Camudar barra llateral
+missing_file_error = Nun hai ficheru PDF.
+error_version_info = PDF.js v{{version}} (build: {{build}})
+printing_not_ready = Avisu: Esti PDF nun se cargó completamente pa poder imprentase.
+text_annotation_type.alt = [Anotación {{type}}]
+document_colors_disabled = Los documentos PDF nun tienen permitío usar los sos propios colores: 'Permitir a les páxines elexir los sos propios colores' ta desactivao nel navegador.
+tools_label = Ferramientes
+tools.title = Ferramientes
+password_ok = Aceutar
+password_label = Introduz la contraseña p'abrir esti ficheru PDF
+password_invalid = Contraseña non válida. Vuelvi a intentalo.
+password_cancel = Encaboxar
+page_rotate_cw_label = Xirar en sen horariu
+page_rotate_cw.title = Xirar en sen horariu
+page_rotate_ccw_label = Xirar en sen antihorariu
+page_rotate_ccw.title = Xirar en sen antihorariu
+last_page_label = Dir a la postrer páxina
+last_page.title = Dir a la postrer páxina
+hand_tool_enable_label = Activar ferramienta mano
+hand_tool_enable.title = Activar ferramienta mano
+hand_tool_disable_label = Desactivar ferramienta mano
+hand_tool_disable.title = Desactivar ferramienta mano
+first_page_label = Dir a la primer páxina
+first_page.title = Dir a la primer páxina
+document_properties_version = Versión PDF:
+document_properties_title = Títulu:
+document_properties_subject = Asuntu:
+document_properties_producer = Productor PDF:
+document_properties_page_count = Númberu de páxines:
+document_properties_modification_date = Data de modificación:
+document_properties_mb = {{size_mb}} MB ({{size_b}} bytes)
+document_properties_label = Propiedaes del documentu…
+document_properties_keywords = Pallabres clave:
+document_properties_kb = {{size_kb}} KB ({{size_b}} bytes)
+document_properties_file_size = Tamañu de ficheru:
+document_properties_file_name = Nome de ficheru:
+document_properties_date_string = {{date}}, {{time}}
+document_properties_creator = Creador:
+document_properties_creation_date = Data de creación:
+document_properties_close = Zarrar
+document_properties_author = Autor:
+document_properties.title = Propiedaes del documentu…
+attachments_label = Axuntos
+attachments.title = Amosar axuntos
+unexpected_response_error = Rempuesta inesperada del sirvidor.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/az/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/az/viewer.properties
new file mode 100644
index 00000000..ef77c644
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/az/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=ÆvvÉ™lki sÉ™hifÉ™
+previous_label=ÆvvÉ™lkini tap
+next.title=Növbəti səhifə
+next_label=İrəli
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Səhifə:
+page_of=/ {{pageCount}}
+
+zoom_out.title=UzaqlaÅŸ
+zoom_out_label=UzaqlaÅŸ
+zoom_in.title=Yaxınlaş
+zoom_in_label=Yaxınlaş
+zoom.title=Yaxınlaşdırma
+presentation_mode.title=Təqdimat Rejiminə Keç
+presentation_mode_label=Təqdimat Rejimi
+open_file.title=Fayl Aç
+open_file_label=Aç
+print.title=Yazdır
+print_label=Yazdır
+download.title=Yüklə
+download_label=Yüklə
+bookmark.title=Hazırkı görünüş (köçür və ya yeni pəncərədə aç)
+bookmark_label=Hazırki görünüş
+
+# Secondary toolbar and context menu
+tools.title=Alətlər
+tools_label=Alətlər
+first_page.title=İlk Səhifəyə get
+first_page.label=İlk Səhifəyə get
+first_page_label=İlk Səhifəyə get
+last_page.title=Son Səhifəyə get
+last_page.label=Son Səhifəyə get
+last_page_label=Son Səhifəyə get
+page_rotate_cw.title=Saat İstiqamətində Fırlat
+page_rotate_cw.label=Saat İstiqamətində Fırlat
+page_rotate_cw_label=Saat İstiqamətində Fırlat
+page_rotate_ccw.title=Saat Ä°stiqamÉ™tinin ÆksinÉ™ Fırlat
+page_rotate_ccw.label=Saat Ä°stiqamÉ™tinin ÆksinÉ™ Fırlat
+page_rotate_ccw_label=Saat Ä°stiqamÉ™tinin ÆksinÉ™ Fırlat
+
+hand_tool_enable.title=Æl alÉ™tini aktiv et
+hand_tool_enable_label=Æl alÉ™tini aktiv et
+hand_tool_disable.title=Æl alÉ™tini deaktiv et
+hand_tool_disable_label=Æl alÉ™tini deaktiv et
+
+# Document properties dialog box
+document_properties.title=Sənəd xüsusiyyətləri…
+document_properties_label=Sənəd xüsusiyyətləri…
+document_properties_file_name=Fayl adı:
+document_properties_file_size=Fayl ölçüsü:
+document_properties_kb={{size_kb}} KB ({{size_b}} bayt)
+document_properties_mb={{size_mb}} MB ({{size_b}} bayt)
+document_properties_title=Başlık:
+document_properties_author=Müəllif:
+document_properties_subject=Mövzu:
+document_properties_keywords=Açar sözlər:
+document_properties_creation_date=Yaradılış Tarixi :
+document_properties_modification_date=Dəyişdirilmə Tarixi :
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Yaradan:
+document_properties_producer=PDF yaradıcısı:
+document_properties_version=PDF versiyası:
+document_properties_page_count=Səhifə sayı:
+document_properties_close=Qapat
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Yan Paneli Aç/Bağla
+toggle_sidebar_label=Yan Paneli Aç/Bağla
+outline.title=Sənəd struktunu göstər
+outline_label=Sənəd strukturu
+attachments.title=Bağlamaları göstər
+attachments_label=BaÄŸlamalar
+thumbs.title=Kiçik şəkilləri göstər
+thumbs_label=Kiçik şəkillər
+findbar.title=Sənəddə Tap
+findbar_label=Axtar
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Səhifə{{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}} səhifəsinin kiçik vəziyyəti
+
+# Find panel button title and messages
+find_label=Tap:
+find_previous.title=Bir öncəki uyğun gələn sözü tapır
+find_previous_label=Geri
+find_next.title=Bir sonrakı uyğun gələn sözü tapır
+find_next_label=İrəli
+find_highlight=İşarələ
+find_match_case_label=Böyük/kiçik hərfə həssaslıq
+find_reached_top=Sənədin yuxarısına çatdı, aşağıdan davam edir
+find_reached_bottom=Sənədin sonuna çatdı, yuxarıdan davam edir
+find_not_found=Uyğunlaşma tapılmadı
+
+# Error panel labels
+error_more_info=Daha çox məlumati
+error_less_info=Daha az məlumat
+error_close=Qapat
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (yığma: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=İsmarıc: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stek: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fayl: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Sətir: {{line}}
+rendering_error=Səhifə göstərilərkən səhv yarandı.
+
+# Predefined zoom values
+page_scale_width=Səhifə genişliyi
+page_scale_fit=Səhifəni sığdır
+page_scale_auto=Avtomatik yaxınlaşdır
+page_scale_actual=Hazırki Həcm
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Səhv
+loading_error=PDF yüklenərkən bir səhv yarandı.
+invalid_file_error=Səhv və ya zədələnmiş olmuş PDF fayl.
+missing_file_error=PDF fayl yoxdur.
+unexpected_response_error=Gözlənilməz server cavabı.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotasiyası]
+password_label=Bu PDF faylı açmaq üçün şifrəni daxil edin.
+password_invalid=Şifrə yanlışdır. Bir daha sınayın.
+password_ok=OK
+password_cancel=Ləğv et
+
+printing_not_supported=Xəbərdarlıq: Çap bu səyyah tərəfindən tam olaraq dəstəklənmir.
+printing_not_ready=Xəbərdarlıq: PDF çap üçün tam yüklənməyib.
+web_fonts_disabled=Web Şriftlər söndürülüb: yerləşdirilmiş PDF şriftlərini istifadə etmək mümkün deyil.
+document_colors_disabled=PDF sənədlərə öz rənglərini işlətməyə icazə verilmir: 'Səhifələrə öz rənglərini istifadə etməyə icazə vermə' səyyahda söndürülüb.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/be/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/be/viewer.properties
new file mode 100644
index 00000000..031b1df5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/be/viewer.properties
@@ -0,0 +1,105 @@
+previous.title = ПапÑÑ€ÑднÑÑ Ñтаронка
+previous_label = ПапÑÑ€ÑднÑÑ
+next.title = ÐаÑÑ‚ÑƒÐ¿Ð½Ð°Ñ Ñтаронка
+next_label = ÐаÑтупнаÑ
+page_label = Старонка:
+page_of = з {{pageCount}}
+zoom_out.title = Паменшыць
+zoom_out_label = Паменшыць
+zoom_in.title = ПавÑлічыць
+zoom_in_label = ПавÑлічыць
+zoom.title = ПавÑлічÑнне Ñ‚ÑкÑту
+presentation_mode.title = Пераключыцца Ñž Ñ€Ñжым паказу
+presentation_mode_label = РÑжым паказу
+open_file.title = Ðдчыніць файл
+open_file_label = Ðдчыніць
+print.title = Друкаваць
+print_label = Друкаваць
+download.title = Загрузка
+download_label = Загрузка
+bookmark.title = ЦÑперашнÑÑ Ð¿Ñ€Ð°Ñва (ÑкапіÑваць або адчыніць у новым акне)
+bookmark_label = ЦÑперашнÑÑ Ð¿Ñ€Ð°Ñва
+tools.title = Прылады
+tools_label = Прылады
+first_page.title = ПерайÑці на першую Ñтаронку
+first_page.label = ПерайÑці на першую Ñтаронку
+first_page_label = ПерайÑці на першую Ñтаронку
+last_page.title = ПерайÑці на апошнюю Ñтаронку
+last_page.label = ПерайÑці на апошнюю Ñтаронку
+last_page_label = ПерайÑці на апошнюю Ñтаронку
+page_rotate_cw.title = ПавÑрнуць па гадзіннікавай ÑÑ‚Ñ€Ñлцы
+page_rotate_cw.label = ПавÑрнуць па гадзіннікавай ÑÑ‚Ñ€Ñлцы
+page_rotate_cw_label = ПавÑрнуць па гадзіннікавай ÑÑ‚Ñ€Ñлцы
+page_rotate_ccw.title = ПавÑрнуць Ñупраць гадзіннікавай ÑÑ‚Ñ€Ñлкі
+page_rotate_ccw.label = ПавÑрнуць Ñупраць гадзіннікавай ÑÑ‚Ñ€Ñлкі
+page_rotate_ccw_label = ПавÑрнуць Ñупраць гадзіннікавай ÑÑ‚Ñ€Ñлкі
+hand_tool_enable.title = Дазволіць ручную прыладу
+hand_tool_enable_label = Дазволіць ручную прыладу
+hand_tool_disable.title = Забараніць ручную прыладу
+hand_tool_disable_label = Забараніць ручную прыладу
+document_properties.title = УлаÑціваÑці дакумента…
+document_properties_label = УлаÑціваÑці дакумента…
+document_properties_file_name = Ðазва файла:
+document_properties_file_size = Памер файла:
+document_properties_kb = {{size_kb}} КБ ({{size_b}} байт)
+document_properties_mb = {{size_mb}} МБ ({{size_b}} байт)
+document_properties_title = Загаловак:
+document_properties_author = Ðўтар:
+document_properties_subject = ТÑма:
+document_properties_keywords = ÐšÐ»ÑŽÑ‡Ð°Ð²Ñ‹Ñ Ñловы:
+document_properties_creation_date = Дата ÑтварÑннÑ:
+document_properties_modification_date = Дата змÑненнÑ:
+document_properties_date_string = {{date}}, {{time}}
+document_properties_creator = Стваральнік:
+document_properties_producer = Вырабнік PDF:
+document_properties_version = ВерÑÑ–Ñ PDF:
+document_properties_page_count = КолькаÑць Ñтаронак:
+document_properties_close = Зачыніць
+toggle_sidebar.title = ПераключÑнне палічкі
+toggle_sidebar_label = Пераключыць палічку
+outline.title = Паказ будовы дакумента
+outline_label = Будова дакумента
+attachments.title = Паказаць далучÑнні
+attachments_label = ДалучÑнні
+thumbs.title = Паказ накідаў
+thumbs_label = Ðакіды
+findbar.title = Пошук у дакуменце
+findbar_label = ЗнайÑці
+thumb_page_title = Старонка {{page}}
+thumb_page_canvas = Ðакід Ñтаронкі {{page}}
+find_label = Пошук:
+find_previous.title = ЗнайÑці папÑÑ€Ñдні выпадак выразу
+find_previous_label = ПапÑÑ€Ñдні
+find_next.title = ЗнайÑці наÑтупны выпадак выразу
+find_next_label = ÐаÑтупны
+find_highlight = Падфарбаваць уÑе
+find_match_case_label = Ðдрозніваць вÑлікіÑ/Ð¼Ð°Ð»Ñ‹Ñ Ð»Ñ–Ñ‚Ð°Ñ€Ñ‹
+find_reached_top = ДаÑÑгнуты пачатак дакумента, працÑг з канца
+find_reached_bottom = ДаÑÑгнуты канец дакумента, працÑг з пачатку
+find_not_found = Выраз не знойдзены
+error_more_info = ПадрабÑзней
+error_less_info = СціÑла
+error_close = Закрыць
+error_version_info = PDF.js в{{version}} (пабудова: {{build}})
+error_message = Паведамленне: {{message}}
+error_stack = СтоÑ: {{stack}}
+error_file = Файл: {{file}}
+error_line = Радок: {{line}}
+rendering_error = ЗдарылаÑÑ Ð¿Ð°Ð¼Ñ‹Ð»ÐºÐ° Ð¿Ð°Ð´Ñ‡Ð°Ñ Ð°Ð´Ð»ÑŽÑÑ‚Ñ€Ð°Ð²Ð°Ð½Ð½Ñ Ñтаронкі.
+page_scale_width = Ð¨Ñ‹Ñ€Ñ‹Ð½Ñ Ñтаронкі
+page_scale_fit = УціÑненне Ñтаронкі
+page_scale_auto = СамаÑтойнае павÑлічÑнне
+page_scale_actual = Сапраўдны памер
+loading_error_indicator = Памылка
+loading_error = ЗдарылаÑÑ Ð¿Ð°Ð¼Ñ‹Ð»ÐºÐ° Ð¿Ð°Ð´Ñ‡Ð°Ñ Ð·Ð°Ð³Ñ€ÑƒÐ·ÐºÑ– PDF.
+invalid_file_error = ÐÑÑпраўны або пашкоджаны файл PDF.
+missing_file_error = ÐдÑутны файл PDF.
+text_annotation_type.alt = [{{type}} Annotation]
+password_label = УвÑдзіце пароль, каб адчыніць гÑÑ‚Ñ‹ файл PDF.
+password_invalid = Крывы пароль. ПаÑпрабуйце зноў.
+password_ok = Добра
+password_cancel = СкаÑаваць
+printing_not_supported = ПапÑÑ€Ñджанне: друк не падтрымлівацца цалкам гÑтым азіральнікам.
+printing_not_ready = Увага: PDF не ÑцÑгнуты цалкам Ð´Ð»Ñ Ð´Ñ€ÑƒÐºÐ°Ð²Ð°Ð½Ð½Ñ.
+web_fonts_disabled = Шрыфты Сеціва забаронены: немгчыма ўжываць ÑƒÐºÐ»Ð°Ð´Ð·ÐµÐ½Ñ‹Ñ ÑˆÑ€Ñ‹Ñ„Ñ‚Ñ‹ PDF.
+document_colors_disabled = Дакументам PDF не дазволена карыÑтацца Ñваімі ўлаÑнымі колерамі: 'Дазволіць Ñтаронкам выбіраць Ñвае ўлаÑÐ½Ñ‹Ñ ÐºÐ¾Ð»ÐµÑ€Ñ‹' абÑздзейнена Ñž азіральніку.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bg/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bg/viewer.properties
new file mode 100644
index 00000000..fd102d9a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bg/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Предишна Ñтраница
+previous_label=Предишна
+next.title=Следваща Ñтраница
+next_label=Следваща
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Страница:
+page_of=от {{pageCount}}
+
+zoom_out.title=Отдалечаване
+zoom_out_label=Отдалечаване
+zoom_in.title=Приближаване
+zoom_in_label=Приближаване
+zoom.title=Мащабиране
+presentation_mode.title=Превключване към режим на предÑтавÑне
+presentation_mode_label=Режим на предÑтавÑне
+open_file.title=ОтварÑне на файл
+open_file_label=ОтварÑне
+print.title=Отпечатване
+print_label=Отпечатване
+download.title=ИзтеглÑне
+download_label=ИзтеглÑне
+bookmark.title=Текущ изглед (копиране или отварÑне в нов прозорец)
+bookmark_label=Текущ изглед
+
+# Secondary toolbar and context menu
+tools.title=ИнÑтрументи
+tools_label=ИнÑтрументи
+first_page.title=Към първата Ñтраница
+first_page.label=Към първата Ñтраница
+first_page_label=Към първата Ñтраница
+last_page.title=Към поÑледната Ñтраница
+last_page.label=Към поÑледната Ñтраница
+last_page_label=Към поÑледната Ñтраница
+page_rotate_cw.title=Превъртане по чаÑовниковата Ñтрелка
+page_rotate_cw.label=Превъртане по чаÑовниковата Ñтрелка
+page_rotate_cw_label=Превъртане по чаÑовниковата Ñтрелка
+page_rotate_ccw.title=Превъртане обратно на чаÑовниковата Ñтрелка
+page_rotate_ccw.label=Превъртане обратно на чаÑовниковата Ñтрелка
+page_rotate_ccw_label=Превъртане обратно на чаÑовниковата Ñтрелка
+
+hand_tool_enable.title=Включване на инÑтрумента ръка
+hand_tool_enable_label=Включване на инÑтрумента ръка
+hand_tool_disable.title=Изключване на инÑтрумента ръка
+hand_tool_disable_label=Изключване на инÑтрумента ръка
+
+# Document properties dialog box
+document_properties.title=СвойÑтва на документа…
+document_properties_label=СвойÑтва на документа…
+document_properties_file_name=Име на файл:
+document_properties_file_size=Големина на файл:
+document_properties_kb={{size_kb}} КБ ({{size_b}} байта)
+document_properties_mb={{size_mb}} МБ ({{size_b}} байта)
+document_properties_title=Заглавие:
+document_properties_author=Ðвтор:
+document_properties_subject=Тема:
+document_properties_keywords=Ключови думи:
+document_properties_creation_date=Дата на Ñъздаване:
+document_properties_modification_date=Дата на промÑна:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Създател:
+document_properties_producer=PDF произведен от:
+document_properties_version=PDF верÑиÑ:
+document_properties_page_count=Брой Ñтраници:
+document_properties_close=ЗатварÑне
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Превключване на Ñтраничната лента
+toggle_sidebar_label=Превключване на Ñтраничната лента
+outline.title=Показване на очертаниÑта на документа
+outline_label=Очертание на документа
+attachments.title=Показване на притурките
+attachments_label=Притурки
+thumbs.title=Показване на миниатюрите
+thumbs_label=Миниатюри
+findbar.title=Ðамиране в документа
+findbar_label=ТърÑене
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Страница {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Миниатюра на Ñтраница {{page}}
+
+# Find panel button title and messages
+find_label=ТърÑене:
+find_previous.title=Ðамиране на предното Ñпоменаване на тази фраза
+find_previous_label=Предишна
+find_next.title=Ðамиране на Ñледващото Ñпоменаване на тази фраза
+find_next_label=Следваща
+find_highlight=Маркирай вÑички
+find_match_case_label=Точно ÑъвпадениÑ
+find_reached_top=ДоÑтигнато е началото на документа, продължаване от краÑ
+find_reached_bottom=ДоÑтигнат е краÑÑ‚ на документа, продължаване от началото
+find_not_found=Фразата не е намерена
+
+# Error panel labels
+error_more_info=Повече информациÑ
+error_less_info=По-малко информациÑ
+error_close=ЗатварÑне
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js верÑÐ¸Ñ {{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Съобщение: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Стек: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Файл: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Ред: {{line}}
+rendering_error=Грешка при изчертаване на Ñтраницата.
+
+# Predefined zoom values
+page_scale_width=Ширина на Ñтраницата
+page_scale_fit=ВмеÑтване в Ñтраницата
+page_scale_auto=Ðвтоматично мащабиране
+page_scale_actual=ДейÑтвителен размер
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Грешка
+loading_error=Получи Ñе грешка при зареждане на PDF-а.
+invalid_file_error=Ðевалиден или повреден PDF файл
+missing_file_error=ЛипÑващ PDF файл.
+unexpected_response_error=Ðеочакван отговор от Ñървъра.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[ÐÐ½Ð¾Ñ‚Ð°Ñ†Ð¸Ñ {{type}}]
+password_label=Въведете парола за отварÑне на този PDF файл.
+password_invalid=Ðевалидна парола. МолÑ, опитайте отново.
+password_ok=Добре
+password_cancel=Отказ
+
+printing_not_supported=Внимание: Този браузър нÑма пълна поддръжка на отпечатване.
+printing_not_ready=Внимание: Този PDF файл не е напълно зареден за печат.
+web_fonts_disabled=Уеб-шрифтовете Ñа забранени: разрешаване на използването на вградените PDF шрифтове.
+document_colors_disabled=Ðа PDF-документите не е разрешено да използват ÑобÑтвени цветове: „Разрешаване на Ñтраниците да избират ÑобÑтвени цветове“ е деактивирано в браузъра.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bn-BD/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bn-BD/viewer.properties
new file mode 100644
index 00000000..6577a366
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bn-BD/viewer.properties
@@ -0,0 +1,139 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=পূরà§à¦¬à¦¬à¦°à§à¦¤à§€ পৃষà§à¦ à¦¾
+previous_label=পূরà§à¦¬à¦¬à¦°à§à¦¤à§€
+next.title=পরবরà§à¦¤à§€ পৃষà§à¦ à¦¾
+next_label=পরবরà§à¦¤à§€
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=পৃষà§à¦ à¦¾:
+page_of={{pageCount}} à¦à¦°
+
+zoom_out.title=ছোট আকারে পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+zoom_out_label=ছোট আকারে পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+zoom_in.title=বড় আকারে পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+zoom_in_label=বড় আকারে পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+zoom.title=বড় আকারে পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+presentation_mode.title=উপসà§à¦¥à¦¾à¦ªà¦¨à¦¾ মোডে সà§à¦¯à§à¦‡à¦š করà§à¦¨
+presentation_mode_label=উপসà§à¦¥à¦¾à¦ªà¦¨à¦¾ মোড
+open_file.title=ফাইল খà§à¦²à§à¦¨
+open_file_label=খà§à¦²à§à¦¨
+print.title=মà§à¦¦à§à¦°à¦£
+print_label=মà§à¦¦à§à¦°à¦£
+download.title=ডাউনলোড
+download_label=ডাউনলোড
+bookmark.title=বরà§à¦¤à¦®à¦¾à¦¨ অবসà§à¦¥à¦¾ (অনà§à¦²à¦¿à¦ªà¦¿ অথবা নতà§à¦¨ উইনà§à¦¡à§‹ তে খà§à¦²à§à¦¨)
+bookmark_label=বরà§à¦¤à¦®à¦¾à¦¨ অবসà§à¦¥à¦¾
+
+# Secondary toolbar and context menu
+tools.title=টà§à¦²
+tools_label=টà§à¦²
+first_page.title=পà§à¦°à¦¥à¦® পাতায় যাও
+first_page.label=পà§à¦°à¦¥à¦® পাতায় যাও
+first_page_label=পà§à¦°à¦¥à¦® পাতায় যাও
+last_page.title=শেষ পাতায় যাও
+last_page.label=শেষ পাতায় যাও
+last_page_label=শেষ পাতায় যাও
+page_rotate_cw.title=ঘড়ির কাà¦à¦Ÿà¦¾à¦° দিকে ঘোরাও
+page_rotate_cw.label=ঘড়ির কাà¦à¦Ÿà¦¾à¦° দিকে ঘোরাও
+page_rotate_cw_label=ঘড়ির কাà¦à¦Ÿà¦¾à¦° দিকে ঘোরাও
+page_rotate_ccw.title=ঘড়ির কাà¦à¦Ÿà¦¾à¦° বিপরীতে ঘোরাও
+page_rotate_ccw.label=ঘড়ির কাà¦à¦Ÿà¦¾à¦° বিপরীতে ঘোরাও
+page_rotate_ccw_label=ঘড়ির কাà¦à¦Ÿà¦¾à¦° বিপরীতে ঘোরাও
+
+
+# Document properties dialog box
+document_properties_title=শিরোনাম:
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=সাইডবার টগল করà§à¦¨
+toggle_sidebar_label=সাইডবার টগল করà§à¦¨
+outline.title=নথির রূপরেখা পà§à¦°à¦¦à¦°à§à¦¶à¦¨ করà§à¦¨
+outline_label=নথির রূপরেখা
+thumbs.title=থামà§à¦¬à¦¨à§‡à¦‡à¦² সমূহ পà§à¦°à¦¦à¦°à§à¦¶à¦¨ করà§à¦¨
+thumbs_label=থামà§à¦¬à¦¨à§‡à¦‡à¦² সমূহ
+findbar.title=নথির মধà§à¦¯à§‡ খà§à¦à¦œà§à¦¨
+findbar_label=অনà§à¦¸à¦¨à§à¦§à¦¾à¦¨
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=পৃষà§à¦ à¦¾ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}} পৃষà§à¦ à¦¾à¦° থামà§à¦¬à¦¨à§‡à¦‡à¦²
+
+# Find panel button title and messages
+find_label=অনà§à¦¸à¦¨à§à¦§à¦¾à¦¨:
+find_previous.title=বাকà§à¦¯à¦¾à¦‚শের পূরà§à¦¬à¦¬à¦°à§à¦¤à§€ উপসà§à¦¥à¦¿à¦¤à¦¿ অনà§à¦¸à¦¨à§à¦§à¦¾à¦¨
+find_previous_label=পূরà§à¦¬à¦¬à¦°à§à¦¤à§€
+find_next.title=বাকà§à¦¯à¦¾à¦‚শের পরবরà§à¦¤à§€ উপসà§à¦¥à¦¿à¦¤à¦¿ অনà§à¦¸à¦¨à§à¦§à¦¾à¦¨
+find_next_label=পরবরà§à¦¤à§€
+find_highlight=সব হাইলাইট করা হবে
+find_match_case_label=অকà§à¦·à¦°à§‡à¦° ছাà¦à¦¦ মেলানো
+find_reached_top=পৃষà§à¦ à¦¾à¦° শà§à¦°à§à¦¤à§‡ পৌছে গেছে, নীচ থেকে আরমà§à¦­ করা হয়েছে
+find_reached_bottom=পৃষà§à¦ à¦¾à¦° শেষে পৌছে গেছে, উপর থেকে আরমà§à¦­ করা হয়েছে
+find_not_found=বাকà§à¦¯à¦¾à¦‚শ পাওয়া যায়নি
+
+# Error panel labels
+error_more_info=আরও তথà§à¦¯
+error_less_info=কম তথà§à¦¯
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=বারà§à¦¤à¦¾: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=নথি: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=লাইন: {{line}}
+rendering_error=পৃষà§à¦ à¦¾ উপসà§à¦¥à¦¾à¦ªà¦¨à¦¾à¦° সময় তà§à¦°à§à¦Ÿà¦¿ দেখা দিয়েছে।
+
+# Predefined zoom values
+page_scale_width=পৃষà§à¦ à¦¾à¦° পà§à¦°à¦¸à§à¦¥
+page_scale_fit=পৃষà§à¦ à¦¾ ফিট করà§à¦¨
+page_scale_auto=সà§à¦¬à§Ÿà¦‚কà§à¦°à¦¿à§Ÿ জà§à¦®
+page_scale_actual=পà§à¦°à¦•à§ƒà¦¤ আকার
+
+# Loading indicator messages
+loading_error_indicator=তà§à¦°à§à¦Ÿà¦¿
+loading_error=পিডিà¦à¦« লোড করার সময় তà§à¦°à§à¦Ÿà¦¿ দেখা দিয়েছে।
+invalid_file_error=অকারà§à¦¯à¦•à¦° অথবা কà§à¦·à¦¤à¦¿à¦—à§à¦°à¦¸à§à¦¤ পিডিà¦à¦« ফাইল।
+missing_file_error=পিডিà¦à¦« ফাইল পাওয়া যাচà§à¦›à§‡ না।
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} টীকা]
+password_label=পিডিà¦à¦« ফাইলটি ওপেন করতে পাসওয়ারà§à¦¡ দিন।
+password_invalid=ভà§à¦² পাসওয়ারà§à¦¡à¥¤ অনà§à¦—à§à¦°à¦¹ করে আবার চেষà§à¦Ÿà¦¾ করà§à¦¨à¥¤
+password_ok=ঠিক আছে
+password_cancel=বাতিল
+
+printing_not_supported=সতরà§à¦•à¦¤à¦¾: à¦à¦‡ বà§à¦°à¦¾à¦‰à¦œà¦¾à¦°à§‡ মà§à¦¦à§à¦°à¦£ সমà§à¦ªà§‚রà§à¦£à¦­à¦¾à¦¬à§‡ সমরà§à¦¥à¦¿à¦¤ নয়।
+printing_not_ready=সতরà§à¦•à§€à¦•à¦°à¦£: পিডিà¦à¦«à¦Ÿà¦¿ মà§à¦¦à§à¦°à¦£à§‡à¦° জনà§à¦¯ সমà§à¦ªà§‚রà§à¦£ লোড হয়নি।
+web_fonts_disabled=ওয়েব ফনà§à¦Ÿ নিষà§à¦•à§à¦°à¦¿à§Ÿ: সংযà§à¦•à§à¦¤ পিডিà¦à¦« ফনà§à¦Ÿ বà§à¦¯à¦¬à¦¹à¦¾à¦° করা যাচà§à¦›à§‡ না।
+document_colors_disabled=পিডিà¦à¦« ডকà§à¦®à§‡à¦¨à§à¦Ÿà¦•à§‡ তাদের নিজসà§à¦¬ রঙ বà§à¦¯à¦¬à¦¹à¦¾à¦°à§‡ অনà§à¦®à¦¤à¦¿ নেই: 'পাতা তাদের নিজেসà§à¦¬ রঙ নিরà§à¦¬à¦¾à¦šà¦¨ করতে অনà§à¦®à¦¤à¦¿ দিন' à¦à¦‡ বà§à¦°à¦¾à¦‰à¦œà¦¾à¦°à§‡ নিষà§à¦•à§à¦°à¦¿à§Ÿ রয়েছে।
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bn-IN/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bn-IN/viewer.properties
new file mode 100644
index 00000000..84391bf1
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bn-IN/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=পূরà§à¦¬à¦¬à¦°à§à¦¤à§€ পৃষà§à¦ à¦¾
+previous_label=পূরà§à¦¬à¦¬à¦°à§à¦¤à§€
+next.title=পরবরà§à¦¤à§€ পৃষà§à¦ à¦¾
+next_label=পরবরà§à¦¤à§€
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=পৃষà§à¦ à¦¾:
+page_of=সরà§à¦¬à¦®à§‹à¦Ÿ {{pageCount}}
+
+zoom_out.title=ছোট মাপে পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+zoom_out_label=ছোট মাপে পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+zoom_in.title=বড় মাপে পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+zoom_in_label=বড় মাপে পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+zoom.title=পà§à¦°à¦¦à¦°à§à¦¶à¦¨à§‡à¦° মাপ
+presentation_mode.title=উপসà§à¦¥à¦¾à¦ªà¦¨à¦¾ মোড সà§à¦¯à§à¦‡à¦š করà§à¦¨
+presentation_mode_label=উপসà§à¦¥à¦¾à¦ªà¦¨à¦¾ মোড
+open_file.title=ফাইল খà§à¦²à§à¦¨
+open_file_label=খà§à¦²à§à¦¨
+print.title=পà§à¦°à¦¿à¦¨à§à¦Ÿ করà§à¦¨
+print_label=পà§à¦°à¦¿à¦¨à§à¦Ÿ করà§à¦¨
+download.title=ডাউনলোড করà§à¦¨
+download_label=ডাউনলোড করà§à¦¨
+bookmark.title=বরà§à¦¤à¦®à¦¾à¦¨ পà§à¦°à¦¦à¦°à§à¦¶à¦¨ (কপি করà§à¦¨ অথবা নতà§à¦¨ উইনà§à¦¡à§‹à¦¤à§‡ খà§à¦²à§à¦¨)
+bookmark_label=বরà§à¦¤à¦®à¦¾à¦¨ পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+
+# Secondary toolbar and context menu
+tools.title=সরঞà§à¦œà¦¾à¦®
+tools_label=সরঞà§à¦œà¦¾à¦®
+first_page.title=পà§à¦°à¦¥à¦® পৃষà§à¦ à¦¾à§Ÿ চলà§à¦¨
+first_page.label=পà§à¦°à¦¥à¦® পৃষà§à¦ à¦¾à§Ÿ চলà§à¦¨
+first_page_label=পà§à¦°à¦¥à¦® পৃষà§à¦ à¦¾à§Ÿ চলà§à¦¨
+last_page.title=সরà§à¦¬à¦¶à§‡à¦· পৃষà§à¦ à¦¾à§Ÿ চলà§à¦¨
+last_page.label=সরà§à¦¬à¦¶à§‡à¦· পৃষà§à¦ à¦¾à§Ÿ চলà§à¦¨
+last_page_label=সরà§à¦¬à¦¶à§‡à¦· পৃষà§à¦ à¦¾à§Ÿ চলà§à¦¨
+page_rotate_cw.title=ডানদিকে ঘোরানো হবে
+page_rotate_cw.label=ডানদিকে ঘোরানো হবে
+page_rotate_cw_label=ডানদিকে ঘোরানো হবে
+page_rotate_ccw.title=বাà¦à¦¦à¦¿à¦•à§‡ ঘোরানো হবে
+page_rotate_ccw.label=বাà¦à¦¦à¦¿à¦•à§‡ ঘোরানো হবে
+page_rotate_ccw_label=বাà¦à¦¦à¦¿à¦•à§‡ ঘোরানো হবে
+
+hand_tool_enable.title=হà§à¦¯à¦¾à¦¨à§à¦¡ টà§à¦² সকà§à¦°à¦¿à§Ÿ করà§à¦¨
+hand_tool_enable_label=হà§à¦¯à¦¾à¦¨à§à¦¡ টà§à¦² সকà§à¦°à¦¿à§Ÿ করà§à¦¨
+hand_tool_disable.title=হà§à¦¯à¦¾à¦¨à§à¦¡ টà§à¦² নিসà§à¦•à§à¦°à¦¿à§Ÿ করà§à¦¨
+hand_tool_disable_label=হà§à¦¯à¦¾à¦¨à§à¦¡ টà§à¦² নিসà§à¦•à§à¦°à¦¿à§Ÿ করà§à¦¨
+
+# Document properties dialog box
+document_properties.title=নথির বৈশিষà§à¦Ÿà§à¦¯â€¦
+document_properties_label=নথির বৈশিষà§à¦Ÿà§à¦¯â€¦
+document_properties_file_name=ফাইলের নাম:
+document_properties_file_size=ফাইলের মাপ:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} মেগাবাইট ({{size_b}} bytes)
+document_properties_title=শিরোনাম:
+document_properties_author=লেখক:
+document_properties_subject=বিষয়:
+document_properties_keywords=নিরà§à¦¦à§‡à¦¶à¦• শবà§à¦¦:
+document_properties_creation_date=নিরà§à¦®à¦¾à¦£à§‡à¦° তারিখ:
+document_properties_modification_date=পরিবরà§à¦¤à¦¨à§‡à¦° তারিখ:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=নিরà§à¦®à¦¾à¦¤à¦¾:
+document_properties_producer=PDF নিরà§à¦®à¦¾à¦¤à¦¾:
+document_properties_version=PDF সংসà§à¦•à¦°à¦£:
+document_properties_page_count=মোট পৃষà§à¦ à¦¾:
+document_properties_close=বনà§à¦§ করà§à¦¨
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=সাইডবার টগল করà§à¦¨
+toggle_sidebar_label=সাইডবার টগল করà§à¦¨
+outline.title=নথির রূপরেখা পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+outline_label=নথির রূপরেখা পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+attachments.title=সংযà§à¦•à§à¦¤à¦¿à¦¸à¦®à§‚হ দেখান
+attachments_label=সংযà§à¦•à§à¦¤ বসà§à¦¤à§
+thumbs.title=থামà§à¦¬-নেইল পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+thumbs_label=থামà§à¦¬-নেইল পà§à¦°à¦¦à¦°à§à¦¶à¦¨
+findbar.title=নথিতে খà§à¦à¦œà§à¦¨
+findbar_label=অনà§à¦¸à¦¨à§à¦§à¦¾à¦¨ করà§à¦¨
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=পৃষà§à¦ à¦¾ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=পৃষà§à¦ à¦¾ {{page}}-র থামà§à¦¬-নেইল
+
+# Find panel button title and messages
+find_label=অনà§à¦¸à¦¨à§à¦§à¦¾à¦¨:
+find_previous.title=চিহà§à¦¨à¦¿à¦¤ পংকà§à¦¤à¦¿à¦° পূরà§à¦¬à¦¬à¦°à§à¦¤à§€ উপসà§à¦¥à¦¿à¦¤à¦¿ অনà§à¦¸à¦¨à§à¦§à¦¾à¦¨ করà§à¦¨
+find_previous_label=পূরà§à¦¬à¦¬à¦°à§à¦¤à§€
+find_next.title=চিহà§à¦¨à¦¿à¦¤ পংকà§à¦¤à¦¿à¦° পরবরà§à¦¤à§€ উপসà§à¦¥à¦¿à¦¤à¦¿ অনà§à¦¸à¦¨à§à¦§à¦¾à¦¨ করà§à¦¨
+find_next_label=পরবরà§à¦¤à§€
+find_highlight=সমগà§à¦° উজà§à¦œà§à¦¬à¦² করà§à¦¨
+find_match_case_label=হরফের ছাà¦à¦¦ মেলানো হবে
+find_reached_top=পৃষà§à¦ à¦¾à¦° পà§à¦°à¦¾à¦°à¦®à§à¦­à§‡ পৌছে গেছে, নীচের অংশ থেকে আরমà§à¦­ করা হবে
+find_reached_bottom=পৃষà§à¦ à¦¾à¦° অনà§à¦¤à¦¿à¦® পà§à¦°à¦¾à¦¨à§à¦¤à§‡ পৌছে গেছে, পà§à¦°à¦¥à¦® অংশ থেকে আরমà§à¦­ করা হবে
+find_not_found=পংকà§à¦¤à¦¿ পাওয়া যায়নি
+
+# Error panel labels
+error_more_info=অতিরিকà§à¦¤ তথà§à¦¯
+error_less_info=কম তথà§à¦¯
+error_close=বনà§à¦§ করà§à¦¨
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Message: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=File: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Line: {{line}}
+rendering_error=পৃষà§à¦ à¦¾ পà§à¦°à¦¦à¦°à§à¦¶à¦¨à¦•à¦¾à¦²à§‡ à¦à¦•à¦Ÿà¦¿ সমসà§à¦¯à¦¾ দেখা দিয়েছে।
+
+# Predefined zoom values
+page_scale_width=পৃষà§à¦ à¦¾à¦° পà§à¦°à¦¸à§à¦¥ অনà§à¦¯à¦¾à§Ÿà§€
+page_scale_fit=পৃষà§à¦ à¦¾à¦° মাপ অনà§à¦¯à¦¾à§Ÿà§€
+page_scale_auto=সà§à¦¬à§Ÿà¦‚কà§à¦°à¦¿à§Ÿ মাপ নিরà§à¦§à¦¾à¦°à¦£
+page_scale_actual=পà§à¦°à¦•à§ƒà¦¤ মাপ
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=তà§à¦°à§à¦Ÿà¦¿
+loading_error=PDF লোড করার সময় সমসà§à¦¯à¦¾ দেখা দিয়েছে।
+invalid_file_error=অবৈধ বা কà§à¦·à¦¤à¦¿à¦—à§à¦°à¦¸à§à¦¤ পিডিà¦à¦« ফাইল।
+missing_file_error=অনà§à¦ªà¦¸à§à¦¥à¦¿à¦¤ PDF ফাইল
+unexpected_response_error=সারà§à¦­à¦¾à¦° থেকে অপà§à¦°à¦¤à§à¦¯à¦¾à¦¶à¦¿à¦¤ সাড়া পাওয়া গেছে।
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=à¦à¦‡ PDF ফাইল খোলার জনà§à¦¯ পাসওয়ারà§à¦¡ দিন।
+password_invalid=পাসওয়ারà§à¦¡ সঠিক নয়। অনà§à¦—à§à¦°à¦¹ করে পà§à¦¨à¦°à¦¾à§Ÿ পà§à¦°à¦šà§‡à¦·à§à¦Ÿà¦¾ করà§à¦¨à¥¤
+password_ok=OK
+password_cancel=বাতিল করà§à¦¨
+
+printing_not_supported=সতরà§à¦•à¦¬à¦¾à¦°à§à¦¤à¦¾: à¦à¦‡ বà§à¦°à¦¾à¦‰à¦œà¦¾à¦° দà§à¦¬à¦¾à¦°à¦¾ পà§à¦°à¦¿à¦¨à§à¦Ÿ বà§à¦¯à¦¬à¦¸à§à¦¥à¦¾ সমà§à¦ªà§‚রà§à¦£à¦°à§‚পে সমরà§à¦¥à¦¿à¦¤ নয়।
+printing_not_ready=সতরà§à¦•à¦¬à¦¾à¦£à§€: পিডিà¦à¦« সমà§à¦ªà§‚রà§à¦£à¦°à§‚পে মà§à¦¦à§à¦°à¦£à§‡à¦° জনà§à¦¯ লোড করা হয় না.
+web_fonts_disabled=ওয়েব ফনà§à¦Ÿ নিষà§à¦•à§à¦°à¦¿à¦¯à¦¼ করা হয়েছে: à¦à¦®à¦¬à§‡à¦¡à§‡à¦¡ পিডিà¦à¦« ফনà§à¦Ÿ বà§à¦¯à¦¬à¦¹à¦¾à¦° করতে অকà§à¦·à¦®.
+document_colors_disabled=পিডিà¦à¦« নথি তাদের নিজসà§à¦¬ রং বà§à¦¯à¦¬à¦¹à¦¾à¦° করার জনà§à¦¯ অনà§à¦®à¦¤à¦¿à¦ªà§à¦°à¦¾à¦ªà§à¦¤ নয়: বà§à¦°à¦¾à¦‰à¦œà¦¾à¦°à§‡ নিষà§à¦•à§à¦°à¦¿à¦¯à¦¼ করা হয়েছে য়েন 'পেজ তাদের নিজসà§à¦¬ রং নিরà§à¦¬à¦¾à¦šà¦¨ করার অনà§à¦®à¦¤à¦¿ পà§à¦°à¦¦à¦¾à¦¨ করা য়ায়।'
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/br/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/br/viewer.properties
new file mode 100644
index 00000000..7f7926c2
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/br/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Pajenn a-raok
+previous_label=A-raok
+next.title=Pajenn war-lerc'h
+next_label=War-lerc'h
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Pajenn :
+page_of=eus {{pageCount}}
+
+zoom_out.title=Zoum bihanaat
+zoom_out_label=Zoum bihanaat
+zoom_in.title=Zoum brasaat
+zoom_in_label=Zoum brasaat
+zoom.title=Zoum
+presentation_mode.title=Trec'haoliñ etrezek ar mod kinnigadenn
+presentation_mode_label=Mod kinnigadenn
+open_file.title=Digeriñ ur restr
+open_file_label=Digeriñ ur restr
+print.title=Moullañ
+print_label=Moullañ
+download.title=Pellgargañ
+download_label=Pellgargañ
+bookmark.title=Gwel bremanel (eilañ pe zigeriñ e-barzh ur prenestr nevez)
+bookmark_label=Gwel bremanel
+
+# Secondary toolbar and context menu
+tools.title=Ostilhoù
+tools_label=Ostilhoù
+first_page.title=Mont d'ar bajenn gentañ
+first_page.label=Mont d'ar bajenn gentañ
+first_page_label=Mont d'ar bajenn gentañ
+last_page.title=Mont d'ar bajenn diwezhañ
+last_page.label=Mont d'ar bajenn diwezhañ
+last_page_label=Mont d'ar bajenn diwezhañ
+page_rotate_cw.title=C'hwelañ gant roud ar bizied
+page_rotate_cw.label=C'hwelañ gant roud ar bizied
+page_rotate_cw_label=C'hwelañ gant roud ar bizied
+page_rotate_ccw.title=C'hwelañ gant roud gin ar bizied
+page_rotate_ccw.label=C'hwelañ gant roud gin ar bizied
+page_rotate_ccw_label=C'hwelañ gant roud gin ar bizied
+
+hand_tool_enable.title=Gweredekaat an ostilh "dorn"
+hand_tool_enable_label=Gweredekaat an ostilh "dorn"
+hand_tool_disable.title=Diweredekaat an ostilh "dorn"
+hand_tool_disable_label=Diweredekaat an ostilh "dorn"
+
+# Document properties dialog box
+document_properties.title=Perzhioù an teul…
+document_properties_label=Perzhioù an teul…
+document_properties_file_name=Anv restr :
+document_properties_file_size=Ment ar restr :
+document_properties_kb={{size_kb}} Ke ({{size_b}} eizhbit)
+document_properties_mb={{size_mb}} Me ({{size_b}} eizhbit)
+document_properties_title=Titl :
+document_properties_author=Aozer :
+document_properties_subject=Danvez :
+document_properties_keywords=Gerioù-alc'hwez :
+document_properties_creation_date=Deiziad krouiñ :
+document_properties_modification_date=Deiziad kemmañ :
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Krouer :
+document_properties_producer=Kenderc'her PDF :
+document_properties_version=Handelv PDF :
+document_properties_page_count=Niver a bajennoù :
+document_properties_close=Serriñ
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Diskouez/kuzhat ar varrenn gostez
+toggle_sidebar_label=Diskouez/kuzhat ar varrenn gostez
+outline.title=Diskouez ar sinedoù
+outline_label=Sinedoù an teuliad
+attachments.title=Diskouez ar c'henstagadurioù
+attachments_label=Kenstagadurioù
+thumbs.title=Diskouez ar melvennoù
+thumbs_label=Melvennoù
+findbar.title=Klask e-barzh an teuliad
+findbar_label=Klask
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Pajenn {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Melvenn ar bajenn {{page}}
+
+# Find panel button title and messages
+find_label=Kavout :
+find_previous.title=Kavout an tamm frazenn kent o klotañ ganti
+find_previous_label=Kent
+find_next.title=Kavout an tamm frazenn war-lerc'h o klotañ ganti
+find_next_label=War-lerc'h
+find_highlight=Usskediñ pep tra
+find_match_case_label=Teurel evezh ouzh ar pennlizherennoù
+find_reached_top=Tizhet eo bet derou ar bajenn, kenderc'hel diouzh an diaz
+find_reached_bottom=Tizhet eo bet dibenn ar bajenn, kenderc'hel diouzh ar c'hrec'h
+find_not_found=N'haller ket kavout ar frazenn
+
+# Error panel labels
+error_more_info=Muioc'h a ditouroù
+error_less_info=Nebeutoc'h a ditouroù
+error_close=Serriñ
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js handelv {{version}} (kempunadur : {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Kemennadenn : {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Torn : {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Restr : {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linenn : {{line}}
+rendering_error=Degouezhet ez eus bet ur fazi e-pad skrammañ ar bajennad.
+
+# Predefined zoom values
+page_scale_width=Led ar bajenn
+page_scale_fit=Pajenn a-bezh
+page_scale_auto=Zoum emgefreek
+page_scale_actual=Ment wir
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Fazi
+loading_error=Degouezhet ez eus bet ur fazi e-pad kargañ ar PDF.
+invalid_file_error=Restr PDF didalvoudek pe kontronet.
+missing_file_error=Restr PDF o vankout.
+unexpected_response_error=Respont dic'hortoz a-berzh an dafariad
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Notennañ]
+password_label=Enankit ar ger-tremen evit digeriñ ar restr PDF-mañ.
+password_invalid=Ger-tremen didalvoudek. Klaskit en-dro mar plij.
+password_ok=Mat eo
+password_cancel=Nullañ
+
+printing_not_supported=Kemenn : N'eo ket skoret penn-da-benn ar moullañ gant ar merdeer-mañ.
+printing_not_ready=Kemenn : N'hall ket bezañ moullet ar restr PDF rak n'eo ket karget penn-da-benn.
+web_fonts_disabled=Diweredekaet eo an nodrezhoù web : n'haller ket arverañ an nodrezhoù PDF enframmet.
+document_colors_disabled=N'eo ket aotreet an teuliadoù PDF da arverañ o livioù dezho : diweredekaet eo 'Aotren ar pajennoù da zibab o livioù dezho' e-barzh ar merdeer.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bs/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bs/viewer.properties
new file mode 100644
index 00000000..a89bf7af
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/bs/viewer.properties
@@ -0,0 +1,125 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Prethodna strana
+previous_label=Prethodna
+next.title=Sljedeća strna
+next_label=Sljedeća
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Strana:
+page_of=od {{pageCount}}
+
+zoom_out.title=Umanji
+zoom_out_label=Umanji
+zoom_in.title=Uvećaj
+zoom_in_label=Uvećaj
+zoom.title=Uvećanje
+print.title=Å tampaj
+print_label=Å tampaj
+presentation_mode.title=Prebaci se u prezentacijski režim
+presentation_mode_label=Prezentacijski režim
+open_file.title=Otvori fajl
+open_file_label=Otvori
+download.title=Preuzmi
+download_label=Preuzmi
+bookmark.title=Trenutni prikaz (kopiraj ili otvori u novom prozoru)
+bookmark_label=Trenutni prikaz
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=UkljuÄi/iskljuÄi boÄnu traku
+toggle_sidebar_label=UkljuÄi/iskljuÄi boÄnu traku
+outline.title=Prikaži konture dokumenta
+outline_label=Konture dokumenta
+thumbs.title=Prikaži thumbnailove
+thumbs_label=Thumbnailovi
+findbar.title=Pronađi u dokumentu
+findbar_label=Pronađi
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Strana {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Thumbnail strane {{page}}
+
+# Context menu
+first_page.label=Idi na prvu stranu
+last_page.label=Idi na zadnju stranu
+page_rotate_cw.label=Rotiraj u smjeru kazaljke na satu
+page_rotate_ccw.label=Rotiraj suprotno smjeru kazaljke na satu
+
+# Find panel button title and messages
+find_label=Pronađi:
+find_previous.title=Pronađi prethodno pojavljivanje fraze
+find_previous_label=Prethodno
+find_next.title=Pronađi sljedeće pojavljivanje fraze
+find_next_label=Sljedeće
+find_highlight=OznaÄi sve
+find_match_case_label=Osjetljivost na karaktere
+find_reached_top=Dostigao sam vrh dokumenta, nastavljam sa dna
+find_reached_bottom=Dostigao sam kraj dokumenta, nastavljam sa vrha
+find_not_found=Fraza nije pronađena
+
+# Error panel labels
+error_more_info=Više informacija
+error_less_info=Manje informacija
+error_close=Zatvori
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Poruka: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fajl: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linija: {{line}}
+rendering_error=Došlo je do greške prilikom renderiranja strane.
+
+# Predefined zoom values
+page_scale_width=Å irina strane
+page_scale_fit=Uklopi stranu
+page_scale_auto=Automatsko uvećanje
+page_scale_actual=Stvarna veliÄina
+
+# Loading indicator messages
+# LOCALIZATION NOTE (error_line): "{{[percent}}" will be replaced with a percentage
+loading_error_indicator=Greška
+loading_error=DoÅ¡lo je do greÅ¡ke prilikom uÄitavanja PDF-a.
+invalid_file_error=Neispravan ili oštećen PDF fajl.
+missing_file_error=Nedostaje PDF fajl.
+
+# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
+# "{{[type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} pribilješka]
+request_password=PDF je zaštićen lozinkom:
+invalid_password=Pogrešna lozinka.
+
+printing_not_supported=Upozorenje: Štampanje nije u potpunosti podržano u ovom browseru.
+printing_not_ready=Upozorenje: PDF nije u potpunosti uÄitan za Å¡tampanje.
+web_fonts_disabled=Web fontovi su onemogućeni: nemoguće koristiti ubaÄene PDF fontove.
+document_colors_disabled=PDF dokumentima nije dozvoljeno da koriste vlastite boje: \'Dozvoli stranicama da izaberu vlastite boje\' je deaktivirano u browseru.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ca/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ca/viewer.properties
new file mode 100644
index 00000000..93b3b769
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ca/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Pàgina anterior
+previous_label=Anterior
+next.title=Pàgina següent
+next_label=Següent
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Pàgina:
+page_of=de {{pageCount}}
+
+zoom_out.title=Allunya
+zoom_out_label=Allunya
+zoom_in.title=Apropa
+zoom_in_label=Apropa
+zoom.title=Escala
+presentation_mode.title=Canvia al mode de presentació
+presentation_mode_label=Mode de presentació
+open_file.title=Obre el fitxer
+open_file_label=Obre
+print.title=Imprimeix
+print_label=Imprimeix
+download.title=Baixa
+download_label=Baixa
+bookmark.title=Vista actual (copia o obre en una finestra nova)
+bookmark_label=Vista actual
+
+# Secondary toolbar and context menu
+tools.title=Eines
+tools_label=Eines
+first_page.title=Vés a la primera pàgina
+first_page.label=Vés a la primera pàgina
+first_page_label=Vés a la primera pàgina
+last_page.title=Vés a l'última pàgina
+last_page.label=Vés a l'última pàgina
+last_page_label=Vés a l'última pàgina
+page_rotate_cw.title=Gira cap a la dreta
+page_rotate_cw.label=Gira cap a la dreta
+page_rotate_cw_label=Gira cap a la dreta
+page_rotate_ccw.title=Gira cap a l'esquerra
+page_rotate_ccw.label=Gira cap a l'esquerra
+page_rotate_ccw_label=Gira cap a l'esquerra
+
+hand_tool_enable.title=Habilita l'eina de mà
+hand_tool_enable_label=Habilita l'eina de mà
+hand_tool_disable.title=Inhabilita l'eina de mà
+hand_tool_disable_label=Inhabilita l'eina de mà
+
+# Document properties dialog box
+document_properties.title=Propietats del document…
+document_properties_label=Propietats del document…
+document_properties_file_name=Nom del fitxer:
+document_properties_file_size=Mida del fitxer:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Títol:
+document_properties_author=Autor:
+document_properties_subject=Assumpte:
+document_properties_keywords=Paraules clau:
+document_properties_creation_date=Data de creació:
+document_properties_modification_date=Data de modificació:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Creador:
+document_properties_producer=Generador de PDF:
+document_properties_version=Versió de PDF:
+document_properties_page_count=Nombre de pàgines:
+document_properties_close=Tanca
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Mostra/amaga la barra lateral
+toggle_sidebar_label=Mostra/amaga la barra lateral
+outline.title=Mostra el contorn del document
+outline_label=Contorn del document
+attachments.title=Mostra les adjuncions
+attachments_label=Adjuncions
+thumbs.title=Mostra les miniatures
+thumbs_label=Miniatures
+findbar.title=Cerca al document
+findbar_label=Cerca
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Pàgina {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatura de la pàgina {{page}}
+
+# Find panel button title and messages
+find_label=Cerca:
+find_previous.title=Cerca l'anterior coincidència de l'expressió
+find_previous_label=Anterior
+find_next.title=Cerca la següent coincidència de l'expressió
+find_next_label=Següent
+find_highlight=Ressalta-ho tot
+find_match_case_label=Distingeix entre majúscules i minúscules
+find_reached_top=S'ha arribat al principi del document, es continua pel final
+find_reached_bottom=S'ha arribat al final del document, es continua pel principi
+find_not_found=No s'ha trobat l'expressió
+
+# Error panel labels
+error_more_info=Més informació
+error_less_info=Menys informació
+error_close=Tanca
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (muntatge: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Missatge: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Pila: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fitxer: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Línia: {{line}}
+rendering_error=S'ha produït un error mentre es renderitzava la pàgina.
+
+# Predefined zoom values
+page_scale_width=Amplària de la pàgina
+page_scale_fit=Ajusta la pàgina
+page_scale_auto=Zoom automàtic
+page_scale_actual=Mida real
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Error
+loading_error=S'ha produït un error en carregar el PDF.
+invalid_file_error=El fitxer PDF no és vàlid o està malmès.
+missing_file_error=Falta el fitxer PDF.
+unexpected_response_error=Resposta inesperada del servidor.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anotació {{type}}]
+password_label=Introduïu la contrasenya per obrir aquest fitxer PDF.
+password_invalid=La contrasenya no és vàlida. Torneu-ho a provar.
+password_ok=D'acord
+password_cancel=Cancel·la
+
+printing_not_supported=Avís: la impressió no és plenament funcional en aquest navegador.
+printing_not_ready=Atenció: el PDF no s'ha acabat de carregar per imprimir-lo.
+web_fonts_disabled=Les fonts web estan inhabilitades: no es poden incrustar fitxers PDF.
+document_colors_disabled=Els documents PDF no poden usar els seus colors propis: «Permet a les pàgines triar els colors propis» es troba desactivat al navegador.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/cs/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/cs/viewer.properties
new file mode 100644
index 00000000..2033c5a2
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/cs/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Předchozí stránka
+previous_label=Předchozí
+next.title=Další stránka
+next_label=Další
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Stránka:
+page_of=z {{pageCount}}
+
+zoom_out.title=Zmenší velikost
+zoom_out_label=Zmenšit
+zoom_in.title=Zvětší velikost
+zoom_in_label=Zvětšit
+zoom.title=Nastaví velikost
+presentation_mode.title=Přepne režimu prezentace
+presentation_mode_label=Režim prezentace
+open_file.title=Otevře soubor
+open_file_label=Otevřít
+print.title=Vytiskne dokument
+print_label=Tisk
+download.title=Stáhne dokument
+download_label=Stáhnout
+bookmark.title=Aktuální pohled (kopírovat nebo otevřít v novém okně)
+bookmark_label=Aktuální pohled
+
+# Secondary toolbar and context menu
+tools.title=Nástroje
+tools_label=Nástroje
+first_page.title=Přejde na první stránku
+first_page.label=Přejít na první stránku
+first_page_label=Přejít na první stránku
+last_page.title=Přejde na poslední stránku
+last_page.label=Přejít na poslední stránku
+last_page_label=Přejít na poslední stránku
+page_rotate_cw.title=OtoÄí po smÄ›ru hodin
+page_rotate_cw.label=OtoÄit po smÄ›ru hodin
+page_rotate_cw_label=OtoÄit po smÄ›ru hodin
+page_rotate_ccw.title=OtoÄí proti smÄ›ru hodin
+page_rotate_ccw.label=OtoÄit proti smÄ›ru hodin
+page_rotate_ccw_label=OtoÄit proti smÄ›ru hodin
+
+hand_tool_enable.title=Povolit nástroj ruÄiÄka
+hand_tool_enable_label=Povolit nástroj ruÄiÄka
+hand_tool_disable.title=Zakázat nástroj ruÄiÄka
+hand_tool_disable_label=Zakázat nástroj ruÄiÄka
+
+# Document properties dialog box
+document_properties.title=Vlastnosti dokumentu…
+document_properties_label=Vlastnosti dokumentu…
+document_properties_file_name=Název souboru:
+document_properties_file_size=Velikost souboru:
+document_properties_kb={{size_kb}} kB ({{size_b}} bajtů)
+document_properties_mb={{size_mb}} MB ({{size_b}} bajtů)
+document_properties_title=Nadpis:
+document_properties_author=Autor:
+document_properties_subject=Subjekt:
+document_properties_keywords=KlíÄová slova:
+document_properties_creation_date=Datum vytvoření:
+document_properties_modification_date=Datum úpravy:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Vytvořil:
+document_properties_producer=Tvůrce PDF:
+document_properties_version=Verze PDF:
+document_properties_page_count=PoÄet stránek:
+document_properties_close=Zavřít
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Postranní lišta
+toggle_sidebar_label=Postranní lišta
+outline.title=Zobrazí osnovu dokumentu
+outline_label=Osnova dokumentu
+attachments.title=Zobrazí přílohy
+attachments_label=Přílohy
+thumbs.title=Zobrazí náhledy
+thumbs_label=Náhledy
+findbar.title=Najde v dokumentu
+findbar_label=Najít
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Strana {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Náhled strany {{page}}
+
+# Find panel button title and messages
+find_label=Najít:
+find_previous.title=Najde předchozí výskyt hledaného spojení
+find_previous_label=Předchozí
+find_next.title=Najde další výskyt hledaného spojení
+find_next_label=Další
+find_highlight=Zvýraznit
+find_match_case_label=Rozlišovat velikost
+find_reached_top=Dosažen zaÄátek dokumentu, pokraÄuje se od konce
+find_reached_bottom=Dosažen konec dokumentu, pokraÄuje se o zaÄátku
+find_not_found=Hledané spojení nenalezeno
+
+# Error panel labels
+error_more_info=Více informací
+error_less_info=Méně informací
+error_close=Zavřít
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (sestavení: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Zpráva: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Zásobník: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Soubor: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Řádka: {{line}}
+rendering_error=Při vykreslování stránky nastala chyba.
+
+# Predefined zoom values
+page_scale_width=Podle šířky
+page_scale_fit=Podle výšky
+page_scale_auto=Automatická velikost
+page_scale_actual=Aktuální velikost
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Chyba
+loading_error=Při nahrávání PDF nastala chyba.
+invalid_file_error=Neplatný nebo chybný soubor PDF.
+missing_file_error=Chybí soubor PDF.
+unexpected_response_error=NeoÄekávaná odpovÄ›Ä serveru.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anotace typu {{type}}]
+password_label=Pro otevření PDF souboru vložte heslo.
+password_invalid=Neplatné heslo. Zkuste to znovu.
+password_ok=OK
+password_cancel=Zrušit
+
+printing_not_supported=UpozornÄ›ní: Tisk není v tomto prohlížeÄi plnÄ› podporován.
+printing_not_ready=UpozornÄ›ní: Dokument PDF není kompletnÄ› naÄten.
+web_fonts_disabled=Webová písma jsou zakázána, proto není možné použít vložená písma PDF.
+document_colors_disabled=PDF dokumenty nemají povoleny používání vlastních barev: volba "Povolit stránkám používat vlastní barvy namísto výše zvolených" je v prohlížeÄi deaktivována.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/csb/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/csb/viewer.properties
new file mode 100644
index 00000000..293a353c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/csb/viewer.properties
@@ -0,0 +1,134 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Pòprzédnô strona
+previous_label=Pòprzédnô
+next.title=Nôslédnô strona
+next_label=Nôslédnô
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Strona:
+page_of=z {{pageCount}}
+
+zoom_out.title=Zmniészë
+zoom_out_label=Zmniészë
+zoom_in.title=Zwikszë
+zoom_in_label=Wiôlgòsc
+zoom.title=Wiôlgòsc
+print.title=Drëkùjë
+print_label=Drëkùjë
+presentation_mode.title=Przéńdzë w trib prezentacje
+presentation_mode_label=Trib prezentacje
+open_file.title=Ã’temkni lopk
+open_file_label=Ã’temkni
+download.title=Zladënk
+download_label=Zladënk
+bookmark.title=Spamiãtôj wëzdrzatk (kòpérëje, abò òtemkni w nowim òknnie)
+bookmark_label=Aktualny wëzdrzatk
+
+find_label=Szëkôj:
+find_previous.title=Biéj do pòprzédnégò wënikù szëkbë
+find_previous_label=Pòprzédny
+find_next.title=Biéj do nôslédnégò wënikù szëkbë
+find_next_label=Nôslédny
+find_highlight=Pòdszkrzëni wszëtczé
+find_match_case_label=Rozeznôwôj miarã lëterów
+find_not_found=Nie nalôzł tekstu
+find_reached_bottom=Doszedł do kùńca dokùmentu, zaczinającë òd górë
+find_reached_top=Doszedł do pòczątkù dokùmentu, zaczinającë òd dołù
+
+toggle_sidebar.title=Pòsuwk wëbiérkù
+toggle_sidebar_label=Pòsuwk wëbiérkù
+
+outline.title=Wëskrzëni òbcéch dokùmentu
+outline_label=Òbcéch dokùmentu
+thumbs.title=Wëskrzëni miniaturë
+thumbs_label=Miniaturë
+findbar.title=Przeszëkôj dokùment
+findbar_label=Nalezë
+tools_label=Nôrzãdła
+first_page.title=Biéj do pierszi stronë
+first_page.label=Biéj do pierszi stronë
+last_page.label=Biéj do òstatny stronë
+invalid_file_error=Lëchi ôrt, abò pòpsëti lopk PDF.
+
+
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Strona {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatura stronë {{page}}
+
+# Error panel labels
+error_more_info=Wicy infòrmacje
+error_less_info=Mni infòrmacje
+error_close=Close
+error_version_info=PDF.js v{{version}} (build: {{build}})
+
+
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Message: {{wiadło}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stóg}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=File: {{lopk}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Line: {{line}}
+rendering_error=Pòkôza sã fela przë renderowanim stronë.
+
+# Predefined zoom values
+page_scale_width=Szérzawa stronë
+page_scale_fit=Dopasëje stronã
+page_scale_auto=Aùtomatnô wiôlgòsc
+page_scale_actual=Naturalnô wiôlgòsc
+
+# Loading indicator messages
+# LOCALIZATION NOTE (error_line): "{{[percent}}" will be replaced with a percentage
+loading_error_indicator=Fela
+loading_error=Pòkôza sã fela przë wczëtiwanim PDFù.
+
+# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
+# "{{[type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+
+request_password=PDF je zabezpieczony parolÄ…:
+printing_not_supported = Òstrzéga: przezérnik nie je do kùńca wspieróny przez drëkôrze
+
+# Context menu
+page_rotate_cw.label=Òbkrãcë w prawò
+page_rotate_ccw.label=Òbkrãcë w lewò
+
+
+last_page.title=Biéj do pòprzédny stronë
+last_page_label=Biéj do pòprzédny stronë
+page_rotate_cw.title=Òbkrãcë w prawò
+page_rotate_cw_label=Òbkrãcë w prawò
+page_rotate_ccw.title=Òbkrãcë w lewò
+page_rotate_ccw_label=Òbkrãcë w lewò
+
+
+web_fonts_disabled=Sécowé czconczi są wëłączoné: włączë je, bë móc ùżiwac òsadzonëch czconków w lopkach PDF.
+
+
+missing_file_error=Felëje lopka PDF.
+printing_not_ready = Òstrzéga: lopk mùszi sã do kùńca wczëtac zanim gò mòże drëkòwac
+
+document_colors_disabled=Dokùmentë PDF nie mògą ù swòjich farwów: \'Pòzwòlë stronóm wëbierac swòje farwë\' je wëłączoné w przezérnikù.
+invalid_password=Lëchô parola.
+text_annotation_type.alt=[Adnotacjô {{type}}]
+
+tools.title=Tools
+first_page_label=Go to First Page
+
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/cy/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/cy/viewer.properties
new file mode 100644
index 00000000..3ba7ceff
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/cy/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Tudalen Flaenorol
+previous_label=Blaenorol
+next.title=Tudalen Nesaf
+next_label=Nesaf
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Tudalen:
+page_of=o {{pageCount}}
+
+zoom_out.title=Chwyddo Allan
+zoom_out_label=Chwyddo Allan
+zoom_in.title=Chwyddo Mewn
+zoom_in_label=Chwyddo Mewn
+zoom.title=Chwyddo
+presentation_mode.title=Newid i'r Modd Cyflwyno
+presentation_mode_label=Modd Cyflwyno
+open_file.title=Agor Ffeil
+open_file_label=Agor
+print.title=Argraffu
+print_label=Argraffu
+download.title=Llwyth
+download_label=Llwytho i Lawr
+bookmark.title=Golwg cyfredol (copïo neu agor ffenestr newydd)
+bookmark_label=Golwg Gyfredol
+
+# Secondary toolbar and context menu
+tools.title=Offer
+tools_label=Offer
+first_page.title=Mynd i'r Dudalen Gyntaf
+first_page.label=Mynd i'r Dudalen Gyntaf
+first_page_label=Mynd i'r Dudalen Gyntaf
+last_page.title=Mynd i'r Dudalen Olaf
+last_page.label=Mynd i'r Dudalen Olaf
+last_page_label=Mynd i'r Dudalen Olaf
+page_rotate_cw.title=Cylchdroi Clocwedd
+page_rotate_cw.label=Cylchdroi Clocwedd
+page_rotate_cw_label=Cylchdroi Clocwedd
+page_rotate_ccw.title=Cylchdroi Gwrthglocwedd
+page_rotate_ccw.label=Cylchdroi Gwrthglocwedd
+page_rotate_ccw_label=Cylchdroi Gwrthglocwedd
+
+hand_tool_enable.title=Galluogi offeryn llaw
+hand_tool_enable_label=Galluogi offeryn llaw
+hand_tool_disable.title=Analluogi offeryn llaw
+hand_tool_disable_label=Analluogi offeryn llaw
+
+# Document properties dialog box
+document_properties.title=Priodweddau Dogfen…
+document_properties_label=Priodweddau Dogfen…
+document_properties_file_name=Enw ffeil:
+document_properties_file_size=Maint ffeil:
+document_properties_kb={{size_kb}} KB ({{size_b}} beit)
+document_properties_mb={{size_mb}} MB ({{size_b}} beit)
+document_properties_title=Teitl:
+document_properties_author=Awdur:
+document_properties_subject=Pwnc:
+document_properties_keywords=Allweddair:
+document_properties_creation_date=Dyddiad Creu:
+document_properties_modification_date=Dyddiad Addasu:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Crewr:
+document_properties_producer=Cynhyrchydd PDF:
+document_properties_version=Fersiwn PDF:
+document_properties_page_count=Cyfrif Tudalen:
+document_properties_close=Cau
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Toglo'r Bar Ochr
+toggle_sidebar_label=Toglo'r Bar Ochr
+outline.title=Dangos Amlinell Dogfen
+outline_label=Amlinelliad Dogfen
+attachments.title=Dangos Atodiadau
+attachments_label=Atodiadau
+thumbs.title=Dangos Lluniau Bach
+thumbs_label=Lluniau Bach
+findbar.title=Canfod yn y Ddogfen
+findbar_label=Canfod
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Tudalen {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Llun Bach Tudalen {{page}}
+
+# Find panel button title and messages
+find_label=Canfod:
+find_previous.title=Canfod enghraifft flaenorol o'r ymadrodd
+find_previous_label=Blaenorol
+find_next.title=Canfod enghraifft nesaf yr ymadrodd
+find_next_label=Nesaf
+find_highlight=Amlygu popeth
+find_match_case_label=Cydweddu maint
+find_reached_top=Wedi cyrraedd brig y dudalen, parhau o'r gwaelod
+find_reached_bottom=Wedi cyrraedd diwedd y dudalen, parhau o'r brig
+find_not_found=Heb ganfod ymadrodd
+
+# Error panel labels
+error_more_info=Rhagor o Wybodaeth
+error_less_info=Llai o wybodaeth
+error_close=Cau
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Neges: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stac: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Ffeil: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Llinell: {{line}}
+rendering_error=Digwyddodd gwall wrth adeiladu'r dudalen.
+
+# Predefined zoom values
+page_scale_width=Lled Tudalen
+page_scale_fit=Ffit Tudalen
+page_scale_auto=Chwyddo Awtomatig
+page_scale_actual=Maint Gwirioneddol
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Gwall
+loading_error=Digwyddodd gwall wrth lwytho'r PDF.
+invalid_file_error=Ffeil PDF annilys neu llwgr.
+missing_file_error=Ffeil PDF coll.
+unexpected_response_error=Ymateb annisgwyl gan y gweinydd.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anodiad {{type}} ]
+password_label=Rhowch gyfrinair i agor y PDF.
+password_invalid=Cyfrinair annilys. Ceisiwch eto.
+password_ok=Iawn
+password_cancel=Diddymu
+
+printing_not_supported=Rhybudd: Nid yw argraffu yn cael ei gynnal yn llawn gan y porwr.
+printing_not_ready=Rhybudd: Nid yw'r PDF wedi ei lwytho'n llawn ar gyfer argraffu.
+web_fonts_disabled=Ffontiau gwe wedi eu hanablu: methu defnyddio ffontiau PDF mewnblanedig.
+document_colors_disabled=Nid oes caniatâd i ddogfennau PDF i ddefnyddio eu lliwiau eu hunain: Mae 'Caniatáu i dudalennau ddefnyddio eu lliwiau eu hunain' wedi ei atal yn y porwr.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/da/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/da/viewer.properties
new file mode 100644
index 00000000..ddd428bf
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/da/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Forrige side
+previous_label=Forrige
+next.title=Næste side
+next_label=Næste
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Side:
+page_of=af {{pageCount}}
+
+zoom_out.title=Zoom ud
+zoom_out_label=Zoom ud
+zoom_in.title=Zoom ind
+zoom_in_label=Zoom ind
+zoom.title=Zoom
+print.title=Udskriv
+print_label=Udskriv
+presentation_mode.title=Skift til fuldskærmsvisning
+presentation_mode_label=Fuldskærmsvisning
+open_file.title=Ã…bn fil
+open_file_label=Ã…bn
+download.title=Hent
+download_label=Hent
+bookmark.title=Aktuel visning (kopier eller åbn i et nyt vindue)
+bookmark_label=Aktuel visning
+
+# Secondary toolbar and context menu
+tools.title=Funktioner
+tools_label=Funktioner
+first_page.title=Gå til første side
+first_page.label=Gå til første side
+first_page_label=Gå til første side
+last_page.title=GÃ¥ til sidste side
+last_page.label=GÃ¥ til sidste side
+last_page_label=GÃ¥ til sidste side
+page_rotate_cw.title=Roter med uret
+page_rotate_cw.label=Roter med uret
+page_rotate_cw_label=Roter med uret
+page_rotate_ccw.title=Roter mod uret
+page_rotate_ccw.label=Roter mod uret
+page_rotate_ccw_label=Roter mod uret
+
+hand_tool_enable.title=Aktiver håndværktøj
+hand_tool_enable_label=Aktiver håndværktøj
+hand_tool_disable.title=Deaktiver håndværktøj
+hand_tool_disable_label=Deaktiver håndværktøj
+
+# Document properties dialog box
+document_properties.title=Dokumentegenskaber…
+document_properties_label=Dokumentegenskaber…
+document_properties_file_name=Filnavn:
+document_properties_file_size=Filstørrelse:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Titel:
+document_properties_author=Forfatter:
+document_properties_subject=Emne:
+document_properties_keywords=Nøgleord:
+document_properties_creation_date=Oprettet:
+document_properties_modification_date=Redigeret:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Program:
+document_properties_producer=PDF-producent:
+document_properties_version=PDF-version:
+document_properties_page_count=Antal sider:
+document_properties_close=Luk
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Slå sidepanel til eller fra
+toggle_sidebar_label=Slå sidepanel til eller fra
+outline.title=Vis dokumentets disposition
+outline_label=Dokument-disposition
+attachments.title=Vis vedhæftede filer
+attachments_label=Vedhæftede filer
+thumbs.title=Vis miniaturer
+thumbs_label=Miniaturer
+findbar.title=Find i dokument
+findbar_label=Find
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Side {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniature af side {{page}}
+
+# Find panel button title and messages
+find_label=Find:
+find_previous.title=Find den forrige forekomst
+find_previous_label=Forrige
+find_next.title=Find den næste forekomst
+find_next_label=Næste
+find_highlight=Fremhæv alle
+find_match_case_label=Forskel på store og små bogstaver
+find_reached_top=Toppen af siden blev nået, fortsatte fra bunden
+find_reached_bottom=Bunden af siden blev nået, fortsatte fra toppen
+find_not_found=Der blev ikke fundet noget
+
+# Error panel labels
+error_more_info=Mere information
+error_less_info=Mindre information
+error_close=Luk
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Fejlmeddelelse: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fil: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linje: {{line}}
+rendering_error=Der opstod en fejl ved generering af siden.
+
+# Predefined zoom values
+page_scale_width=Sidebredde
+page_scale_fit=Tilpas til side
+page_scale_auto=Automatisk zoom
+page_scale_actual=Faktisk størrelse
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Fejl
+loading_error=Der opstod en fejl ved indlæsning af PDF-filen.
+invalid_file_error=PDF-filen er ugyldig eller ødelagt.
+missing_file_error=Manglende PDF-fil.
+unexpected_response_error=Uventet svar fra serveren.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}}kommentar]
+password_label=Angiv adgangskode til at åbne denne PDF-fil.
+password_invalid=Ugyldig adgangskode. Prøv igen.
+password_ok=OK
+password_cancel=Fortryd
+
+printing_not_supported=Advarsel: Udskrivning er ikke fuldt understøttet af browseren.
+printing_not_ready=Advarsel: PDF-filen er ikke fuldt indlæst til udskrivning.
+web_fonts_disabled=Webskrifttyper er deaktiverede. De indlejrede skrifttyper i PDF-filen kan ikke anvendes.
+document_colors_disabled=PDF-dokumenter må ikke bruge deres egne farver: \u0022'Tillad sider at vælge deres egne farver\u0022' er deaktiveret i browseren.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/de/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/de/viewer.properties
new file mode 100644
index 00000000..685154c9
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/de/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Eine Seite zurück
+previous_label=Zurück
+next.title=Eine Seite vor
+next_label=Vor
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Seite:
+page_of=von {{pageCount}}
+
+zoom_out.title=Verkleinern
+zoom_out_label=Verkleinern
+zoom_in.title=Vergrößern
+zoom_in_label=Vergrößern
+zoom.title=Zoom
+print.title=Drucken
+print_label=Drucken
+presentation_mode.title=In Präsentationsmodus wechseln
+presentation_mode_label=Präsentationsmodus
+open_file.title=Datei öffnen
+open_file_label=Öffnen
+download.title=Dokument speichern
+download_label=Speichern
+bookmark.title=Aktuelle Ansicht (zum Kopieren oder Öffnen in einem neuen Fenster)
+bookmark_label=Aktuelle Ansicht
+
+# Secondary toolbar and context menu
+tools.title=Werkzeuge
+tools_label=Werkzeuge
+first_page.title=Erste Seite anzeigen
+first_page.label=Erste Seite anzeigen
+first_page_label=Erste Seite anzeigen
+last_page.title=Letzte Seite anzeigen
+last_page.label=Letzte Seite anzeigen
+last_page_label=Letzte Seite anzeigen
+page_rotate_cw.title=Im Uhrzeigersinn drehen
+page_rotate_cw.label=Im Uhrzeigersinn drehen
+page_rotate_cw_label=Im Uhrzeigersinn drehen
+page_rotate_ccw.title=Gegen Uhrzeigersinn drehen
+page_rotate_ccw.label=Gegen Uhrzeigersinn drehen
+page_rotate_ccw_label=Gegen Uhrzeigersinn drehen
+
+hand_tool_enable.title=Hand-Werkzeug aktivieren
+hand_tool_enable_label=Hand-Werkzeug aktivieren
+hand_tool_disable.title=Hand-Werkzeug deaktivieren
+hand_tool_disable_label=Hand-Werkzeug deaktivieren
+
+# Document properties dialog box
+document_properties.title=Dokumenteigenschaften
+document_properties_label=Dokumenteigenschaften…
+document_properties_file_name=Dateiname:
+document_properties_file_size=Dateigröße:
+document_properties_kb={{size_kb}} KB ({{size_b}} Bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} Bytes)
+document_properties_title=Titel:
+document_properties_author=Autor:
+document_properties_subject=Thema:
+document_properties_keywords=Stichwörter:
+document_properties_creation_date=Erstelldatum:
+document_properties_modification_date=Bearbeitungsdatum:
+document_properties_date_string={{date}} {{time}}
+document_properties_creator=Anwendung:
+document_properties_producer=PDF erstellt mit:
+document_properties_version=PDF-Version:
+document_properties_page_count=Seitenzahl:
+document_properties_close=Schließen
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Sidebar umschalten
+toggle_sidebar_label=Sidebar umschalten
+outline.title=Dokumentstruktur anzeigen
+outline_label=Dokumentstruktur
+attachments.title=Anhänge anzeigen
+attachments_label=Anhänge
+thumbs.title=Miniaturansichten anzeigen
+thumbs_label=Miniaturansichten
+findbar.title=Dokument durchsuchen
+findbar_label=Suchen
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Seite {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniaturansicht von Seite {{page}}
+
+# Find panel button title and messages
+find_label=Suchen:
+find_previous.title=Vorheriges Auftreten des Suchbegriffs finden
+find_previous_label=Zurück
+find_next.title=Nächstes Auftreten des Suchbegriffs finden
+find_next_label=Weiter
+find_highlight=Alle hervorheben
+find_match_case_label=Groß-/Kleinschreibung beachten
+find_reached_top=Anfang des Dokuments erreicht, fahre am Ende fort
+find_reached_bottom=Ende des Dokuments erreicht, fahre am Anfang fort
+find_not_found=Suchbegriff nicht gefunden
+
+# Error panel labels
+error_more_info=Mehr Informationen
+error_less_info=Weniger Informationen
+error_close=Schließen
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js Version {{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Nachricht: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Aufrufliste: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Datei: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Zeile: {{line}}
+rendering_error=Beim Darstellen der Seite trat ein Fehler auf.
+
+# Predefined zoom values
+page_scale_width=Seitenbreite
+page_scale_fit=Seitengröße
+page_scale_auto=Automatischer Zoom
+page_scale_actual=Originalgröße
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Fehler
+loading_error=Beim Laden der PDF-Datei trat ein Fehler auf.
+invalid_file_error=Ungültige oder beschädigte PDF-Datei
+missing_file_error=Fehlende PDF-Datei
+unexpected_response_error=Unerwartete Antwort des Servers
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anlage: {{type}}]
+password_label=Geben Sie zum Öffnen der PDF-Datei deren Passwort ein.
+password_invalid=Falsches Passwort. Bitte versuchen Sie es erneut.
+password_ok=OK
+password_cancel=Abbrechen
+
+printing_not_supported=Warnung: Die Drucken-Funktion wird durch diesen Browser nicht vollständig unterstützt.
+printing_not_ready=Warnung: Die PDF-Datei ist nicht vollständig geladen, dies ist für das Drucken aber empfohlen.
+web_fonts_disabled=Web-Schriftarten sind deaktiviert: Eingebettete PDF-Schriftarten konnten nicht geladen werden.
+document_colors_disabled=PDF-Dokumenten ist es nicht erlaubt, ihre eigenen Farben zu verwenden: \'Seiten das Verwenden von eigenen Farben erlauben\' ist im Browser deaktiviert.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/el/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/el/viewer.properties
new file mode 100644
index 00000000..36723c22
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/el/viewer.properties
@@ -0,0 +1,131 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=ΠÏοηγοÏμενη σελίδα
+previous_label=ΠÏοηγοÏμενη
+next.title=Επόμενη σελίδα
+next_label=Επόμενη
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Σελίδα:
+page_of= {{pageCount}}
+
+zoom_out.title=ΣμίκÏυνση
+zoom_out_label=ΣμίκÏυνση
+zoom_in.title=Μεγέθυνση
+zoom_in_label=Μεγέθυνση
+zoom.title=Μεγέθυνση
+print.title=ΕκτÏπωση
+print_label=ΕκτÏπωση
+open_file.title=Άνοιγμα αÏχείου
+open_file_label=Άνοιγμα
+download.title=Λήψη
+download_label=Λήψη
+bookmark.title=ΤÏέχουσα Ï€Ïοβολή (αντίγÏαφο ή άνοιγμα σε νέο παÏάθυÏο)
+bookmark_label=ΤÏέχουσα Ï€Ïοβολή
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+outline.title=ΠÏοβολή διάÏθÏωσης κειμένου
+outline_label=ΔιάÏθÏωση κειμένου
+thumbs.title=ΠÏοβολή μικÏογÏαφιών
+thumbs_label=ΜικÏογÏαφίες
+
+
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Σελίδα {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=ΜικÏογÏαφία της σελίδας {{page}}
+
+first_page.label=Μετάβαση στην Ï€Ïώτη σελίδα
+
+# Error panel labels
+error_more_info=ΠεÏισσότεÏες πληÏοφοÏίες
+error_less_info=ΛιγότεÏες πληÏοφοÏίες
+error_close=Κλείσιμο
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Μήνυμα: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ΑÏχείο: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Line: {{line}}
+rendering_error=ΠÏοέκυψε σφάλμα κατά την ανάλυση της σελίδας.
+
+# Predefined zoom values
+page_scale_width=Πλάτος σελίδας
+page_scale_fit=Μέγεθος σελίδας
+page_scale_auto=Αυτόματη μεγέθυνση
+page_scale_actual=ΠÏαγματικό μέγεθος
+
+
+# Context menu
+page_rotate_cw.label=ΔεξιόστÏοφη πεÏιστÏοφή
+page_rotate_ccw.label=ΑÏιστεÏόστÏοφη πεÏιστÏοφή
+
+presentation_mode.title=Μετάβαση σε λειτουÏγία παÏουσίασης
+presentation_mode_label=ΛειτουÏγία παÏουσίασης
+
+# Loading indicator messages
+# LOCALIZATION NOTE (error_line): "{{[percent}}" will be replaced with a percentage
+
+loading_error_indicator=Σφάλμα
+loading_error=ΠÏοέκυψε ένα σφάλμα κατά τη φόÏτωση του PDF.
+
+request_password=Το PDF Ï€ÏοστατεÏεται από κωδικό:
+
+printing_not_supported=ΠÏοειδοποίηση: Η εκτÏπωση δεν υποστηÏίζεται πλήÏως από αυτόν τον πεÏιηγητή.
+
+
+
+findbar.title=ΕÏÏεση στο έγγÏαφο
+findbar_label=ΕÏÏεση
+
+
+# Find panel button title and messages
+find_label=ΕÏÏεση:
+find_previous.title=ΕÏÏεση της Ï€ÏοηγοÏμενης εμφάνισης της φÏάσης
+find_previous_label=ΠÏοηγοÏμενο
+find_next.title=ΕÏÏεση της επόμενης εμφάνισης της φÏάσης
+find_next_label=Επόμενο
+find_highlight=Επισήμανση όλων
+find_match_case_label=ΤαίÏιασμα χαÏακτήÏα
+find_reached_top=Έλευση στην αÏχή του εγγÏάφου, συνέχεια από το τέλος
+find_reached_bottom=Έλευση στο τέλος του εγγÏάφου, συνέχεια από την αÏχή
+find_not_found=Η φÏάση δεν βÏέθηκε
+
+invalid_file_error=Μη έγκυÏο ή κατεστÏαμμένο αÏχείο PDF.
+last_page.label=Μετάβαση στη τελευταία σελίδα
+
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+
+missing_file_error=Λείπει αÏχείο PDF.
+
+
+toggle_sidebar.title=Εναλλαγή Ï€Ïοβολής πλευÏικής στήλης
+toggle_sidebar_label=Εναλλαγή Ï€Ïοβολής πλευÏικής στήλης
+
+web_fonts_disabled=Οι γÏαμματοσειÏές Web απενεÏγοποιημένες: αδυναμία χÏήσης των ενσωματωμένων γÏαμματοσειÏών PDF.
+
+printing_not_ready=ΠÏοειδοποίηση: Το PDF δεν φοÏτώθηκε πλήÏως για εκτÏπωση.
+
+document_colors_disabled=Δεν επιτÏέπεται στα έγγÏαφα PDF να χÏησιμοποιοÏν τα δικά τους χÏώματα: Η επιλογή \'Îα επιτÏέπεται η χÏήση χÏωμάτων της σελίδας\' δεν είναι ενεÏγή στην εφαÏμογή.
+
+invalid_password=Μη έγκυÏος κωδικός.
+text_annotation_type.alt=[{{type}} Annotation]
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-GB/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-GB/viewer.properties
new file mode 100644
index 00000000..f9e1dfb6
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-GB/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Previous Page
+previous_label=Previous
+next.title=Next Page
+next_label=Next
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Page:
+page_of=of {{pageCount}}
+
+zoom_out.title=Zoom Out
+zoom_out_label=Zoom Out
+zoom_in.title=Zoom In
+zoom_in_label=Zoom In
+zoom.title=Zoom
+presentation_mode.title=Switch to Presentation Mode
+presentation_mode_label=Presentation Mode
+open_file.title=Open File
+open_file_label=Open
+print.title=Print
+print_label=Print
+download.title=Download
+download_label=Download
+bookmark.title=Current view (copy or open in new window)
+bookmark_label=Current View
+
+# Secondary toolbar and context menu
+tools.title=Tools
+tools_label=Tools
+first_page.title=Go to First Page
+first_page.label=Go to First Page
+first_page_label=Go to First Page
+last_page.title=Go to Last Page
+last_page.label=Go to Last Page
+last_page_label=Go to Last Page
+page_rotate_cw.title=Rotate Clockwise
+page_rotate_cw.label=Rotate Clockwise
+page_rotate_cw_label=Rotate Clockwise
+page_rotate_ccw.title=Rotate Anti-Clockwise
+page_rotate_ccw.label=Rotate Anti-Clockwise
+page_rotate_ccw_label=Rotate Anti-Clockwise
+
+hand_tool_enable.title=Enable hand tool
+hand_tool_enable_label=Enable hand tool
+hand_tool_disable.title=Disable hand tool
+hand_tool_disable_label=Disable hand tool
+
+# Document properties dialog box
+document_properties.title=Document Properties…
+document_properties_label=Document Properties…
+document_properties_file_name=File name:
+document_properties_file_size=File size:
+document_properties_kb={{size_kb}} kB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Title:
+document_properties_author=Author:
+document_properties_subject=Subject:
+document_properties_keywords=Keywords:
+document_properties_creation_date=Creation Date:
+document_properties_modification_date=Modification Date:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Creator:
+document_properties_producer=PDF Producer:
+document_properties_version=PDF Version:
+document_properties_page_count=Page Count:
+document_properties_close=Close
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Toggle Sidebar
+toggle_sidebar_label=Toggle Sidebar
+outline.title=Show Document Outline
+outline_label=Document Outline
+attachments.title=Show Attachments
+attachments_label=Attachments
+thumbs.title=Show Thumbnails
+thumbs_label=Thumbnails
+findbar.title=Find in Document
+findbar_label=Find
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Page {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Thumbnail of Page {{page}}
+
+# Find panel button title and messages
+find_label=Find:
+find_previous.title=Find the previous occurrence of the phrase
+find_previous_label=Previous
+find_next.title=Find the next occurrence of the phrase
+find_next_label=Next
+find_highlight=Highlight all
+find_match_case_label=Match case
+find_reached_top=Reached top of document, continued from bottom
+find_reached_bottom=Reached end of document, continued from top
+find_not_found=Phrase not found
+
+# Error panel labels
+error_more_info=More Information
+error_less_info=Less Information
+error_close=Close
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Message: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=File: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Line: {{line}}
+rendering_error=An error occurred while rendering the page.
+
+# Predefined zoom values
+page_scale_width=Page Width
+page_scale_fit=Page Fit
+page_scale_auto=Automatic Zoom
+page_scale_actual=Actual Size
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Error
+loading_error=An error occurred while loading the PDF.
+invalid_file_error=Invalid or corrupted PDF file.
+missing_file_error=Missing PDF file.
+unexpected_response_error=Unexpected server response.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=Enter the password to open this PDF file.
+password_invalid=Invalid password. Please try again.
+password_ok=OK
+password_cancel=Cancel
+
+printing_not_supported=Warning: Printing is not fully supported by this browser.
+printing_not_ready=Warning: The PDF is not fully loaded for printing.
+web_fonts_disabled=Web fonts are disabled: unable to use embedded PDF fonts.
+document_colors_disabled=PDF documents are not allowed to use their own colours: 'Allow pages to choose their own colours' is deactivated in the browser.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-US/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-US/viewer.properties
new file mode 100644
index 00000000..4a3a6aaa
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-US/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Previous Page
+previous_label=Previous
+next.title=Next Page
+next_label=Next
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Page:
+page_of=of {{pageCount}}
+
+zoom_out.title=Zoom Out
+zoom_out_label=Zoom Out
+zoom_in.title=Zoom In
+zoom_in_label=Zoom In
+zoom.title=Zoom
+presentation_mode.title=Switch to Presentation Mode
+presentation_mode_label=Presentation Mode
+open_file.title=Open File
+open_file_label=Open
+print.title=Print
+print_label=Print
+download.title=Download
+download_label=Download
+bookmark.title=Current view (copy or open in new window)
+bookmark_label=Current View
+
+# Secondary toolbar and context menu
+tools.title=Tools
+tools_label=Tools
+first_page.title=Go to First Page
+first_page.label=Go to First Page
+first_page_label=Go to First Page
+last_page.title=Go to Last Page
+last_page.label=Go to Last Page
+last_page_label=Go to Last Page
+page_rotate_cw.title=Rotate Clockwise
+page_rotate_cw.label=Rotate Clockwise
+page_rotate_cw_label=Rotate Clockwise
+page_rotate_ccw.title=Rotate Counterclockwise
+page_rotate_ccw.label=Rotate Counterclockwise
+page_rotate_ccw_label=Rotate Counterclockwise
+
+hand_tool_enable.title=Enable hand tool
+hand_tool_enable_label=Enable hand tool
+hand_tool_disable.title=Disable hand tool
+hand_tool_disable_label=Disable hand tool
+
+# Document properties dialog box
+document_properties.title=Document Properties…
+document_properties_label=Document Properties…
+document_properties_file_name=File name:
+document_properties_file_size=File size:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Title:
+document_properties_author=Author:
+document_properties_subject=Subject:
+document_properties_keywords=Keywords:
+document_properties_creation_date=Creation Date:
+document_properties_modification_date=Modification Date:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Creator:
+document_properties_producer=PDF Producer:
+document_properties_version=PDF Version:
+document_properties_page_count=Page Count:
+document_properties_close=Close
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Toggle Sidebar
+toggle_sidebar_label=Toggle Sidebar
+outline.title=Show Document Outline
+outline_label=Document Outline
+attachments.title=Show Attachments
+attachments_label=Attachments
+thumbs.title=Show Thumbnails
+thumbs_label=Thumbnails
+findbar.title=Find in Document
+findbar_label=Find
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Page {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Thumbnail of Page {{page}}
+
+# Find panel button title and messages
+find_label=Find:
+find_previous.title=Find the previous occurrence of the phrase
+find_previous_label=Previous
+find_next.title=Find the next occurrence of the phrase
+find_next_label=Next
+find_highlight=Highlight all
+find_match_case_label=Match case
+find_reached_top=Reached top of document, continued from bottom
+find_reached_bottom=Reached end of document, continued from top
+find_not_found=Phrase not found
+
+# Error panel labels
+error_more_info=More Information
+error_less_info=Less Information
+error_close=Close
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Message: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=File: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Line: {{line}}
+rendering_error=An error occurred while rendering the page.
+
+# Predefined zoom values
+page_scale_width=Page Width
+page_scale_fit=Page Fit
+page_scale_auto=Automatic Zoom
+page_scale_actual=Actual Size
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Error
+loading_error=An error occurred while loading the PDF.
+invalid_file_error=Invalid or corrupted PDF file.
+missing_file_error=Missing PDF file.
+unexpected_response_error=Unexpected server response.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=Enter the password to open this PDF file.
+password_invalid=Invalid password. Please try again.
+password_ok=OK
+password_cancel=Cancel
+
+printing_not_supported=Warning: Printing is not fully supported by this browser.
+printing_not_ready=Warning: The PDF is not fully loaded for printing.
+web_fonts_disabled=Web fonts are disabled: unable to use embedded PDF fonts.
+document_colors_disabled=PDF documents are not allowed to use their own colors: \'Allow pages to choose their own colors\' is deactivated in the browser.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-ZA/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-ZA/viewer.properties
new file mode 100644
index 00000000..6c063a42
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/en-ZA/viewer.properties
@@ -0,0 +1,163 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Previous Page
+previous_label=Previous
+next.title=Next Page
+next_label=Next
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Page:
+page_of=of {{pageCount}}
+
+zoom_out.title=Zoom Out
+zoom_out_label=Zoom Out
+zoom_in.title=Zoom In
+zoom_in_label=Zoom In
+zoom.title=Zoom
+presentation_mode.title=Switch to Presentation Mode
+presentation_mode_label=Presentation Mode
+open_file.title=Open File
+open_file_label=Open
+print.title=Print
+print_label=Print
+download.title=Download
+download_label=Download
+bookmark.title=Current view (copy or open in new window)
+bookmark_label=Current View
+
+# Secondary toolbar and context menu
+tools.title=Tools
+tools_label=Tools
+first_page.title=Go to First Page
+first_page.label=Go to First Page
+first_page_label=Go to First Page
+last_page.title=Go to Last Page
+last_page.label=Go to Last Page
+last_page_label=Go to Last Page
+page_rotate_cw.title=Rotate Clockwise
+page_rotate_cw.label=Rotate Clockwise
+page_rotate_cw_label=Rotate Clockwise
+page_rotate_ccw.title=Rotate Counterclockwise
+page_rotate_ccw.label=Rotate Counterclockwise
+page_rotate_ccw_label=Rotate Counterclockwise
+
+hand_tool_enable.title=Enable hand tool
+hand_tool_enable_label=Enable hand tool
+hand_tool_disable.title=Disable hand tool
+hand_tool_disable_label=Disable hand tool
+
+# Document properties dialog box
+document_properties.title=Document Properties…
+document_properties_label=Document Properties…
+document_properties_file_name=File name:
+document_properties_file_size=File size:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Title:
+document_properties_author=Author:
+document_properties_subject=Subject:
+document_properties_keywords=Keywords:
+document_properties_creation_date=Creation Date:
+document_properties_modification_date=Modification Date:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Creator:
+document_properties_producer=PDF Producer:
+document_properties_version=PDF Version:
+document_properties_page_count=Page Count:
+document_properties_close=Close
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Toggle Sidebar
+toggle_sidebar_label=Toggle Sidebar
+outline.title=Show Document Outline
+outline_label=Document Outline
+attachments.title=Show Attachments
+attachments_label=Attachments
+thumbs.title=Show Thumbnails
+thumbs_label=Thumbnails
+findbar.title=Find in Document
+findbar_label=Find
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Page {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Thumbnail of Page {{page}}
+
+# Find panel button title and messages
+find_label=Find:
+find_previous.title=Find the previous occurrence of the phrase
+find_previous_label=Previous
+find_next.title=Find the next occurrence of the phrase
+find_next_label=Next
+find_highlight=Highlight all
+find_match_case_label=Match case
+find_reached_top=Reached top of document, continued from bottom
+find_reached_bottom=Reached end of document, continued from top
+find_not_found=Phrase not found
+
+# Error panel labels
+error_more_info=More Information
+error_less_info=Less Information
+error_close=Close
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Message: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=File: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Line: {{line}}
+rendering_error=An error occurred while rendering the page.
+
+# Predefined zoom values
+page_scale_width=Page Width
+page_scale_fit=Page Fit
+page_scale_auto=Automatic Zoom
+page_scale_actual=Actual Size
+
+# Loading indicator messages
+loading_error_indicator=Error
+loading_error=An error occurred while loading the PDF.
+invalid_file_error=Invalid or corrupted PDF file.
+missing_file_error=Missing PDF file.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=Enter the password to open this PDF file.
+password_invalid=Invalid password. Please try again.
+password_ok=OK
+password_cancel=Cancel
+
+printing_not_supported=Warning: Printing is not fully supported by this browser.
+printing_not_ready=Warning: The PDF is not fully loaded for printing.
+web_fonts_disabled=Web fonts are disabled: unable to use embedded PDF fonts.
+document_colors_disabled=PDF documents are not allowed to use their own colours: 'Allow pages to choose their own colours' is deactivated in the browser.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/eo/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/eo/viewer.properties
new file mode 100644
index 00000000..65bb15f6
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/eo/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=AntaÅ­a paÄo
+previous_label=MalantaÅ­en
+next.title=Venonta paÄo
+next_label=AntaÅ­en
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=PaÄo:
+page_of=el {{pageCount}}
+
+zoom_out.title=Malpligrandigi
+zoom_out_label=Malpligrandigi
+zoom_in.title=Pligrandigi
+zoom_in_label=Pligrandigi
+zoom.title=Pligrandigilo
+presentation_mode.title=Iri al prezenta reÄimo
+presentation_mode_label=Prezenta reÄimo
+open_file.title=Malfermi dosieron
+open_file_label=Malfermi
+print.title=Presi
+print_label=Presi
+download.title=ElÅuti
+download_label=ElÅuti
+bookmark.title=Nuna vido (kopii aÅ­ malfermi en nova fenestro)
+bookmark_label=Nuna vido
+
+# Secondary toolbar and context menu
+tools.title=Iloj
+tools_label=Iloj
+first_page.title=Iri al la unua paÄo
+first_page.label=Iri al la unua paÄo
+first_page_label=Iri al la unua paÄo
+last_page.title=Iri al la lasta paÄo
+last_page.label=Iri al la lasta paÄo
+last_page_label=Iri al la lasta paÄo
+page_rotate_cw.title=Rotaciigi dekstrume
+page_rotate_cw.label=Rotaciigi dekstrume
+page_rotate_cw_label=Rotaciigi dekstrume
+page_rotate_ccw.title=Rotaciigi maldekstrume
+page_rotate_ccw.label=Rotaciigi maldekstrume
+page_rotate_ccw_label=Rotaciigi maldekstrume
+
+hand_tool_enable.title=Aktivigi manan ilon
+hand_tool_enable_label=Aktivigi manan ilon
+hand_tool_disable.title=Malaktivigi manan ilon
+hand_tool_disable_label=Malaktivigi manan ilon
+
+# Document properties dialog box
+document_properties.title=Atributoj de dokumento…
+document_properties_label=Atributoj de dokumento…
+document_properties_file_name=Nomo de dosiero:
+document_properties_file_size=Grado de dosiero:
+document_properties_kb={{size_kb}} KO ({{size_b}} oktetoj)
+document_properties_mb={{size_mb}} MO ({{size_b}} oktetoj)
+document_properties_title=Titolo:
+document_properties_author=AÅ­toro:
+document_properties_subject=Temo:
+document_properties_keywords=Åœlosilvorto:
+document_properties_creation_date=Dato de kreado:
+document_properties_modification_date=Dato de modifo:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Kreinto:
+document_properties_producer=Produktinto de PDF:
+document_properties_version=Versio de PDF:
+document_properties_page_count=Nombro de paÄoj:
+document_properties_close=Fermi
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Montri/kaÅi flankan strion
+toggle_sidebar_label=Montri/kaÅi flankan strion
+outline.title=Montri skemon de dokumento
+outline_label=Skemo de dokumento
+attachments.title=Montri kunsendaĵojn
+attachments_label=Kunsendaĵojn
+thumbs.title=Montri miniaturojn
+thumbs_label=Miniaturoj
+findbar.title=Serĉi en dokumento
+findbar_label=Serĉi
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=PaÄo {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniaturo de paÄo {{page}}
+
+# Find panel button title and messages
+find_label=Serĉi:
+find_previous.title=Serĉi la antaŭan aperon de la frazo
+find_previous_label=MalantaÅ­en
+find_next.title=Serĉi la venontan aperon de la frazo
+find_next_label=AntaÅ­en
+find_highlight=Elstarigi ĉiujn
+find_match_case_label=Distingi inter majuskloj kaj minuskloj
+find_reached_top=Komenco de la dokumento atingita, daÅ­rigado ekde la fino
+find_reached_bottom=Fino de la dokumento atingita, daÅ­rigado ekde la komenco
+find_not_found=Frazo ne trovita
+
+# Error panel labels
+error_more_info=Pli da informo
+error_less_info=Mapli da informo
+error_close=Fermi
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=MesaÄo: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stako: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Dosiero: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linio: {{line}}
+rendering_error=Okazis eraro dum la montrado de la paÄo.
+
+# Predefined zoom values
+page_scale_width=LarÄo de paÄo
+page_scale_fit=Adapti paÄon
+page_scale_auto=AÅ­tomata skalo
+page_scale_actual=Reala gandeco
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Eraro
+loading_error=Okazis eraro dum la Åargado de la PDF dosiero.
+invalid_file_error=Nevalida aÅ­ difektita PDF dosiero.
+missing_file_error=Mankas dosiero PDF.
+unexpected_response_error=Neatendita respondo de servilo.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Prinoto: {{type}}]
+password_label=Tajpu pasvorton por malfermi tiun ĉi dosieron PDF.
+password_invalid=Nevalida pasvorto. Bonvolu provi denove.
+password_ok=Akcepti
+password_cancel=Nuligi
+
+printing_not_supported=Averto: tiu ĉi retesplorilo ne plene subtenas presadon.
+printing_not_ready=Warning: La PDF dosiero ne estas plene Åargita por presado.
+web_fonts_disabled=Neaktivaj teksaĵaj tiparoj: ne elbas uzi enmetitajn tiparojn de PDF.
+document_colors_disabled=Dokumentoj PDF ne rajtas havi siajn proprajn kolorojn: \'Permesi al paÄoj elekti siajn proprajn kolorojn\' estas malaktiva en la retesplorilo.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-AR/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-AR/viewer.properties
new file mode 100644
index 00000000..733be7ba
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-AR/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Página anterior
+previous_label=Anterior
+next.title=Página siguiente
+next_label=Siguiente
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Página:
+page_of=de {{pageCount}}
+
+zoom_out.title=Alejar
+zoom_out_label=Alejar
+zoom_in.title=Acercar
+zoom_in_label=Acercar
+zoom.title=Zoom
+print.title=Imprimir
+print_label=Imprimir
+presentation_mode.title=Cambiar a modo presentación
+presentation_mode_label=Modo presentación
+open_file.title=Abrir archivo
+open_file_label=Abrir
+download.title=Descargar
+download_label=Descargar
+bookmark.title=Vista actual (copiar o abrir en nueva ventana)
+bookmark_label=Vista actual
+
+# Secondary toolbar and context menu
+tools.title=Herramientas
+tools_label=Herramientas
+first_page.title=Ir a primera página
+first_page.label=Ir a primera página
+first_page_label=Ir a primera página
+last_page.title=Ir a última página
+last_page.label=Ir a última página
+last_page_label=Ir a última página
+page_rotate_cw.title=Rotar horario
+page_rotate_cw.label=Rotar horario
+page_rotate_cw_label=Rotar horario
+page_rotate_ccw.title=Rotar antihorario
+page_rotate_ccw.label=Rotar antihorario
+page_rotate_ccw_label=Rotar antihorario
+
+hand_tool_enable.title=Habilitar herramienta mano
+hand_tool_enable_label=Habilitar herramienta mano
+hand_tool_disable.title=Deshabilitar herramienta mano
+hand_tool_disable_label=Deshabilitar herramienta mano
+
+# Document properties dialog box
+document_properties.title=Propiedades del documento…
+document_properties_label=Propiedades del documento…
+document_properties_file_name=Nombre de archivo:
+document_properties_file_size=Tamaño de archovo:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Título:
+document_properties_author=Autor:
+document_properties_subject=Asunto:
+document_properties_keywords=Palabras clave:
+document_properties_creation_date=Fecha de creación:
+document_properties_modification_date=Fecha de modificación:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Creador:
+document_properties_producer=PDF Productor:
+document_properties_version=Versión de PDF:
+document_properties_page_count=Cantidad de páginas:
+document_properties_close=Cerrar
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Alternar barra lateral
+toggle_sidebar_label=Alternar barra lateral
+outline.title=Mostrar esquema del documento
+outline_label=Esquema del documento
+attachments.title=Mostrar adjuntos
+attachments_label=Adjuntos
+thumbs.title=Mostrar miniaturas
+thumbs_label=Miniaturas
+findbar.title=Buscar en documento
+findbar_label=Buscar
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Página {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatura de página {{page}}
+
+# Find panel button title and messages
+find_label=Buscar:
+find_previous.title=Buscar la aparición anterior de la frase
+find_previous_label=Anterior
+find_next.title=Buscar la siguiente aparición de la frase
+find_next_label=Siguiente
+find_highlight=Resaltar todo
+find_match_case_label=Coincidir mayúsculas
+find_reached_top=Inicio de documento alcanzado, continuando desde abajo
+find_reached_bottom=Fin de documento alcanzando, continuando desde arriba
+find_not_found=Frase no encontrada
+
+# Error panel labels
+error_more_info=Más información
+error_less_info=Menos información
+error_close=Cerrar
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mensaje: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Pila: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Archivo: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Línea: {{line}}
+rendering_error=Ocurrió un error al dibujar la página.
+
+# Predefined zoom values
+page_scale_width=Ancho de página
+page_scale_fit=Ajustar página
+page_scale_auto=Zoom automático
+page_scale_actual=Tamaño real
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Error
+loading_error=Ocurrió un error al cargar el PDF.
+invalid_file_error=Archivo PDF no válido o cocrrupto.
+missing_file_error=Archivo PDF faltante.
+unexpected_response_error=Respuesta del servidor inesperada.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Anotación]
+password_label=Ingrese la contraseña para abrir este archivo PDF
+password_invalid=Contraseña inválida. Intente nuevamente.
+password_ok=Aceptar
+password_cancel=Cancelar
+
+printing_not_supported=Advertencia: La impresión no está totalmente soportada por este navegador.
+printing_not_ready=Advertencia: El PDF no está completamente cargado para impresión.
+web_fonts_disabled=Tipografía web deshabilitada: no se pueden usar tipos incrustados en PDF.
+document_colors_disabled=Los documentos PDF no tienen permitido usar sus propios colores: \'Permitir a las páginas elegir sus propios colores\' está desactivado en el navegador.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-CL/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-CL/viewer.properties
new file mode 100644
index 00000000..f5660c35
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-CL/viewer.properties
@@ -0,0 +1,130 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+previous.title = Página anterior
+previous_label = Anterior
+next.title = Página siguiente
+next_label = Siguiente
+page_label = Página:
+page_of = de {{pageCount}}
+zoom_out.title = Alejar
+zoom_out_label = Alejar
+zoom_in.title = Acercar
+zoom_in_label = Acercar
+zoom.title = Ampliación
+print.title = Imprimir
+print_label = Imprimir
+presentation_mode.title = Cambiar al modo de presentación
+presentation_mode_label = Modo de presentación
+open_file.title = Abrir archivo
+open_file_label = Abrir
+download.title = Descargar
+download_label = Descargar
+bookmark.title = Vista actual (copiar o abrir en nueva ventana)
+bookmark_label = Vista actual
+tools.title=Herramientas
+tools_label=Herramientas
+first_page.title=Ir a la primera página
+first_page.label=Ir a la primera página
+first_page_label=Ir a la primera página
+last_page.title=Ir a la última página
+last_page.label=Ir a la última página
+last_page_label=Ir a la última página
+page_rotate_cw.title=Girar a la derecha
+page_rotate_cw.label=Girar a la derecha
+page_rotate_cw_label=Girar a la derecha
+page_rotate_ccw.title=Girar a la izquierda
+page_rotate_ccw.label=Girar a la izquierda
+page_rotate_ccw_label=Girar a la izquierda
+
+hand_tool_enable.title=Activar herramienta de mano
+hand_tool_enable_label=Activar herramienta de mano
+hand_tool_disable.title=Desactivar herramienta de mano
+hand_tool_disable_label=Desactivar herramienta de mano
+
+document_properties.title=Propiedades del documento…
+document_properties_label=Propiedades del documento…
+document_properties_file_name=Nombre del archivo:
+document_properties_file_size=Tamaño del archivo:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Título:
+document_properties_author=Autor:
+document_properties_subject=Asunto:
+document_properties_keywords=Palabras clave:
+document_properties_creation_date=Fecha de creación:
+document_properties_modification_date=Fecha de modificación:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Creador:
+document_properties_producer=Productor del PDF:
+document_properties_version=Versión de PDF:
+document_properties_page_count=Cantidad de páginas:
+document_properties_close=Cerrar
+
+toggle_sidebar.title=Barra lateral
+toggle_sidebar_label=Mostrar u ocultar la barra lateral
+outline.title = Mostrar esquema del documento
+outline_label = Esquema del documento
+attachments.title=Mostrar adjuntos
+attachments_label=Adjuntos
+thumbs.title = Mostrar miniaturas
+thumbs_label = Miniaturas
+findbar.title = Buscar en el documento
+findbar_label = Buscar
+thumb_page_title = Página {{page}}
+thumb_page_canvas = Miniatura de la página {{page}}
+first_page.label = Ir a la primera página
+last_page.label = Ir a la última página
+page_rotate_cw.label = Rotar en sentido de los punteros del reloj
+page_rotate_ccw.label = Rotar en sentido contrario a los punteros del reloj
+find_label = Buscar:
+find_previous.title = Encontrar la aparición anterior de la frase
+find_previous_label = Previo
+find_next.title = Encontrar la siguiente aparición de la frase
+find_next_label = Siguiente
+find_highlight = Destacar todos
+find_match_case_label = Coincidir mayús./minús.
+find_reached_top=Se alcanzó el inicio del documento, continuando desde el final
+find_reached_bottom=Se alcanzó el final del documento, continuando desde el inicio
+find_not_found = Frase no encontrada
+error_more_info = Más información
+error_less_info = Menos información
+error_close = Cerrar
+error_version_info=PDF.js v{{version}} (compilación: {{build}})
+error_message = Mensaje: {{message}}
+error_stack = Pila: {{stack}}
+error_file = Archivo: {{file}}
+error_line = Línea: {{line}}
+rendering_error = Ha ocurrido un error al renderizar la página.
+page_scale_width = Ancho de página
+page_scale_fit = Ajuste de página
+page_scale_auto = Aumento automático
+page_scale_actual = Tamaño actual
+page_scale_percent={{scale}}%
+loading_error_indicator = Error
+loading_error = Ha ocurrido un error al cargar el PDF.
+invalid_file_error = Archivo PDF inválido o corrupto.
+missing_file_error=Falta el archivo PDF.
+unexpected_response_error=Respuesta del servidor inesperada.
+
+text_annotation_type.alt=[{{type}} Anotación]
+password_label=Ingrese la contraseña para abrir este archivo PDF.
+password_invalid=Contraseña inválida. Por favor, vuelva a intentarlo.
+password_ok=Aceptar
+password_cancel=Cancelar
+
+printing_not_supported = Advertencia: Imprimir no está soportado completamente por este navegador.
+printing_not_ready=Advertencia: El PDF no está completamente cargado para ser impreso.
+web_fonts_disabled=Las fuentes web están desactivadas: imposible usar las fuentes PDF embebidas.
+document_colors_disabled=Los documentos PDF no tienen permitido usar sus propios colores: 'Permitir a las páginas elegir sus propios colores' está desactivado en el navegador.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-ES/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-ES/viewer.properties
new file mode 100644
index 00000000..ee53ab17
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-ES/viewer.properties
@@ -0,0 +1,111 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+previous.title = Página anterior
+previous_label = Anterior
+next.title = Página siguiente
+next_label = Siguiente
+page_label = Página:
+page_of = de {{pageCount}}
+zoom_out.title = Reducir
+zoom_out_label = Reducir
+zoom_in.title = Aumentar
+zoom_in_label = Aumentar
+zoom.title = Tamaño
+presentation_mode.title = Cambiar al modo presentación
+presentation_mode_label = Modo presentación
+open_file.title = Abrir archivo
+open_file_label = Abrir
+print.title = Imprimir
+print_label = Imprimir
+download.title = Descargar
+download_label = Descargar
+bookmark.title = Vista actual (copiar o abrir en una nueva ventana)
+bookmark_label = Vista actual
+tools.title = Herramientas
+tools_label = Herramientas
+first_page.title = Ir a la primera página
+first_page.label = Ir a la primera página
+first_page_label = Ir a la primera página
+last_page.title = Ir a la última página
+last_page.label = Ir a la última página
+last_page_label = Ir a la última página
+page_rotate_cw.title = Rotar en sentido horario
+page_rotate_cw.label = Rotar en sentido horario
+page_rotate_cw_label = Rotar en sentido horario
+page_rotate_ccw.title = Rotar en sentido antihorario
+page_rotate_ccw.label = Rotar en sentido antihorario
+page_rotate_ccw_label = Rotar en sentido antihorario
+hand_tool_enable.title = Activar herramienta mano
+hand_tool_enable_label = Activar herramienta mano
+hand_tool_disable.title = Desactivar herramienta mano
+hand_tool_disable_label = Desactivar herramienta mano
+document_properties.title = Propiedades del documento…
+document_properties_label = Propiedades del documento…
+document_properties_file_name = Nombre de archivo:
+document_properties_file_size = Tamaño de archivo:
+document_properties_kb = {{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb = {{size_mb}} MB ({{size_b}} bytes)
+document_properties_title = Título:
+document_properties_author = Autor:
+document_properties_subject = Asunto:
+document_properties_keywords = Palabras clave:
+document_properties_creation_date = Fecha de creación:
+document_properties_modification_date = Fecha de modificación:
+document_properties_date_string = {{date}}, {{time}}
+document_properties_creator = Creador:
+document_properties_producer = Productor PDF:
+document_properties_version = Versión PDF:
+document_properties_page_count = Número de páginas:
+document_properties_close = Cerrar
+toggle_sidebar.title = Cambiar barra lateral
+toggle_sidebar_label = Cambiar barra lateral
+outline.title = Mostrar el esquema del documento
+outline_label = Esquema del documento
+attachments.title = Mostrar adjuntos
+attachments_label = Adjuntos
+thumbs.title = Mostrar miniaturas
+thumbs_label = Miniaturas
+findbar.title = Buscar en el documento
+findbar_label = Buscar
+thumb_page_title = Página {{page}}
+thumb_page_canvas = Miniatura de la página {{page}}
+find_label = Buscar:
+find_previous.title = Encontrar la anterior aparición de la frase
+find_previous_label = Anterior
+find_next.title = Encontrar la siguiente aparición de esta frase
+find_next_label = Siguiente
+find_highlight = Resaltar todos
+find_match_case_label = Coincidencia de mayús./minús.
+find_reached_top = Se alcanzó el inicio del documento, se continúa desde el final
+find_reached_bottom = Se alcanzó el final del documento, se continúa desde el inicio
+find_not_found = Frase no encontrada
+error_more_info = Más información
+error_less_info = Menos información
+error_close = Cerrar
+error_version_info = PDF.js v{{version}} (build: {{build}})
+error_message = Mensaje: {{message}}
+error_stack = Pila: {{stack}}
+error_file = Archivo: {{file}}
+error_line = Línea: {{line}}
+rendering_error = Ocurrió un error al renderizar la página.
+page_scale_width = Anchura de la página
+page_scale_fit = Ajuste de la página
+page_scale_auto = Tamaño automático
+page_scale_actual = Tamaño actual
+page_scale_percent = {{scale}}%
+loading_error_indicator = Error
+loading_error = Ocurrió un error al cargar el PDF.
+invalid_file_error = Fichero PDF no válido o corrupto.
+missing_file_error = No hay fichero PDF.
+unexpected_response_error = Respuesta inesperada del servidor.
+text_annotation_type.alt = [Anotación {{type}}]
+password_label = Introduzca la contraseña para abrir este archivo PDF.
+password_invalid = Contraseña no válida. Vuelva a intentarlo.
+password_ok = Aceptar
+password_cancel = Cancelar
+printing_not_supported = Advertencia: Imprimir no está totalmente soportado por este navegador.
+printing_not_ready = Advertencia: Este PDF no se ha cargado completamente para poder imprimirse.
+web_fonts_disabled = Las tipografías web están desactivadas: es imposible usar las tipografías PDF embebidas.
+document_colors_disabled = Los documentos PDF no tienen permitido usar sus propios colores: 'Permitir a las páginas elegir sus propios colores' está desactivado en el navegador.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-MX/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-MX/viewer.properties
new file mode 100644
index 00000000..f0b3e7a0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/es-MX/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Página anterior
+previous_label=Anterior
+next.title=Página siguiente
+next_label=Siguiente
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Página:
+page_of=de {{pageCount}}
+
+zoom_out.title=Reducir
+zoom_out_label=Reducir
+zoom_in.title=Aumentar
+zoom_in_label=Aumentar
+zoom.title=Zoom
+presentation_mode.title=Cambiar al modo presentación
+presentation_mode_label=Modo presentación
+open_file.title=Abrir archivo
+open_file_label=Abrir
+print.title=Imprimir
+print_label=Imprimir
+download.title=Descargar
+download_label=Descargar
+bookmark.title=Vista actual (copiar o abrir en una nueva ventana)
+bookmark_label=Vista actual
+
+# Secondary toolbar and context menu
+tools.title=Herramientas
+tools_label=Herramientas
+first_page.title=Ir a la primera página
+first_page.label=Ir a la primera página
+first_page_label=Ir a la primera página
+last_page.title=Ir a la última página
+last_page.label=Ir a la última página
+last_page_label=Ir a la última página
+page_rotate_cw.title=Girar a la derecha
+page_rotate_cw.label=Girar a la derecha
+page_rotate_cw_label=Girar a la derecha
+page_rotate_ccw.title=Girar a la izquierda
+page_rotate_ccw.label=Girar a la izquierda
+page_rotate_ccw_label=Girar a la izquierda
+
+hand_tool_enable.title=Activar herramienta mano
+hand_tool_enable_label=Activar herramienta mano
+hand_tool_disable.title=Desactivar herramienta mano
+hand_tool_disable_label=Desactivar herramienta mano
+
+# Document properties dialog box
+document_properties.title=Propiedades del documento…
+document_properties_label=Propiedades del documento…
+document_properties_file_name=Nombre del archivo:
+document_properties_file_size=Tamaño del archivo:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Título:
+document_properties_author=Autor:
+document_properties_subject=Asunto:
+document_properties_keywords=Palabras claves:
+document_properties_creation_date=Fecha de creación:
+document_properties_modification_date=Fecha de modificación:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Creador:
+document_properties_producer=Productor PDF:
+document_properties_version=Versión PDF:
+document_properties_page_count=Número de páginas:
+document_properties_close=Cerrar
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Cambiar barra lateral
+toggle_sidebar_label=Cambiar barra lateral
+outline.title=Mostrar esquema del documento
+outline_label=Esquema del documento
+attachments.title=Mostrar adjuntos
+attachments_label=Adjuntos
+thumbs.title=Mostrar miniaturas
+thumbs_label=Miniaturas
+findbar.title=Buscar en el documento
+findbar_label=Buscar
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Página {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatura de la página {{page}}
+
+# Find panel button title and messages
+find_label=Encontrar:
+find_previous.title=Ir a la anterior frase encontrada
+find_previous_label=Anterior
+find_next.title=Ir a la siguiente frase encontrada
+find_next_label=Siguiente
+find_highlight=Resaltar todo
+find_match_case_label=Coincidir con mayúsculas y minúsculas
+find_reached_top=Se alcanzó el inicio del documento, se buscará al final
+find_reached_bottom=Se alcanzó el final del documento, se buscará al inicio
+find_not_found=No se encontró la frase
+
+# Error panel labels
+error_more_info=Más información
+error_less_info=Menos información
+error_close=Cerrar
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mensaje: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Pila: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Archivo: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Línea: {{line}}
+rendering_error=Un error ocurrió al renderizar la página.
+
+# Predefined zoom values
+page_scale_width=Ancho de página
+page_scale_fit=Ajustar página
+page_scale_auto=Zoom automático
+page_scale_actual=Tamaño real
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Error
+loading_error=Un error ocurrió al cargar el PDF.
+invalid_file_error=Archivo PDF invalido o dañado.
+missing_file_error=Archivo PDF no encontrado.
+unexpected_response_error=Respuesta inesperada del servidor.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} anotación]
+password_label=Ingresa la contraseña para abrir este archivo PDF.
+password_invalid=Contraseña inválida. Por favor intenta de nuevo.
+password_ok=Aceptar
+password_cancel=Cancelar
+
+printing_not_supported=Advertencia: La impresión no esta completamente soportada por este navegador.
+printing_not_ready=Advertencia: El PDF no cargo completamente para impresión.
+web_fonts_disabled=Las fuentes web están desactivadas: es imposible usar las fuentes PDF embebidas.
+document_colors_disabled=Los documentos PDF no tienen permiso de usar sus propios colores: 'Permitir que las páginas elijan sus propios colores' esta desactivada en el navegador.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/et/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/et/viewer.properties
new file mode 100644
index 00000000..83da357b
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/et/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Eelmine lehekülg
+previous_label=Eelmine
+next.title=Järgmine lehekülg
+next_label=Järgmine
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Lehekülg:
+page_of=(kokku {{pageCount}})
+
+zoom_out.title=Vähenda
+zoom_out_label=Vähenda
+zoom_in.title=Suurenda
+zoom_in_label=Suurenda
+zoom.title=Suurendamine
+presentation_mode.title=Lülitu esitlusrežiimi
+presentation_mode_label=Esitlusrežiim
+open_file.title=Ava fail
+open_file_label=Ava
+print.title=Prindi
+print_label=Prindi
+download.title=Laadi alla
+download_label=Laadi alla
+bookmark.title=Praegune vaade (kopeeri või ava uues aknas)
+bookmark_label=Praegune vaade
+
+# Secondary toolbar and context menu
+tools.title=Tööriistad
+tools_label=Tööriistad
+first_page.title=Mine esimesele leheküljele
+first_page.label=Mine esimesele leheküljele
+first_page_label=Mine esimesele leheküljele
+last_page.title=Mine viimasele leheküljele
+last_page.label=Mine viimasele leheküljele
+last_page_label=Mine viimasele leheküljele
+page_rotate_cw.title=Pööra päripäeva
+page_rotate_cw.label=Pööra päripäeva
+page_rotate_cw_label=Pööra päripäeva
+page_rotate_ccw.title=Pööra vastupäeva
+page_rotate_ccw.label=Pööra vastupäeva
+page_rotate_ccw_label=Pööra vastupäeva
+
+hand_tool_enable.title=Luba sirvimine
+hand_tool_enable_label=Luba sirvimine
+hand_tool_disable.title=Keela sirvimine
+hand_tool_disable_label=Keela sirvimine
+
+# Document properties dialog box
+document_properties.title=Dokumendi omadused…
+document_properties_label=Dokumendi omadused…
+document_properties_file_name=Faili nimi:
+document_properties_file_size=Faili suurus:
+document_properties_kb={{size_kb}} KiB ({{size_b}} baiti)
+document_properties_mb={{size_mb}} MiB ({{size_b}} baiti)
+document_properties_title=Pealkiri:
+document_properties_author=Autor:
+document_properties_subject=Teema:
+document_properties_keywords=Märksõnad:
+document_properties_creation_date=Loodud:
+document_properties_modification_date=Muudetud:
+document_properties_date_string={{date}} {{time}}
+document_properties_creator=Looja:
+document_properties_producer=Generaator:
+document_properties_version=Generaatori versioon:
+document_properties_page_count=Lehekülgi:
+document_properties_close=Sulge
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Näita külgriba
+toggle_sidebar_label=Näita külgriba
+outline.title=Näita sisukorda
+outline_label=Näita sisukorda
+attachments.title=Näita manuseid
+attachments_label=Manused
+thumbs.title=Näita pisipilte
+thumbs_label=Pisipildid
+findbar.title=Otsi dokumendist
+findbar_label=Otsi
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title={{page}}. lehekülg
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}}. lehekülje pisipilt
+
+# Find panel button title and messages
+find_label=Otsi:
+find_previous.title=Otsi fraasi eelmine esinemiskoht
+find_previous_label=Eelmine
+find_next.title=Otsi fraasi järgmine esinemiskoht
+find_next_label=Järgmine
+find_highlight=Too kõik esile
+find_match_case_label=Tõstutundlik
+find_reached_top=Jõuti dokumendi algusesse, jätkati lõpust
+find_reached_bottom=Jõuti dokumendi lõppu, jätkati algusest
+find_not_found=Fraasi ei leitud
+
+# Error panel labels
+error_more_info=Rohkem teavet
+error_less_info=Vähem teavet
+error_close=Sulge
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Teade: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fail: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Rida: {{line}}
+rendering_error=Lehe renderdamisel esines viga.
+
+# Predefined zoom values
+page_scale_width=Mahuta laiusele
+page_scale_fit=Mahuta leheküljele
+page_scale_auto=Automaatne suurendamine
+page_scale_actual=Tegelik suurus
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Viga
+loading_error=PDFi laadimisel esines viga.
+invalid_file_error=Vigane või rikutud PDF-fail.
+missing_file_error=PDF-fail puudub.
+unexpected_response_error=Ootamatu vastus serverilt.
+
+# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=PDF-faili avamiseks sisesta parool.
+password_invalid=Vigane parool. Palun proovi uuesti.
+password_ok=Sobib
+password_cancel=Loobu
+
+printing_not_supported=Hoiatus: printimine pole selle brauseri poolt täielikult toetatud.
+printing_not_ready=Hoiatus: PDF pole printimiseks täielikult laaditud.
+web_fonts_disabled=Veebifondid on keelatud: PDFiga kaasatud fonte pole võimalik kasutada.
+document_colors_disabled=PDF-dokumentidel pole oma värvide kasutamine lubatud: \'Veebilehtedel on lubatud kasutada oma värve\' on brauseris deaktiveeritud.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/eu/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/eu/viewer.properties
new file mode 100644
index 00000000..52d50baa
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/eu/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Aurreko orria
+previous_label=Aurrekoa
+next.title=Hurrengo orria
+next_label=Hurrengoa
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Orria:
+page_of=/ {{pageCount}}
+
+zoom_out.title=Urrundu zooma
+zoom_out_label=Urrundu zooma
+zoom_in.title=Gerturatu zooma
+zoom_in_label=Gerturatu zooma
+zoom.title=Zooma
+presentation_mode.title=Aldatu aurkezpen modura
+presentation_mode_label=Arkezpen modua
+open_file.title=Ireki fitxategia
+open_file_label=Ireki
+print.title=Inprimatu
+print_label=Inprimatu
+download.title=Deskargatu
+download_label=Deskargatu
+bookmark.title=Uneko ikuspegia (kopiatu edo ireki leiho berrian)
+bookmark_label=Uneko ikuspegia
+
+# Secondary toolbar and context menu
+tools.title=Tresnak
+tools_label=Tresnak
+first_page.title=Joan lehen orrira
+first_page.label=Joan lehen orrira
+first_page_label=Joan lehen orrira
+last_page.title=Joan azken orrira
+last_page.label=Joan azken orrira
+last_page_label=Joan azken orrira
+page_rotate_cw.title=Biratu erlojuaren norantzan
+page_rotate_cw.label=Biratu erlojuaren norantzan
+page_rotate_cw_label=Biratu erlojuaren norantzan
+page_rotate_ccw.title=Biratu erlojuaren aurkako norantzan
+page_rotate_ccw.label=Biratu erlojuaren aurkako norantzan
+page_rotate_ccw_label=Biratu erlojuaren aurkako norantzan
+
+hand_tool_enable.title=Gaitu eskuaren tresna
+hand_tool_enable_label=Gaitu eskuaren tresna
+hand_tool_disable.title=Desgaitu eskuaren tresna
+hand_tool_disable_label=Desgaitu eskuaren tresna
+
+# Document properties dialog box
+document_properties.title=Dokumentuaren propietateak…
+document_properties_label=Dokumentuaren propietateak…
+document_properties_file_name=Fitxategi-izena:
+document_properties_file_size=Fitxategiaren tamaina:
+document_properties_kb={{size_kb}} KB ({{size_b}} byte)
+document_properties_mb={{size_mb}} MB ({{size_b}} byte)
+document_properties_title=Izenburua:
+document_properties_author=Egilea:
+document_properties_subject=Gaia:
+document_properties_keywords=Gako-hitzak:
+document_properties_creation_date=Sortze-data:
+document_properties_modification_date=Aldatze-data:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Sortzailea:
+document_properties_producer=PDFaren ekoizlea:
+document_properties_version=PDF bertsioa:
+document_properties_page_count=Orrialde kopurua:
+document_properties_close=Itxi
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Txandakatu alboko barra
+toggle_sidebar_label=Txandakatu alboko barra
+outline.title=Erakutsi dokumentuaren eskema
+outline_label=Dokumentuaren eskema
+attachments.title=Erakutsi eranskinak
+attachments_label=Eranskinak
+thumbs.title=Erakutsi koadro txikiak
+thumbs_label=Koadro txikiak
+findbar.title=Bilatu dokumentuan
+findbar_label=Bilatu
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title={{page}}. orria
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}}. orriaren koadro txikia
+
+# Find panel button title and messages
+find_label=Bilatu:
+find_previous.title=Bilatu esaldiaren aurreko parekatzea
+find_previous_label=Aurrekoa
+find_next.title=Bilatu esaldiaren hurrengo parekatzea
+find_next_label=Hurrengoa
+find_highlight=Nabarmendu guztia
+find_match_case_label=Bat etorri maiuskulekin/minuskulekin
+find_reached_top=Dokumentuaren hasierara heldu da, bukaeratik jarraitzen
+find_reached_bottom=Dokumentuaren bukaerara heldu da, hasieratik jarraitzen
+find_not_found=Esaldia ez da aurkitu
+
+# Error panel labels
+error_more_info=Informazio gehiago
+error_less_info=Informazio gutxiago
+error_close=Itxi
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (eraikuntza: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mezua: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Pila: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fitxategia: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Lerroa: {{line}}
+rendering_error=Errorea gertatu da orria errendatzean.
+
+# Predefined zoom values
+page_scale_width=Orriaren zabalera
+page_scale_fit=Doitu orrira
+page_scale_auto=Zoom automatikoa
+page_scale_actual=Benetako tamaina
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent=%{{scale}}
+
+# Loading indicator messages
+loading_error_indicator=Errorea
+loading_error=Errorea gertatu da PDFa kargatzean.
+invalid_file_error=PDF fitxategi baliogabe edo hondatua.
+missing_file_error=PDF fitxategia falta da.
+unexpected_response_error=Espero gabeko zerbitzariaren erantzuna.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} ohartarazpena]
+password_label=Idatzi PDF fitxategi hau irekitzeko pasahitza.
+password_invalid=Pasahitz baliogabea. Saiatu berriro mesedez.
+password_ok=Ados
+password_cancel=Utzi
+
+printing_not_supported=Abisua: inprimatzeko euskarria ez da erabatekoa nabigatzaile honetan.
+printing_not_ready=Abisua: PDFa ez dago erabat kargatuta inprimatzeko.
+web_fonts_disabled=Webeko letra-tipoak desgaituta daude: ezin dira kapsulatutako PDF letra-tipoak erabili.
+document_colors_disabled=PDF dokumentuek ez dute beraien koloreak erabiltzeko baimenik: 'Baimendu orriak beraien letra-tipoak aukeratzea' desaktibatuta dago nabigatzailean.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fa/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fa/viewer.properties
new file mode 100644
index 00000000..1988978b
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fa/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=صÙحهٔ قبلی
+previous_label=قبلی
+next.title=صÙحهٔ بعدی
+next_label=بعدی
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=صÙحه:
+page_of=از {{pageCount}}
+
+zoom_out.title=کوچک‌نمایی
+zoom_out_label=کوچک‌نمایی
+zoom_in.title=بزرگ‌نمایی
+zoom_in_label=بزرگ‌نمایی
+zoom.title=زوم
+presentation_mode.title=تغییر به حالت ارائه
+presentation_mode_label=حالت ارائه
+open_file.title=باز کردن پرونده
+open_file_label=باز کردن
+print.title=چاپ
+print_label=چاپ
+download.title=بارگیری
+download_label=بارگیری
+bookmark.title=نمای Ùعلی (Ú©Ù¾ÛŒ کن، یا در پنجرۀ دیگری نشان بده)
+bookmark_label=نمای Ùعلی
+
+# Secondary toolbar and context menu
+tools.title=ابزارها
+tools_label=ابزارها
+first_page.title=برو به اولین صÙحه
+first_page.label=برو یه اولین صÙحه
+first_page_label=برو به اولین صÙحه
+last_page.title=برو به آخرین صÙحه
+last_page.label=برو به آخرین صÙحه
+last_page_label=برو به آخرین صÙحه
+page_rotate_cw.title=چرخش ساعتگرد
+page_rotate_cw.label=چرخش ساعتگرد
+page_rotate_cw_label=چرخش ساعتگرد
+page_rotate_ccw.title=چرخش پاد ساعتگرد
+page_rotate_ccw.label=چرخش پاد ساعتگرد
+page_rotate_ccw_label=چرخش پاد ساعتگرد
+
+hand_tool_enable.title=Ùعال سازی ابزار دست
+hand_tool_enable_label=Ùعال سازی ابزار دست
+hand_tool_disable.title=غیر‌Ùعال سازی ابزار دست
+hand_tool_disable_label=غیر‌Ùعال سازی ابزار دست
+
+# Document properties dialog box
+document_properties.title=خصوصیات سند...
+document_properties_label=خصوصیات سند...
+document_properties_file_name=نام Ùایل:
+document_properties_file_size=حجم پرونده:
+document_properties_kb={{size_kb}} کیلوبایت ({{size_b}} بایت)
+document_properties_mb={{size_mb}} مگابایت ({{size_b}} بایت)
+document_properties_title=عنوان:
+document_properties_author=نویسنده:
+document_properties_subject=موضوع:
+document_properties_keywords=کلیدواژه‌ها:
+document_properties_creation_date=تاریخ ایجاد:
+document_properties_modification_date=تاریخ ویرایش:
+document_properties_date_string={{date}}، {{time}}
+document_properties_creator=ایجاد کننده:
+document_properties_producer=ایجاد کننده PDF:
+document_properties_version=نسخه PDF:
+document_properties_page_count=تعداد صÙحات:
+document_properties_close=بستن
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=باز و بسته کردن نوار کناری
+toggle_sidebar_label=تغییرحالت نوارکناری
+outline.title=نمایش طرح نوشتار
+outline_label=طرح نوشتار
+attachments.title=نمایش پیوست‌ها
+attachments_label=پیوست‌ها
+thumbs.title=نمایش تصاویر بندانگشتی
+thumbs_label=تصاویر بندانگشتی
+findbar.title=جستجو در سند
+findbar_label=پیدا کردن
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=صÙحه {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=تصویر بند‌ انگشتی صÙحه {{page}}
+
+# Find panel button title and messages
+find_label=جستجو:
+find_previous.title=پیدا کردن رخداد قبلی عبارت
+find_previous_label=قبلی
+find_next.title=پیدا کردن رخداد بعدی عبارت
+find_next_label=بعدی
+find_highlight=برجسته و هایلایت کردن همه موارد
+find_match_case_label=تطبیق Ú©ÙˆÚ†Ú©ÛŒ Ùˆ بزرگی حروÙ
+find_reached_top=به بالای صÙحه رسیدیم، از پایین ادامه می‌دهیم
+find_reached_bottom=به آخر صÙحه رسیدیم، از بالا ادامه می‌دهیم
+find_not_found=عبارت پیدا نشد
+
+# Error panel labels
+error_more_info=اطلاعات بیشتر
+error_less_info=اطلاعات کمتر
+error_close=بستن
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=â€PDF.js ورژن{{version}} â€(ساخت: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=پیام: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=توده: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=پرونده: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=سطر: {{line}}
+rendering_error=هنگام بارگیری صÙحه خطایی رخ داد.
+
+# Predefined zoom values
+page_scale_width=عرض صÙحه
+page_scale_fit=اندازه کردن صÙحه
+page_scale_auto=بزرگنمایی خودکار
+page_scale_actual=اندازه واقعی‌
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=خطا
+loading_error=هنگام بارگیری پرونده (PDF) خطایی رخ داد.
+invalid_file_error=پرونده PDF نامعتبر یامعیوب می‌باشد.
+missing_file_error=پرونده PDF یاÙت نشد.
+unexpected_response_error=پاسخ پیش بینی نشده سرور
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=جهت باز کردن پرونده PDF گذرواژه را وارد نمائید.
+password_invalid=گذرواژه نامعتبر. لطÙا مجددا تلاش کنید.
+password_ok=تأیید
+password_cancel=انصراÙ
+
+printing_not_supported=هشدار: قابلیت چاپ به‌طور کامل در این مرورگر پشتیبانی نمی‌شود.
+printing_not_ready=اخطار: پرونده PDF بطور کامل بارگیری نشده و امکان چاپ وجود ندارد.
+web_fonts_disabled=Ùونت های تحت وب غیر Ùعال شده اند: امکان استÙاده از نمایش دهنده داخلی PDF وجود ندارد.
+document_colors_disabled=Ùایلهای PDF نمیتوانند Ú©Ù‡ رنگ های خود را داشته باشند. لذا گزینه 'اجازه تغییر رنگ" در مرورگر غیر Ùعال شده است.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ff/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ff/viewer.properties
new file mode 100644
index 00000000..8a64098b
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ff/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Hello Æennungo
+previous_label=ÆennuÉ—o
+next.title=Hello faango
+next_label=Yeeso
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Hello:
+page_of=e nder {{pageCount}}
+
+zoom_out.title=Lonngo WoÉ—É—a
+zoom_out_label=Lonngo WoÉ—É—a
+zoom_in.title=Lonngo Ara
+zoom_in_label=Lonngo Ara
+zoom.title=Lonngo
+presentation_mode.title=Faytu to Presentation Mode
+presentation_mode_label=Presentation Mode
+open_file.title=Uddit Fiilde
+open_file_label=Uddit
+print.title=Winndito
+print_label=Winndito
+download.title=Aawto
+download_label=Aawto
+bookmark.title=Jiytol gonangol (natto walla uddit e henorde)
+bookmark_label=Jiytol Gonangol
+
+# Secondary toolbar and context menu
+tools.title=KuutorÉ—e
+tools_label=KuutorÉ—e
+first_page.title=Yah to hello adanngo
+first_page.label=Yah to hello adanngo
+first_page_label=Yah to hello adanngo
+last_page.title=Yah to hello wattindiingo
+last_page.label=Yah to hello wattindiingo
+last_page_label=Yah to hello wattindiingo
+page_rotate_cw.title=Yiiltu Faya Ñaamo
+page_rotate_cw.label=Yiiltu Faya Ñaamo
+page_rotate_cw_label=Yiiltu Faya Ñaamo
+page_rotate_ccw.title=Yiiltu Faya Nano
+page_rotate_ccw.label=Yiiltu Faya Nano
+page_rotate_ccw_label=Yiiltu Faya Nano
+
+hand_tool_enable.title=Hurmin kuutorgal junngo
+hand_tool_enable_label=Hurmin kuutorgal junngo
+hand_tool_disable.title=DaaÆ´ kuutorgal junngo
+hand_tool_disable_label=DaaÆ´ kuutorgal junngo
+
+# Document properties dialog box
+document_properties.title=Keeroraaɗi Winndannde…
+document_properties_label=Keeroraaɗi Winndannde…
+document_properties_file_name=Innde fiilde:
+document_properties_file_size=Æetol fiilde:
+document_properties_kb={{size_kb}} KB ({{size_b}} bite)
+document_properties_mb={{size_mb}} MB ({{size_b}} bite)
+document_properties_title=Tiitoonde:
+document_properties_author=BinnduÉ—o:
+document_properties_subject=Toɓɓere:
+document_properties_keywords=Kelmekele jiytirÉ—e:
+document_properties_creation_date=Ñalnde Sosaa:
+document_properties_modification_date=Ñalnde Waylaa:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=CosÉ—o:
+document_properties_producer=PaggiiÉ—o PDF:
+document_properties_version=Yamre PDF:
+document_properties_page_count=Limoore Kelle:
+document_properties_close=Uddu
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Toggilo Palal Sawndo
+toggle_sidebar_label=Toggilo Palal Sawndo
+outline.title=Hollu Toɓɓe Fiilannde
+outline_label=Toɓɓe Fiilannde
+attachments.title=Hollu ÆŠisanÉ—e
+attachments_label=ÆŠisanÉ—e
+thumbs.title=Hollu Dooɓe
+thumbs_label=Dooɓe
+findbar.title=Yiylo e fiilannde
+findbar_label=Yiytu
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Hello {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Dooɓre Hello {{page}}
+
+# Find panel button title and messages
+find_label=Yiytu:
+find_previous.title=Yiylo cilol É“ennugol konngol ngol
+find_previous_label=ÆennuÉ—o
+find_next.title=Yiylo cilol garowol konngol ngol
+find_next_label=Yeeso
+find_highlight=Jalbin fof
+find_match_case_label=Jaaɓnu darnde
+find_reached_top=Heɓii fuɗɗorde fiilannde, jokku faya les
+find_reached_bottom=Heɓii hoore fiilannde, jokku faya les
+find_not_found=Konngi njiyataa
+
+# Error panel labels
+error_more_info=Æeydu Humpito
+error_less_info=Ustu Humpito
+error_close=Uddu
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Æatakuure: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fiilde: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Gorol: {{line}}
+rendering_error=Juumre waɗii tuma nde yoŋkittoo hello.
+
+# Predefined zoom values
+page_scale_width=Njaajeendi Hello
+page_scale_fit=KeÆ´eendi Hello
+page_scale_auto=Loongorde Jaajol
+page_scale_actual=Æetol Jaati
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Juumre
+loading_error=Juumre waÉ—ii tuma nde loowata PDF oo.
+invalid_file_error=Fiilde PDF moÆ´Æ´aani walla jiibii.
+missing_file_error=Fiilde PDF ena Å‹akki.
+unexpected_response_error=Jaabtol sarworde tijjinooka.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Siiftannde]
+password_label=Naatu finnde ngam uddite ndee fiilde PDF.
+password_invalid=Finnde moÆ´Æ´aani. TiiÉ—no eto kadi.
+password_ok=OK
+password_cancel=Haaytu
+
+printing_not_supported=Reentino: Winnditagol tammbitaaka no feewi e ndee wanngorde.
+printing_not_ready=Reentino: PDF oo loowaaki haa timmi ngam winnditagol.
+web_fonts_disabled=Ponte geese ko daaÆ´aaÉ—e: horiima huutoraade ponte PDF coomtoraaÉ—e.
+document_colors_disabled=PiilanÉ—e PDF njamiraaka yoo kuutoro goobuuji mum'en keeriiÉ—i: 'Yamir kello yoo kuutoro goobuuki keeriiÉ—i' koko daaÆ´aa e wanngorde ndee.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fi/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fi/viewer.properties
new file mode 100644
index 00000000..d64a0a88
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fi/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Edellinen sivu
+previous_label=Edellinen
+next.title=Seuraava sivu
+next_label=Seuraava
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Sivu:
+page_of=/ {{pageCount}}
+
+zoom_out.title=Loitonna
+zoom_out_label=Loitonna
+zoom_in.title=Lähennä
+zoom_in_label=Lähennä
+zoom.title=Suurennus
+presentation_mode.title=Siirry esitystilaan
+presentation_mode_label=Esitystila
+open_file.title=Avaa tiedosto
+open_file_label=Avaa
+print.title=Tulosta
+print_label=Tulosta
+download.title=Lataa
+download_label=Lataa
+bookmark.title=Avoin ikkuna (kopioi tai avaa uuteen ikkunaan)
+bookmark_label=Avoin ikkuna
+
+# Secondary toolbar and context menu
+tools.title=Tools
+tools_label=Tools
+first_page.title=Siirry ensimmäiselle sivulle
+first_page.label=Siirry ensimmäiselle sivulle
+first_page_label=Siirry ensimmäiselle sivulle
+last_page.title=Siirry viimeiselle sivulle
+last_page.label=Siirry viimeiselle sivulle
+last_page_label=Siirry viimeiselle sivulle
+page_rotate_cw.title=Kierrä oikealle
+page_rotate_cw.label=Kierrä oikealle
+page_rotate_cw_label=Kierrä oikealle
+page_rotate_ccw.title=Kierrä vasemmalle
+page_rotate_ccw.label=Kierrä vasemmalle
+page_rotate_ccw_label=Kierrä vasemmalle
+
+hand_tool_enable.title=Käytä käsityökalua
+hand_tool_enable_label=Käytä käsityökalua
+hand_tool_disable.title=Poista käsityökalu käytöstä
+hand_tool_disable_label=Poista käsityökalu käytöstä
+
+# Document properties dialog box
+document_properties.title=Dokumentin ominaisuudet…
+document_properties_label=Dokumentin ominaisuudet…
+document_properties_file_name=Tiedostonimi:
+document_properties_file_size=Tiedoston koko:
+document_properties_kb={{size_kb}} kt ({{size_b}} tavua)
+document_properties_mb={{size_mb}} Mt ({{size_b}} tavua)
+document_properties_title=Otsikko:
+document_properties_author=Tekijä:
+document_properties_subject=Aihe:
+document_properties_keywords=Avainsanat:
+document_properties_creation_date=Luomispäivämäärä:
+document_properties_modification_date=Muokkauspäivämäärä:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Luoja:
+document_properties_producer=PDF-tuottaja:
+document_properties_version=PDF-versio:
+document_properties_page_count=Sivujen määrä:
+document_properties_close=Sulje
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Näytä/piilota sivupaneeli
+toggle_sidebar_label=Näytä/piilota sivupaneeli
+outline.title=Näytä dokumentin rakenne
+outline_label=Dokumentin rakenne
+attachments.title=Näytä liitteet
+attachments_label=Liitteet
+thumbs.title=Näytä pienoiskuvat
+thumbs_label=Pienoiskuvat
+findbar.title=Etsi dokumentista
+findbar_label=Etsi
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Sivu {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Pienoiskuva sivusta {{page}}
+
+# Find panel button title and messages
+find_label=Etsi:
+find_previous.title=Etsi hakusanan edellinen osuma
+find_previous_label=Edellinen
+find_next.title=Etsi hakusanan seuraava osuma
+find_next_label=Seuraava
+find_highlight=Korosta kaikki
+find_match_case_label=Huomioi kirjainkoko
+find_reached_top=Päästiin dokumentin alkuun, jatketaan lopusta
+find_reached_bottom=Päästiin dokumentin loppuun, continued from top
+find_not_found=Hakusanaa ei löytynyt
+
+# Error panel labels
+error_more_info=Lisätietoja
+error_less_info=Lisätietoja
+error_close=Sulje
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (kooste: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Virheilmoitus: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Pino: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Tiedosto: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Rivi: {{line}}
+rendering_error=Tapahtui virhe piirrettäessä sivua.
+
+# Predefined zoom values
+page_scale_width=Sivun leveys
+page_scale_fit=Koko sivu
+page_scale_auto=Automaattinen suurennus
+page_scale_actual=Todellinen koko
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}} %
+
+# Loading indicator messages
+loading_error_indicator=Virhe
+loading_error=Tapahtui virhe ladattaessa PDF-tiedostoa.
+invalid_file_error=Virheellinen tai vioittunut PDF-tiedosto.
+missing_file_error=Puuttuva PDF-tiedosto.
+unexpected_response_error=Odottamaton vastaus palvelimelta.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=Kirjoita PDF-tiedoston salasana.
+password_invalid=Virheellinen salasana. Yritä uudestaan.
+password_ok=OK
+password_cancel=Peruuta
+
+printing_not_supported=Varoitus: Selain ei tue kaikkia tulostustapoja.
+printing_not_ready=Varoitus: PDF-tiedosto ei ole vielä latautunut kokonaan, eikä sitä voi vielä tulostaa.
+web_fonts_disabled=Verkkosivujen omat kirjasinlajit on estetty: ei voida käyttää upotettuja PDF-kirjasinlajeja.
+document_colors_disabled=PDF-dokumenttien ei ole sallittua käyttää omia värejään: Asetusta "Sivut saavat käyttää omia värejään oletusten sijaan" ei ole valittu selaimen asetuksissa.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fr/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fr/viewer.properties
new file mode 100644
index 00000000..a65e06d7
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fr/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Page précédente
+previous_label=Précédent
+next.title=Page suivante
+next_label=Suivant
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Page :
+page_of=sur {{pageCount}}
+
+zoom_out.title=Zoom arrière
+zoom_out_label=Zoom arrière
+zoom_in.title=Zoom avant
+zoom_in_label=Zoom avant
+zoom.title=Zoom
+presentation_mode.title=Basculer en mode présentation
+presentation_mode_label=Mode présentation
+open_file.title=Ouvrir le fichier
+open_file_label=Ouvrir le fichier
+print.title=Imprimer
+print_label=Imprimer
+download.title=Télécharger
+download_label=Télécharger
+bookmark.title=Affichage courant (copier ou ouvrir dans une nouvelle fenêtre)
+bookmark_label=Affichage actuel
+
+# Secondary toolbar and context menu
+tools.title=Outils
+tools_label=Outils
+first_page.title=Aller à la première page
+first_page.label=Aller à la première page
+first_page_label=Aller à la première page
+last_page.title=Aller à la dernière page
+last_page.label=Aller à la dernière page
+last_page_label=Aller à la dernière page
+page_rotate_cw.title=Rotation horaire
+page_rotate_cw.label=Rotation horaire
+page_rotate_cw_label=Rotation horaire
+page_rotate_ccw.title=Rotation anti-horaire
+page_rotate_ccw.label=Rotation anti-horaire
+page_rotate_ccw_label=Rotation anti-horaire
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Afficher/Masquer le panneau latéral
+toggle_sidebar_label=Afficher/Masquer le panneau latéral
+outline.title=Afficher les signets
+outline_label=Signets du document
+attachments.title=Afficher les pièces jointes
+attachments_label=Pièces jointes
+thumbs.title=Afficher les vignettes
+thumbs_label=Vignettes
+findbar.title=Rechercher dans le document
+findbar_label=Rechercher
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Page {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Vignette de la page {{page}}
+
+hand_tool_enable.title=Activer l'outil main
+hand_tool_enable_label=Activer l'outil main
+hand_tool_disable.title=Désactiver l'outil main
+hand_tool_disable_label=Désactiver l'outil main
+
+# Document properties dialog box
+document_properties.title=Propriétés du document…
+document_properties_label=Propriétés du document…
+document_properties_file_name=Nom du fichier :
+document_properties_file_size=Taille du fichier :
+document_properties_kb={{size_kb}} Ko ({{size_b}} octets)
+document_properties_mb={{size_mb}} Mo ({{size_b}} octets)
+document_properties_title=Titre :
+document_properties_author=Auteur :
+document_properties_subject=Sujet :
+document_properties_keywords=Mots-clés :
+document_properties_creation_date=Date de création :
+document_properties_modification_date=Modifié le :
+document_properties_date_string={{date}} à {{time}}
+document_properties_creator=Créé par :
+document_properties_producer=Outil de conversion PDF :
+document_properties_version=Version PDF :
+document_properties_page_count=Nombre de pages :
+document_properties_close=Fermer
+
+# Find panel button title and messages
+find_label=Rechercher :
+find_previous.title=Trouver l'occurrence précédente de la phrase
+find_previous_label=Précédent
+find_next.title=Trouver la prochaine occurrence de la phrase
+find_next_label=Suivant
+find_highlight=Tout surligner
+find_match_case_label=Respecter la casse
+find_reached_top=Haut de la page atteint, poursuite depuis la fin
+find_reached_bottom=Bas de la page atteint, poursuite au début
+find_not_found=Phrase introuvable
+
+# Error panel labels
+error_more_info=Plus d'informations
+error_less_info=Moins d'informations
+error_close=Fermer
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (identifiant de compilation : {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Message : {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Pile : {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fichier : {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Ligne : {{line}}
+rendering_error=Une erreur s'est produite lors de l'affichage de la page.
+
+# Predefined zoom values
+page_scale_width=Pleine largeur
+page_scale_fit=Page entière
+page_scale_auto=Zoom automatique
+page_scale_actual=Taille réelle
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}} %
+
+# Loading indicator messages
+loading_error_indicator=Erreur
+loading_error=Une erreur s'est produite lors du chargement du fichier PDF.
+invalid_file_error=Fichier PDF invalide ou corrompu.
+missing_file_error=Fichier PDF manquant.
+unexpected_response_error=Réponse inattendue du serveur.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Annotation {{type}}]
+password_label=Veuillez saisir le mot de passe pour ouvrir ce fichier PDF.
+password_invalid=Mot de passe incorrect. Veuillez réessayer.
+password_ok=OK
+password_cancel=Annuler
+
+printing_not_supported=Attention : l'impression n'est pas totalement prise en charge par ce navigateur.
+printing_not_ready=Attention : le PDF n'est pas entièrement chargé pour pouvoir l'imprimer.
+web_fonts_disabled=Les polices web sont désactivées : impossible d'utiliser les polices intégrées au PDF.
+document_colors_disabled=Les documents PDF ne peuvent pas utiliser leurs propres couleurs : « Autoriser les pages web à utiliser leurs propres couleurs » est désactivé dans le navigateur.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fy-NL/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fy-NL/viewer.properties
new file mode 100644
index 00000000..d81561c7
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/fy-NL/viewer.properties
@@ -0,0 +1,173 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Foarige side
+previous_label=Foarige
+next.title=Folgjende side
+next_label=Folgjende
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=side:
+page_of=fan {{pageCount}}
+
+zoom_out.title=Utzoome
+zoom_out_label=Utzoome
+zoom_in.title=Ynzoome
+zoom_in_label=Ynzoome
+zoom.title=Zoome
+print.title=Ofdrukke
+print_label=Ofdrukke
+presentation_mode.title=Wikselje nei presintaasjemoadus
+presentation_mode_label=Presintaasjemoadus
+open_file.title=Bestân iepenje
+open_file_label=Iepenje
+download.title=Ynlade
+download_label=Ynlade
+bookmark.title=Aktuele finster (kopiearje of iepenje yn nij finster)
+bookmark_label=Aktuele finster
+
+# Secondary toolbar and context menu
+tools.title=Ark
+tools_label=Ark
+first_page.title=Gean nei earste side
+first_page.label=Gean nei earste side
+first_page_label=Gean nei earste side
+last_page.title=Gean nei lêste side
+last_page.label=Gean nei lêste side
+last_page_label=Gean nei lêste side
+page_rotate_cw.title=Rjochtsom draaie
+page_rotate_cw.label=Rjochtsom draaie
+page_rotate_cw_label=Rjochtsom draaie
+page_rotate_ccw.title=Linksom draaie
+page_rotate_ccw.label=Linksom draaie
+page_rotate_ccw_label=Linksom draaie
+
+hand_tool_enable.title=Hânark ynskeakelje
+hand_tool_enable_label=Hânark ynskeakelje
+hand_tool_disable.title=Hânark úyskeakelje
+hand_tool_disable_label=Hânark úyskeakelje
+
+# Document properties dialog box
+document_properties.title=Dokuminteigenskippen…
+document_properties_label=Dokuminteigenskippen…
+document_properties_file_name=Bestânsnamme:
+document_properties_file_size=Bestânsgrutte:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Titel:
+document_properties_author=Auteur:
+document_properties_subject=Underwerp:
+document_properties_keywords=Kaaiwurden:
+document_properties_creation_date=Oanmaakdatum:
+document_properties_modification_date=Bewurkingsdatum:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Makker:
+document_properties_producer=PDF-makker:
+document_properties_version=PDF-ferzje:
+document_properties_page_count=Siden:
+document_properties_close=Slute
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Sidebalke yn-/útskeakelje
+toggle_sidebar_label=Sidebalke yn-/útskeakelje
+outline.title=Dokumint ynhâldsopjefte toane
+outline_label=Dokumint ynhâldsopjefte
+attachments.title=Bylagen toane
+attachments_label=Bylagen
+thumbs.title=Foarbylden toane
+thumbs_label=Foarbylden
+findbar.title=Sykje yn dokumint
+findbar_label=Sykje
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Side {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Foarbyld fan side {{page}}
+
+# Context menu
+first_page.label=Nei earste side gean
+last_page.label=Nei lêste side gean
+page_rotate_cw.label=Rjochtsom draaie
+page_rotate_ccw.label=Linksom draaie
+
+# Find panel button title and messages
+find_label=Sykje:
+find_previous.title=It foarige foarkommen fan de tekst sykje
+find_previous_label=Foarige
+find_next.title=It folgjende foarkommen fan de tekst sykje
+find_next_label=Folgjende
+find_highlight=Alles markearje
+find_match_case_label=Haadlettergefoelich
+find_reached_top=Boppekant fan dokumint berikt, trochgien fanôf ûnder
+find_reached_bottom=Ein fan dokumint berikt, trochgien fanôf boppe
+find_not_found=Tekst net fûn
+
+# Error panel labels
+error_more_info=Mear ynformaasje
+error_less_info=Minder ynformaasje
+error_close=Slute
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js f{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Berjocht: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Bestân: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Rigel: {{line}}
+rendering_error=Der is in flater bard by it renderjen fan de side.
+
+# Predefined zoom values
+page_scale_width=Sidebreedte
+page_scale_fit=Hiele side
+page_scale_auto=Automatysk zoome
+page_scale_actual=Wurklike grutte
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Flater
+loading_error=Der is in flater bard by it laden fan de PDF.
+invalid_file_error=Ynfalide of korruptearre PDF-bestân.
+missing_file_error=PDF-bestân ûntbrekt.
+unexpected_response_error=Unferwacht tsjinnerantwurd.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}}-annotaasje]
+password_label=Jou it wachtwurd om dit PDF-bestân te iepenjen.
+password_invalid=Ferkeard wachtwurd. Probearje opnij.
+password_ok=OK
+password_cancel=Annulearje
+
+printing_not_supported=Warning: Printen is net folslein stipe troch dizze browser.
+printing_not_ready=Warning: PDF is net folslein laden om ôf te drukken.
+web_fonts_disabled=Weblettertypen binne útskeakele: gebrûk fan ynsluten PDF-lettertypen is net mooglik.
+document_colors_disabled=PDF-dokuminten binne net tastien om har eigen kleuren te brûken: ‘Siden tastean har eigen kleuren te kiezen’ is útskeakele yn de browser.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ga-IE/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ga-IE/viewer.properties
new file mode 100644
index 00000000..03819596
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ga-IE/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=An Leathanach Roimhe Seo
+previous_label=Roimhe Seo
+next.title=An Chéad Leathanach Eile
+next_label=Ar Aghaidh
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Leathanach:
+page_of=as {{pageCount}}
+
+zoom_out.title=Súmáil Amach
+zoom_out_label=Súmáil Amach
+zoom_in.title=Súmáil Isteach
+zoom_in_label=Súmáil Isteach
+zoom.title=Súmáil
+presentation_mode.title=Úsáid an Mód Láithreoireachta
+presentation_mode_label=Mód Láithreoireachta
+open_file.title=Oscail Comhad
+open_file_label=Oscail
+print.title=Priontáil
+print_label=Priontáil
+download.title=Ãosluchtaigh
+download_label=Ãosluchtaigh
+bookmark.title=An t-amharc reatha (cóipeáil nó oscail i bhfuinneog nua)
+bookmark_label=An tAmharc Reatha
+
+# Secondary toolbar and context menu
+tools.title=Uirlisí
+tools_label=Uirlisí
+first_page.title=Go dtí an chéad leathanach
+first_page.label=Go dtí an chéad leathanach
+first_page_label=Go dtí an chéad leathanach
+last_page.title=Go dtí an leathanach deiridh
+last_page.label=Go dtí an leathanach deiridh
+last_page_label=Go dtí an leathanach deiridh
+page_rotate_cw.title=Rothlaigh ar deiseal
+page_rotate_cw.label=Rothlaigh ar deiseal
+page_rotate_cw_label=Rothlaigh ar deiseal
+page_rotate_ccw.title=Rothlaigh ar tuathal
+page_rotate_ccw.label=Rothlaigh ar tuathal
+page_rotate_ccw_label=Rothlaigh ar tuathal
+
+hand_tool_enable.title=Cumasaigh uirlis láimhe
+hand_tool_enable_label=Cumasaigh uirlis láimhe
+hand_tool_disable.title=Díchumasaigh uirlis láimhe
+hand_tool_disable_label=Díchumasaigh uirlis láimhe
+
+# Document properties dialog box
+document_properties.title=Airíonna na Cáipéise…
+document_properties_label=Airíonna na Cáipéise…
+document_properties_file_name=Ainm an chomhaid:
+document_properties_file_size=Méid an chomhaid:
+document_properties_kb={{size_kb}} kB ({{size_b}} beart)
+document_properties_mb={{size_mb}} MB ({{size_b}} beart)
+document_properties_title=Teideal:
+document_properties_author=Údar:
+document_properties_subject=Ãbhar:
+document_properties_keywords=Eochairfhocail:
+document_properties_creation_date=Dáta Cruthaithe:
+document_properties_modification_date=Dáta Athraithe:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Cruthaitheoir:
+document_properties_producer=Cruthaitheoir an PDF:
+document_properties_version=Leagan PDF:
+document_properties_page_count=Líon Leathanach:
+document_properties_close=Dún
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Scoránaigh an Barra Taoibh
+toggle_sidebar_label=Scoránaigh an Barra Taoibh
+outline.title=Taispeáin Creatlach na Cáipéise
+outline_label=Creatlach na Cáipéise
+attachments.title=Taispeáin Iatáin
+attachments_label=Iatáin
+thumbs.title=Taispeáin Mionsamhlacha
+thumbs_label=Mionsamhlacha
+findbar.title=Aimsigh sa Cháipéis
+findbar_label=Aimsigh
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Leathanach {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Mionsamhail Leathanaigh {{page}}
+
+# Find panel button title and messages
+find_label=Aimsigh:
+find_previous.title=Aimsigh an sampla roimhe seo den nath seo
+find_previous_label=Roimhe seo
+find_next.title=Aimsigh an chéad sampla eile den nath sin
+find_next_label=Ar aghaidh
+find_highlight=Aibhsigh uile
+find_match_case_label=Cásíogair
+find_reached_top=Ag barr na cáipéise, ag leanúint ón mbun
+find_reached_bottom=Ag bun na cáipéise, ag leanúint ón mbarr
+find_not_found=Abairtín gan aimsiú
+
+# Error panel labels
+error_more_info=Tuilleadh Eolais
+error_less_info=Níos Lú Eolais
+error_close=Dún
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Teachtaireacht: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Cruach: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Comhad: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Líne: {{line}}
+rendering_error=Tharla earráid agus an leathanach á leagan amach.
+
+# Predefined zoom values
+page_scale_width=Leithead Leathanaigh
+page_scale_fit=Laghdaigh go dtí an Leathanach
+page_scale_auto=Súmáil Uathoibríoch
+page_scale_actual=Fíormhéid
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Earráid
+loading_error=Tharla earráid agus an cháipéis PDF á luchtú.
+invalid_file_error=Comhad neamhbhailí nó truaillithe PDF.
+missing_file_error=Comhad PDF ar iarraidh.
+unexpected_response_error=Freagra ón bhfreastalaí gan súil leis.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anótáil {{type}}]
+password_label=Cuir an focal faire isteach chun an comhad PDF seo a oscailt.
+password_invalid=Focal faire mícheart. Déan iarracht eile.
+password_ok=OK
+password_cancel=Cealaigh
+
+printing_not_supported=Rabhadh: Ní thacaíonn an brabhsálaí le priontáil go hiomlán.
+printing_not_ready=Rabhadh: Ní féidir an PDF a phriontáil go dtí go mbeidh an cháipéis iomlán luchtaithe.
+web_fonts_disabled=Tá clófhoirne Gréasáin díchumasaithe: ní féidir clófhoirne leabaithe PDF a úsáid.
+document_colors_disabled=Níl cead ag cáipéisí PDF a ndathanna féin a roghnú; tá 'Tabhair cead do leathanaigh a ndathanna féin a roghnú' díchumasaithe sa mbrabhsálaí.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gd/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gd/viewer.properties
new file mode 100644
index 00000000..c2edf028
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gd/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=An duilleag roimhe
+previous_label=Air ais
+next.title=An ath-dhuilleag
+next_label=Air adhart
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Duilleag:
+page_of=à {{pageCount}}
+
+zoom_out.title=Sùm a-mach
+zoom_out_label=Sùm a-mach
+zoom_in.title=Sùm a-steach
+zoom_in_label=Sùm a-steach
+zoom.title=Sùm
+presentation_mode.title=Gearr leum dhan mhodh taisbeanaidh
+presentation_mode_label=Am modh taisbeanaidh
+open_file.title=Fosgail faidhle
+open_file_label=Fosgail
+print.title=Clò-bhuail
+print_label=Clò-bhuail
+download.title=Luchdaich a-nuas
+download_label=Luchdaich a-nuas
+bookmark.title=An sealladh làithreach (dèan lethbhreac no fosgail e ann an uinneag ùr)
+bookmark_label=An sealladh làithreach
+
+# Secondary toolbar and context menu
+tools.title=Innealan
+tools_label=Innealan
+first_page.title=Rach gun chiad duilleag
+first_page.label=Rach gun chiad duilleag
+first_page_label=Rach gun chiad duilleag
+last_page.title=Rach gun duilleag mu dheireadh
+last_page.label=Rach gun duilleag mu dheireadh
+last_page_label=Rach gun duilleag mu dheireadh
+page_rotate_cw.title=Cuairtich gu deiseil
+page_rotate_cw.label=Cuairtich gu deiseil
+page_rotate_cw_label=Cuairtich gu deiseil
+page_rotate_ccw.title=Cuairtich gu tuathail
+page_rotate_ccw.label=Cuairtich gu tuathail
+page_rotate_ccw_label=Cuairtich gu tuathail
+
+hand_tool_enable.title=Cuir inneal na làimhe an comas
+hand_tool_enable_label=Cuir inneal na làimhe an comas
+hand_tool_disable.title=Cuir inneal na làimhe à comas
+hand_tool_disable_label=Cuir à comas inneal na làimhe
+
+# Document properties dialog box
+document_properties.title=Roghainnean na sgrìobhainne…
+document_properties_label=Roghainnean na sgrìobhainne…
+document_properties_file_name=Ainm an fhaidhle:
+document_properties_file_size=Meud an fhaidhle:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Tiotal:
+document_properties_author=Ùghdar:
+document_properties_subject=Cuspair:
+document_properties_keywords=Faclan-luirg:
+document_properties_creation_date=Latha a chruthachaidh:
+document_properties_modification_date=Latha atharrachaidh:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Cruthadair:
+document_properties_producer=Saothraiche a' PDF:
+document_properties_version=Tionndadh a' PDF:
+document_properties_page_count=Àireamh de dhuilleagan:
+document_properties_close=Dùin
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Toglaich am bàr-taoibh
+toggle_sidebar_label=Toglaich am bàr-taoibh
+outline.title=Seall an sgrìobhainn far loidhne
+outline_label=Oir-loidhne na sgrìobhainne
+attachments.title=Seall na ceanglachain
+attachments_label=Ceanglachain
+thumbs.title=Seall na dealbhagan
+thumbs_label=Dealbhagan
+findbar.title=Lorg san sgrìobhainn
+findbar_label=Lorg
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Duilleag a {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Dealbhag duilleag a {{page}}
+
+# Find panel button title and messages
+find_label=Lorg:
+find_previous.title=Lorg làthair roimhe na h-abairt seo
+find_previous_label=Air ais
+find_next.title=Lorg ath-làthair na h-abairt seo
+find_next_label=Air adhart
+find_highlight=Soillsich a h-uile
+find_match_case_label=Aire do litrichean mòra is beaga
+find_reached_top=Ràinig sinn barr na duilleige, a' leantainn air adhart o bhonn na duilleige
+find_reached_bottom=Ràinig sinn bonn na duilleige, a' leantainn air adhart o bharr na duilleige
+find_not_found=Cha deach an abairt a lorg
+
+# Error panel labels
+error_more_info=Barrachd fiosrachaidh
+error_less_info=Nas lugha de dh'fhiosrachadh
+error_close=Dùin
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Teachdaireachd: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stac: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Faidhle: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Loidhne: {{line}}
+rendering_error=Thachair mearachd rè reandaradh na duilleige.
+
+# Predefined zoom values
+page_scale_width=Leud na duilleige
+page_scale_fit=Freagair ri meud na duilleige
+page_scale_auto=Sùm fèin-obrachail
+page_scale_actual=Am fìor-mheud
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Mearachd
+loading_error=Thachair mearachd rè luchdadh a' PDF.
+invalid_file_error=Faidhle PDF a tha mì-dhligheach no coirbte.
+missing_file_error=Faidhle PDF a tha a dhìth.
+unexpected_response_error=Freagairt on fhrithealaiche ris nach robh dùil.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Nòtachadh {{type}}]
+password_label=Cuir a-steach am facal-faire gus am faidhle PDF seo fhosgladh.
+password_invalid=Tha am facal-faire cearr. Nach fheuch thu ris a-rithist?
+password_ok=Ceart ma-tha
+password_cancel=Sguir dheth
+
+printing_not_supported=Rabhadh: Chan eil am brabhsair seo a' cur làn-taic ri clò-bhualadh.
+printing_not_ready=Rabhadh: Cha deach am PDF a luchdadh gu tur airson clò-bhualadh.
+web_fonts_disabled=Tha cruthan-clò lìn à comas: Chan urrainn dhuinn cruthan-clò PDF leabaichte a chleachdadh.
+document_colors_disabled=Chan fhaod sgrìobhainnean PDF na dathan aca fhèin a chleachdadh: Tha "Leig le duilleagan na dathan aca fhèin a chleachdadh" à comas sa bhrabhsair.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gl/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gl/viewer.properties
new file mode 100644
index 00000000..0a1f17b5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gl/viewer.properties
@@ -0,0 +1,164 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Páxina anterior
+previous_label=Anterior
+next.title=Seguinte páxina
+next_label=Seguinte
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Páxina:
+page_of=de {{pageCount}}
+
+zoom_out.title=Reducir
+zoom_out_label=Reducir
+zoom_in.title=Ampliar
+zoom_in_label=Ampliar
+zoom.title=Zoom
+presentation_mode.title=Cambiar ao modo presentación
+presentation_mode_label=Modo presentación
+open_file.title=Abrir ficheiro
+open_file_label=Abrir
+print.title=Imprimir
+print_label=Imprimir
+download.title=Descargar
+download_label=Descargar
+bookmark.title=Vista actual (copiar ou abrir nunha nova xanela)
+bookmark_label=Vista actual
+
+# Secondary toolbar and context menu
+tools.title=Ferramentas
+tools_label=Ferramentas
+first_page.title=Ir á primeira páxina
+first_page.label=Ir á primeira páxina
+first_page_label=Ir á primeira páxina
+last_page.title=Ir á última páxina
+last_page.label=Ir á última páxina
+last_page_label=Ir á última páxina
+page_rotate_cw.title=Rotar no sentido das agullas do reloxo
+page_rotate_cw.label=Rotar no sentido das agullas do reloxo
+page_rotate_cw_label=Rotar no sentido das agullas do reloxo
+page_rotate_ccw.title=Rotar no sentido contrario ás agullas do reloxo
+page_rotate_ccw.label=Rotar no sentido contrario ás agullas do reloxo
+page_rotate_ccw_label=Rotar no sentido contrario ás agullas do reloxo
+
+hand_tool_enable.title=Activar ferramenta man
+hand_tool_enable_label=Activar ferramenta man
+hand_tool_disable.title=Desactivar ferramenta man
+hand_tool_disable_label=Desactivar ferramenta man
+
+# Document properties dialog box
+document_properties.title=Propiedades do documento…
+document_properties_label=Propiedades do documento…
+document_properties_file_name=Nome do ficheiro:
+document_properties_file_size=Tamaño do ficheiro:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Título:
+document_properties_author=Autor:
+document_properties_subject=Asunto:
+document_properties_keywords=Palabras clave:
+document_properties_creation_date=Data de creación:
+document_properties_modification_date=Data de modificación:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Creado por:
+document_properties_producer=Xenerador do PDF:
+document_properties_version=Versión de PDF:
+document_properties_page_count=Número de páxinas:
+document_properties_close=Pechar
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Amosar/agochar a barra lateral
+toggle_sidebar_label=Amosar/agochar a barra lateral
+outline.title=Amosar esquema do documento
+outline_label=Esquema do documento
+attachments.title=Amosar anexos
+attachments_label=Anexos
+thumbs.title=Amosar miniaturas
+thumbs_label=Miniaturas
+findbar.title=Atopar no documento
+findbar_label=Atopar
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Páxina {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatura da páxina {{page}}
+
+# Find panel button title and messages
+find_label=Atopar:
+find_previous.title=Atopar a anterior aparición da frase
+find_previous_label=Anterior
+find_next.title=Atopar a seguinte aparición da frase
+find_next_label=Seguinte
+find_highlight=Realzar todo
+find_match_case_label=Diferenciar maiúsculas de minúsculas
+find_reached_top=Chegouse ao inicio do documento, continuar desde o final
+find_reached_bottom=Chegouse ao final do documento, continuar desde o inicio
+find_not_found=Non se atopou a frase
+
+# Error panel labels
+error_more_info=Máis información
+error_less_info=Menos información
+error_close=Pechar
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (Identificador da compilación: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mensaxe: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Pila: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Ficheiro: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Liña: {{line}}
+rendering_error=Produciuse un erro ao representar a páxina.
+
+# Predefined zoom values
+page_scale_width=Largura da páxina
+page_scale_fit=Axuste de páxina
+page_scale_auto=Zoom automático
+page_scale_actual=Tamaño actual
+
+# Loading indicator messages
+loading_error_indicator=Erro
+loading_error=Produciuse un erro ao cargar o PDF.
+invalid_file_error=Ficheiro PDF danado ou incorrecto.
+missing_file_error=Falta o ficheiro PDF.
+unexpected_response_error=Resposta inesperada do servidor.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anotación {{type}}]
+password_label=Escriba o contrasinal para abrir este ficheiro PDF.
+password_invalid=Contrasinal incorrecto. Tente de novo.
+password_ok=Aceptar
+password_cancel=Cancelar
+
+printing_not_supported=Aviso: A impresión non é compatíbel de todo con este navegador.
+printing_not_ready=Aviso: O PDF non se cargou completamente para imprimirse.
+web_fonts_disabled=Desactiváronse as fontes web: foi imposíbel usar as fontes incrustadas no PDF.
+document_colors_disabled=Non se permite que os documentos PDF usen as súas propias cores: «Permitir que as páxinas escollan as súas propias cores» está desactivado no navegador.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gu-IN/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gu-IN/viewer.properties
new file mode 100644
index 00000000..1e58d3fe
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/gu-IN/viewer.properties
@@ -0,0 +1,149 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=પહેલાનૠપાનà«àª‚
+previous_label=પહેલાનà«
+next.title=આગળનૠપાનà«àª‚
+ next_label=આગળનà«àª‚
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=પાનà«àª‚:
+page_of={{pageCount}} નà«àª‚
+zoom_out.title=મોટૠકરો
+zoom_out_label=મોટૠકરો
+zoom_in.title=નાનà«àª‚ કરો
+zoom_in_label=નાનà«àª‚ કરો
+zoom.title=નાનà«àª‚ મોટૠકરો
+print.title=છાપો
+print_label=છારો
+open_file.title=ફાઇલ ખોલો
+open_file_label=ખોલો
+download.title=ડાઉનલોડ
+download_label=ડાઉનલોડ
+bookmark.title=વરà«àª¤àª®àª¾àª¨ દૃશà«àª¯ (નવી વિનà«àª¡à«‹àª®àª¾àª‚ નકલ કરો અથવા ખોલો)
+bookmark_label=વરà«àª¤àª®àª¾àª¨ દૃશà«àª¯
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+outline.title=દસà«àª¤àª¾àªµà«‡àªœ રૂપરેખા બતાવો
+outline_label=દસà«àª¤àª¾àªµà«‡àªœ રૂપરેખા
+thumbs.title=થંબનેલà«àª¸ બતાવો
+thumbs_label=થંબનેલà«àª¸
+
+# Document outline messages
+
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=પાનà«àª‚ {{page}}
+
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=પાનાં {{page}} નà«àª‚ થંબનેલà«àª¸
+# Error panel labels
+error_more_info=વધારે જાણકારી
+error_less_info=ઓછી જાણકારી
+error_close=બંધ કરો
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=સંદેશો: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=સà«àªŸà«‡àª•: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ફાઇલ: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=વાકà«àª¯: {{line}}
+rendering_error=ભૂલ ઉદà«àª­àªµà«€ જà«àª¯àª¾àª°à«‡ પાનાંનૠરેનà«àª¡ કરી રહà«àª¯àª¾ હોય.
+# Predefined zoom values
+page_scale_width=પાનાની પહોળાઇ
+page_scale_fit=પાનà«àª‚ બંધબેસતà«
+page_scale_auto=આપમેળે નાનà«àª‚મોટૠકરો
+page_scale_actual=ચોકà«àª•àª¸ માપ
+# Loading indicator messages
+# LOCALIZATION NOTE (error_line): "{{[percent}}" will be replaced with a percentage
+
+loading_error_indicator=ભૂલ
+loading_error=ભૂલ ઉદà«àª­àªµà«€ જà«àª¯àª¾àª°à«‡ PDF ને લાવી રહà«àª¯àª¾ હોય.
+# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
+# "{{[type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+
+printing_not_supported=ચેતવણી: છાપવાનà«àª‚ આ બà«àª°àª¾àª‰àªàª° દà«àª¦àª¾àª°àª¾ સંપૂરà«àª£àªªàª£à«‡ આધારભૂત નથી.
+
+error_version_info=PDF.js v{{version}} (build: {{build}})
+find_highlight=બધૠપà«àª°àª•àª¾àª¶àª¿àª¤ કરો
+find_label=શોધો:
+find_match_case_label=કેસ બંધબેસાડો
+find_next.title=શબà«àª¦àª¸àª®à«‚હની આગળની ઘટનાને શોધો
+find_next_label=આગળનà«àª‚
+find_not_found=શબà«àª¦àª¸àª®à«‚હ મળà«àª¯à« નથી
+find_previous.title=શબà«àª¦àª¸àª®à«‚હની પાછલી ઘટનાને શોધો
+find_previous_label=પહેલાંનà«
+find_reached_bottom=દસà«àª¤àª¾àªµà«‡àªœàª¨àª¾àª‚ અંતે પહોંચી ગયા, ઉપરથી ચાલૠકરેલ હતà«
+find_reached_top=દસà«àª¤àª¾àªµà«‡àªœàª¨àª¾àª‚ ટોચે પહોંચી ગયા, તળિયેથી ચાલૠકરેલ હતà«
+findbar.title=દસà«àª¤àª¾àªµà«‡àªœàª®àª¾àª‚ શોધો
+findbar_label=શોધો
+first_page.label=પહેલાં પાનામાં જાવ
+invalid_file_error=અયોગà«àª¯ અથવા ભાંગેલ PDF ફાઇલ.
+last_page.label=છેલà«àª²àª¾ પાનામાં જાવ
+missing_file_error=ગà«àª® થયેલ PDF ફાઇલ.
+page_rotate_ccw.label=ઘડિયાળનાં કાંટાની ઉલટી દિશામાં ફેરવો
+page_rotate_cw.label=ઘડિયાળનાં કાંટાની જેમ ફેરવો
+presentation_mode.title=રજૂઆત સà«àª¥àª¿àª¤àª¿àª®àª¾àª‚ જાવ
+presentation_mode_label=રજૂઆત સà«àª¥àª¿àª¤àª¿
+printing_not_ready=Warning: PDF ઠછાપવા માટે સંપૂરà«àª£àªªàª£à«‡ લાવેલ છે.
+toggle_sidebar.title=ટૉગલ બાજà«àªªàªŸà«àªŸà«€
+toggle_sidebar_label=ટૉગલ બાજà«àªªàªŸà«àªŸà«€
+web_fonts_disabled=વેબ ફોનà«àªŸ નિષà«àª•à«àª°àª¿àª¯ થયેલ છે: àªàª®à«àª¬à«‡àª¡ થયેલ PDF ફોનà«àªŸàª¨à«‡ વાપરવાનà«àª‚ અસમરà«àª¥.
+document_colors_disabled=PDF દસà«àª¤àª¾àªµà«‡àªœà«‹ તેનાં પોતાના રંગોને વાપરવા પરવાનગી આપતા નથી: 'તેનાં પોતાનાં રંગોને પસંદ કરવા માટે પાનાંને પરવાનગી આપો' બà«àª°àª¾àª‰àªàª°àª®àª¾àª‚ નિષà«àª•à«àª°àª¿àª¯ થયેલ છે.
+text_annotation_type.alt=[{{type}} Annotation]
+
+attachments.title=જોડાણોને બતાવો
+attachments_label=જોડાણો
+document_properties_author=લેખક:
+document_properties_close=બંધ કરો
+document_properties_creation_date=નિરà«àª®àª¾àª£ તારીખ:
+document_properties_creator=નિરà«àª®àª¾àª¤àª¾:
+document_properties_date_string={{date}}, {{time}}
+document_properties_file_name=ફાઇલ નામ:
+document_properties_file_size=ફાઇલ માપ:
+document_properties_kb={{size_kb}} KB ({{size_b}} બાઇટ)
+document_properties_keywords=કિવરà«àª¡:
+document_properties_label=દસà«àª¤àª¾àªµà«‡àªœ ગà«àª£àª§àª°à«àª®à«‹â€¦
+document_properties_mb={{size_mb}} MB ({{size_b}} બાઇટ)
+document_properties_modification_date=ફેરફાર તારીખ:
+document_properties_page_count=પાનાં ગણતરી:
+document_properties_producer=PDF નિરà«àª®àª¾àª¤àª¾:
+document_properties_subject=વિષય:
+document_properties_title=શીરà«àª·àª•:
+first_page.title=પà«àª°àª¥àª® પાનાં પર જાવ
+first_page_label=પà«àª°àª¥àª® પાનાં પર જાવ
+hand_tool_disable.title=હાથનાં સાધનને નિષà«àª•à«àª°àª¿àª¯ કરો
+hand_tool_disable_label=હાથનાં સાધનને નિષà«àª•à«àª°àª¿àª¯ કરો
+hand_tool_enable.title=હાથનાં સાધનને સકà«àª°àª¿àª¯ કરો
+hand_tool_enable_label=હાથનાં સાધનને સકà«àª°àª¿àª¯ કરો
+last_page.title=છેલà«àª²àª¾ પાનાં પર જાવ
+last_page_label=છેલà«àª²àª¾ પાનાં પર જાવ
+page_rotate_ccw.title=ઘડિયાળનાં કાંટાની વિરà«àª¦à«àª¦ ફેરવો
+page_rotate_ccw_label=ઘડિયાળનાં કાંટાની વિરà«àª¦à«àª¦ ફેરવો
+page_rotate_cw.title=ઘડિયાળનાં કાંટા તરફ ફેરવો
+page_rotate_cw_label=ઘડિયાળનાં કાંટા તરફ ફેરવો
+password_cancel=રદ કરો
+password_invalid=અયોગà«àª¯ પાસવરà«àª¡. મહેરબાની કરીને ફરી પà«àª°àª¯àª¤à«àª¨ કરો.
+password_label=આ PDF ફાઇલને ખોલવા પાસવરà«àª¡àª¨à«‡ દાખલ કરો.
+password_ok=બરાબર
+tools.title=સાધનો
+tools_label=સાધનો
+
+document_properties_version=PDF આવૃતà«àª¤àª¿:
+document_properties.title=દસà«àª¤àª¾àªµà«‡àªœ ગà«àª£àª§àª°à«àª®à«‹â€¦
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/he/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/he/viewer.properties
new file mode 100644
index 00000000..6a1116f3
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/he/viewer.properties
@@ -0,0 +1,152 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=דף קוד×
+previous_label=קוד×
+next.title=דף הב×
+next_label=הב×
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=עמוד:
+page_of=מתוך {{pageCount}}
+
+zoom_out.title=התרחקות
+zoom_out_label=התרחקות
+zoom_in.title=התקרבות
+zoom_in_label=התקרבות
+zoom.title=מרחק מתצוגה
+presentation_mode.title=מעבר למצב מצגת
+presentation_mode_label=מצב מצגת
+open_file.title=פתיחת קובץ
+open_file_label=פתיחה
+print.title=הדפסה
+print_label=הדפסה
+download.title=הורדה
+download_label=הורדה
+bookmark.title=תצוגה נוכחית (העתקה ×ו פתיחה בחלון חדש)
+bookmark_label=תצוגה נוכחית
+
+# Secondary toolbar and context menu
+tools.title=כלי×
+tools_label=כלי×
+first_page.title=מעבר לעמוד הר×שון
+first_page.label=מעבר לעמוד הר×שון
+first_page_label=מעבר לעמוד הר×שון
+last_page.title=מעבר לעמוד ×”×חרון
+last_page.label=מעבר לעמוד ×”×חרון
+last_page_label=מעבר לעמוד ×”×חרון
+page_rotate_cw.title=הטיה ×¢× ×›×™×•×•×Ÿ השעון
+page_rotate_cw.label=הטיה ×¢× ×›×™×•×•×Ÿ השעון
+page_rotate_cw_label=הטיה ×¢× ×›×™×•×•×Ÿ השעון
+page_rotate_ccw.title=הטיה כנגד כיוון השעון
+page_rotate_ccw.label=הטיה כנגד כיוון השעון
+page_rotate_ccw_label=הטיה כנגד כיוון השעון
+
+hand_tool_enable.title=הפעלת כלי היד
+hand_tool_enable_label=הפעלת כלי היד
+hand_tool_disable.title=נטרול כלי היד
+hand_tool_disable_label=נטרול כלי היד
+
+# Document properties dialog box
+document_properties.title=מ×פייני מסמך…
+document_properties_label=מ×פייני מסמך…
+document_properties_file_name=×©× ×§×•×‘×¥:
+document_properties_file_size=גודל הקובץ:
+document_properties_kb={{size_kb}} ק״ב ({{size_b}} בתי×)
+document_properties_mb={{size_mb}} מ״ב ({{size_b}} בתי×)
+document_properties_title=כותרת:
+document_properties_author=מחבר:
+document_properties_subject=נוש×:
+document_properties_keywords=מילות מפתח:
+document_properties_creation_date=ת×ריך יצירה:
+document_properties_modification_date=ת×ריך שינוי:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=יוצר:
+document_properties_producer=יצרן PDF:
+document_properties_version=גרסת PDF:
+document_properties_page_count=מספר דפי×:
+document_properties_close=סגירה
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=הצגה/הסתרה של סרגל הצד
+toggle_sidebar_label=הצגה/הסתרה של סרגל הצד
+outline.title=הצגת מת×ר מסמך
+outline_label=מת×ר מסמך
+attachments.title=הצגת צרופות
+attachments_label=צרופות
+thumbs.title=הצגת תצוגה מקדימה
+thumbs_label=תצוגה מקדימה
+findbar.title=חיפוש במסמך
+findbar_label=חיפוש
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=עמוד {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=תצוגה מקדימה של עמוד {{page}}
+
+# Find panel button title and messages
+find_label=חיפוש:
+find_previous.title=חיפוש מופע ×§×•×“× ×©×œ הביטוי
+find_previous_label=קוד×
+find_next.title=חיפוש המופע ×”×‘× ×©×œ הביטוי
+find_next_label=הב×
+find_highlight=הדגשת הכול
+find_match_case_label=הת×מת ×ותיות
+find_reached_top=×”×’×™×¢ לר×ש הדף, ממשיך מלמטה
+find_reached_bottom=הגיע לסוף הדף, ממשיך מלמעלה
+find_not_found=ביטוי ×œ× × ×ž×¦×
+
+# Error panel labels
+error_more_info=מידע נוסף
+error_less_info=פחות מידע
+error_close=סגירה
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js גרסה {{version}} (בנייה: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=הודעה: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=תוכן מחסנית: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=קובץ: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=שורה: {{line}}
+rendering_error=×ירעה שגי××” בעת עיבוד הדף.
+
+# Predefined zoom values
+page_scale_width=רוחב העמוד
+page_scale_fit=הת×מה לעמוד
+page_scale_auto=מרחק מתצוגה ×וטומטי
+page_scale_actual=גודל ×מתי
+
+# Loading indicator messages
+loading_error_indicator=שגי××”
+loading_error=×ירעה שגי××” בעת טעינת ×”Ö¾PDF.
+invalid_file_error=קובץ PDF ×¤×’×•× ×ו ×œ× ×ª×§×™×Ÿ.
+missing_file_error=קובץ PDF חסר.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[הערת {{type}}]
+password_label=× × ×œ×”×›× ×™×¡ ×ת הססמה לפתיחת קובץ PDF ×–×”.
+password_invalid=ססמה שגויה. × × ×œ× ×¡×•×ª שנית.
+password_ok=×ישור
+password_cancel=ביטול
+
+printing_not_supported=×זהרה: הדפסה ××™× ×” נתמכת במלו××” בדפדפן ×–×”.
+printing_not_ready=×זהרה: ×”Ö¾PDF ×œ× × ×™×ª×Ÿ לחלוטין עד מצב שמ×פשר הדפסה.
+web_fonts_disabled=גופני רשת מנוטרלי×: ×œ× × ×™×ª×Ÿ להשתמש בגופני PDF מוטבעי×.
+document_colors_disabled=מסמכי PDF ×œ× ×™×›×•×œ×™× ×œ×”×©×ª×ž×© ×‘×¦×‘×¢×™× ×ž×©×œ×”×: ×”×פשרות \\'ל×פשר ×œ×¢×ž×•×“×™× ×œ×‘×—×•×¨ ×¦×‘×¢×™× ×ž×©×œ×”×\\' ××™× ×” פעילה בדפדפן. \ No newline at end of file
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hi-IN/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hi-IN/viewer.properties
new file mode 100644
index 00000000..7b8db3ed
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hi-IN/viewer.properties
@@ -0,0 +1,166 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=पिछला पृषà¥à¤ 
+previous_label=पिछला
+next.title=अगला पृषà¥à¤ 
+next_label=आगे
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=पृषà¥à¤ :
+page_of={{pageCount}} का
+
+zoom_out.title=छोटा करें
+zoom_out_label=छोटा करें
+zoom_in.title=बड़ा करें
+zoom_in_label=बड़ा करें
+zoom.title=बड़ा-छोटा करें
+presentation_mode.title=पà¥à¤°à¤¸à¥à¤¤à¥à¤¤à¤¿ अवसà¥à¤¥à¤¾ में जाà¤à¤
+presentation_mode_label=पà¥à¤°à¤¸à¥à¤¤à¥à¤¤à¤¿ अवसà¥à¤¥à¤¾
+open_file.title=फ़ाइल खोलें
+open_file_label=खोलें
+print.title=छापें
+print_label=छापें
+download.title=डाउनलोड
+download_label=डाउनलोड
+bookmark.title=मौजूदा दृशà¥à¤¯ (नठविंडो में नक़ल लें या खोलें)
+bookmark_label=मौजूदा दृशà¥à¤¯
+
+# Secondary toolbar and context menu
+tools.title=औज़ार
+tools_label=औज़ार
+first_page.title=पà¥à¤°à¤¥à¤® पृषà¥à¤  पर जाà¤à¤
+first_page.label=पà¥à¤°à¤¥à¤® पृषà¥à¤  पर जाà¤à¤
+first_page_label=पà¥à¤°à¤¥à¤® पृषà¥à¤  पर जाà¤à¤
+last_page.title=अंतिम पृषà¥à¤  पर जाà¤à¤
+last_page.label=अंतिम पृषà¥à¤  पर जाà¤à¤
+last_page_label=अंतिम पृषà¥à¤  पर जाà¤à¤
+page_rotate_cw.title=घड़ी की दिशा में घà¥à¤®à¤¾à¤à¤
+page_rotate_cw.label=घड़ी की दिशा में घà¥à¤®à¤¾à¤à¤
+page_rotate_cw_label=घड़ी की दिशा में घà¥à¤®à¤¾à¤à¤
+page_rotate_ccw.title=घड़ी की दिशा से उलà¥à¤Ÿà¤¾ घà¥à¤®à¤¾à¤à¤
+page_rotate_ccw.label=घड़ी की दिशा से उलà¥à¤Ÿà¤¾ घà¥à¤®à¤¾à¤à¤
+page_rotate_ccw_label=घड़ी की दिशा से उलà¥à¤Ÿà¤¾ घà¥à¤®à¤¾à¤à¤
+
+hand_tool_enable.title=हाथ औजार सकà¥à¤°à¤¿à¤¯ करें
+hand_tool_enable_label=हाथ औजार सकà¥à¤°à¤¿à¤¯ करें
+hand_tool_disable.title=हाथ औजार निषà¥à¤•à¥à¤°à¤¿à¤¯ करना
+hand_tool_disable_label=हाथ औजार निषà¥à¤•à¥à¤°à¤¿à¤¯ करना
+
+# Document properties dialog box
+document_properties.title=दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ विशेषता...
+document_properties_label=दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ विशेषता...
+document_properties_file_name=फ़ाइल नाम:
+document_properties_file_size=फाइल आकारः
+document_properties_kb={{size_kb}} KB ({{size_b}} बाइट)
+document_properties_mb={{size_mb}} MB ({{size_b}} बाइट)
+document_properties_title=शीरà¥à¤·à¤•:
+document_properties_author=लेखकः
+document_properties_subject=विषय:
+document_properties_keywords=कà¥à¤‚जी-शबà¥à¤¦:
+document_properties_creation_date=निरà¥à¤®à¤¾à¤£ दिनांक:
+document_properties_modification_date=संशोधन दिनांक:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=निरà¥à¤®à¤¾à¤¤à¤¾:
+document_properties_producer=PDF उतà¥à¤ªà¤¾à¤¦à¤•:
+document_properties_version=PDF संसà¥à¤•à¤°à¤£:
+document_properties_page_count=पृषà¥à¤  गिनती:
+document_properties_close=बंद करें
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=सà¥à¤²à¤¾à¤‡à¤¡à¤° टॉगल करें
+toggle_sidebar_label=सà¥à¤²à¤¾à¤‡à¤¡à¤° टॉगल करें
+outline.title=दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ आउटलाइन दिखाà¤à¤
+outline_label=दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ आउटलाइन
+attachments.title=संलगà¥à¤¨à¤• दिखायें
+attachments_label=संलगà¥à¤¨à¤•
+thumbs.title=लघà¥à¤›à¤µà¤¿à¤¯à¤¾à¤ दिखाà¤à¤
+thumbs_label=लघॠछवि
+findbar.title=दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ में ढूà¤à¤¢à¤¼à¥‡à¤‚
+findbar_label=ढूà¤à¤¢à¤¼à¥‡à¤‚
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=पृषà¥à¤  {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=पृषà¥à¤  {{page}} की लघà¥-छवि
+
+# Find panel button title and messages
+find_label=ढूंढें:
+find_previous.title=वाकà¥à¤¯à¤¾à¤‚श की पिछली उपसà¥à¤¥à¤¿à¤¤à¤¿ ढूà¤à¤¢à¤¼à¥‡à¤‚
+find_previous_label=पिछला
+find_next.title=वाकà¥à¤¯à¤¾à¤‚श की अगली उपसà¥à¤¥à¤¿à¤¤à¤¿ ढूà¤à¤¢à¤¼à¥‡à¤‚
+find_next_label=आगे
+find_highlight=सभी आलोकित करें
+find_match_case_label=मिलान सà¥à¤¥à¤¿à¤¤à¤¿
+find_reached_top=पृषà¥à¤  के ऊपर पहà¥à¤‚च गया, नीचे से जारी रखें
+find_reached_bottom=पृषà¥à¤  के नीचे में जा पहà¥à¤à¤šà¤¾, ऊपर से जारी
+find_not_found=वाकà¥à¤¯à¤¾à¤‚श नहीं मिला
+
+# Error panel labels
+error_more_info=अधिक सूचना
+error_less_info=कम सूचना
+error_close=बंद करें
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=संदेश: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=सà¥à¤Ÿà¥ˆà¤•: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=फ़ाइल: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=पंकà¥à¤¤à¤¿: {{line}}
+rendering_error=पृषà¥à¤  रेंडरिंग के दौरान तà¥à¤°à¥à¤Ÿà¤¿ आई.
+
+# Predefined zoom values
+page_scale_width=पृषà¥à¤  चौड़ाई
+page_scale_fit=पृषà¥à¤  फिट
+page_scale_auto=सà¥à¤µà¤šà¤¾à¤²à¤¿à¤¤ जूम
+page_scale_actual=वासà¥à¤¤à¤µà¤¿à¤• आकार
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+
+# Loading indicator messages
+loading_error_indicator=तà¥à¤°à¥à¤Ÿà¤¿
+loading_error=पीडीà¤à¤« लोड करते समय à¤à¤• तà¥à¤°à¥à¤Ÿà¤¿ हà¥à¤ˆ.
+invalid_file_error=अमानà¥à¤¯ या भà¥à¤°à¤·à¥à¤Ÿ PDF फ़ाइल.
+missing_file_error=अनà¥à¤ªà¤¸à¥à¤¥à¤¿à¤¤ PDF फ़ाइल.
+unexpected_response_error=अपà¥à¤°à¤¤à¥à¤¯à¤¾à¤¶à¤¿à¤¤ सरà¥à¤µà¤° पà¥à¤°à¤¤à¤¿à¤•à¥à¤°à¤¿à¤¯à¤¾.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=इस पीडीà¤à¤« फ़ाइल को खोलने के लिठकृपया कूटशबà¥à¤¦ भरें.
+password_invalid=अवैध कूटशबà¥à¤¦, कृपया फिर कोशिश करें.
+password_ok=ठीक
+password_cancel=रदà¥à¤¦ करें
+
+printing_not_supported=चेतावनी: इस बà¥à¤°à¤¾à¤‰à¤œà¤¼à¤° पर छपाई पूरी तरह से समरà¥à¤¥à¤¿à¤¤ नहीं है.
+printing_not_ready=चेतावनी: पीडीà¤à¤« छपाई के लिठपूरी तरह से लोड नहीं है.
+web_fonts_disabled=वेब फॉनà¥à¤Ÿà¥à¤¸ निषà¥à¤•à¥à¤°à¤¿à¤¯ हैं: अंतःसà¥à¤¥à¤¾à¤ªà¤¿à¤¤ PDF फॉनà¥à¤Ÿà¤¸ के उपयोग में असमरà¥à¤¥.
+document_colors_disabled=PDF दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ उनके अपने रंग को उपयोग करने के लिठअनà¥à¤®à¤¤à¤¿ पà¥à¤°à¤¾à¤ªà¥à¤¤ नहीं है: 'पृषà¥à¤ à¥‹à¤‚ को उनके अपने रंग को चà¥à¤¨à¤¨à¥‡ के लिठसà¥à¤µà¥€à¤•à¥ƒà¤¤à¤¿ दें कि वह उस बà¥à¤°à¤¾à¤‰à¤œà¤¼à¤° में निषà¥à¤•à¥à¤°à¤¿à¤¯ है.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hr/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hr/viewer.properties
new file mode 100644
index 00000000..50a43a7c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hr/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Prethodna stranica
+previous_label=Prethodna
+next.title=Iduća stranica
+next_label=Iduća
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Stranica:
+page_of=od {{pageCount}}
+
+zoom_out.title=Uvećaj
+zoom_out_label=Smanji
+zoom_in.title=Uvaćaj
+zoom_in_label=Smanji
+zoom.title=Uvećanje
+presentation_mode.title=Prebaci u prezentacijski naÄin rada
+presentation_mode_label=Prezentacijski naÄin rada
+open_file.title=Otvori datoteku
+open_file_label=Otvori
+print.title=Ispis
+print_label=Ispis
+download.title=Preuzmi
+download_label=Preuzmi
+bookmark.title=Trenutni prikaz (kopiraj ili otvori u novom prozoru)
+bookmark_label=Trenutni prikaz
+
+# Secondary toolbar and context menu
+tools.title=Alati
+tools_label=Alati
+first_page.title=Idi na prvu stranicu
+first_page.label=Idi na prvu stranicu
+first_page_label=Idi na prvu stranicu
+last_page.title=Idi na posljednju stranicu
+last_page.label=Idi na posljednju stranicu
+last_page_label=Idi na posljednju stranicu
+page_rotate_cw.title=Rotiraj u smjeru kazaljke na satu
+page_rotate_cw.label=Rotiraj u smjeru kazaljke na satu
+page_rotate_cw_label=Rotiraj u smjeru kazaljke na satu
+page_rotate_ccw.title=Rotiraj obrnutno od smjera kazaljke na satu
+page_rotate_ccw.label=Rotiraj obrnutno od smjera kazaljke na satu
+page_rotate_ccw_label=Rotiraj obrnutno od smjera kazaljke na satu
+
+hand_tool_enable.title=Omogući ruÄni alat
+hand_tool_enable_label=Omogući ruÄni alat
+hand_tool_disable.title=Onemogući ruÄni alat
+hand_tool_disable_label=Onemogući ruÄni alat
+
+# Document properties dialog box
+document_properties.title=Svojstva dokumenta...
+document_properties_label=Svojstva dokumenta...
+document_properties_file_name=Naziv datoteke:
+document_properties_file_size=VeliÄina datoteke:
+document_properties_kb={{size_kb}} KB ({{size_b}} bajtova)
+document_properties_mb={{size_mb}} MB ({{size_b}} bajtova)
+document_properties_title=Naslov:
+document_properties_author=Autor:
+document_properties_subject=Predmet:
+document_properties_keywords=KljuÄne rijeÄi:
+document_properties_creation_date=Datum stvaranja:
+document_properties_modification_date=Datum promjene:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Stvaralac:
+document_properties_producer=PDF stvaratelj:
+document_properties_version=PDF inaÄica:
+document_properties_page_count=Broj stranica:
+document_properties_close=Zatvori
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Prikaži/sakrij boÄnu traku
+toggle_sidebar_label=Prikaži/sakrij boÄnu traku
+outline.title=Prikaži obris dokumenta
+outline_label=Obris dokumenta
+attachments.title=Prikaži privitke
+attachments_label=Privitci
+thumbs.title=Prikaži sliÄice
+thumbs_label=SliÄice
+findbar.title=Traži u dokumentu
+findbar_label=Traži
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Stranica {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=SliÄica stranice {{page}}
+
+# Find panel button title and messages
+find_label=Traži:
+find_previous.title=Pronađi prethodno javljanje ovog izraza
+find_previous_label=Prethodno
+find_next.title=Pronađi iduće javljanje ovog izraza
+find_next_label=Iduće
+find_highlight=Istankni sve
+find_match_case_label=SluÄaj podudaranja
+find_reached_top=Dosegnut vrh dokumenta, nastavak od dna
+find_reached_bottom=Dosegnut vrh dokumenta, nastavak od vrha
+find_not_found=Izraz nije pronađen
+
+# Error panel labels
+error_more_info=Više informacija
+error_less_info=Manje informacija
+error_close=Zatvori
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Poruka: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stog: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Datoteka: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Redak: {{line}}
+rendering_error=Došlo je do greške prilikom iscrtavanja stranice.
+
+# Predefined zoom values
+page_scale_width=Å irina stranice
+page_scale_fit=Pristajanje stranici
+page_scale_auto=Automatsko uvećanje
+page_scale_actual=Prava veliÄina
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Greška
+loading_error=DoÅ¡lo je do greÅ¡ke pri uÄitavanju PDF-a.
+invalid_file_error=Kriva ili oštećena PDF datoteka.
+missing_file_error=Nedostaje PDF datoteka.
+unexpected_response_error=NeoÄekivani odgovor poslužitelja.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Bilješka]
+password_label=Upišite lozinku da biste otvorili ovu PDF datoteku.
+password_invalid=Neispravna lozinka. Pokušajte ponovo.
+password_ok=U redu
+password_cancel=Odustani
+
+printing_not_supported=Upozorenje: Ispisivanje nije potpuno podržano u ovom pregledniku.
+printing_not_ready=Upozorenje: PDF nije u potpunosti uÄitan za ispis.
+web_fonts_disabled=Web fontovi su onemogućeni: nije moguće koristiti umetnute PDF fontove.
+document_colors_disabled=PDF dokumenti nemaju dopuštene koristiti vlastite boje: opcija 'Dopusti stranicama da koriste vlastite boje' je deaktivirana.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hu/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hu/viewer.properties
new file mode 100644
index 00000000..eda1c88b
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hu/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Előző oldal
+previous_label=Előző
+next.title=Következő oldal
+next_label=Tovább
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Oldal:
+page_of=összesen: {{pageCount}}
+
+zoom_out.title=Kicsinyítés
+zoom_out_label=Kicsinyítés
+zoom_in.title=Nagyítás
+zoom_in_label=Nagyítás
+zoom.title=Nagyítás
+presentation_mode.title=Váltás bemutató módba
+presentation_mode_label=Bemutató mód
+open_file.title=Fájl megnyitása
+open_file_label=Megnyitás
+print.title=Nyomtatás
+print_label=Nyomtatás
+download.title=Letöltés
+download_label=Letöltés
+bookmark.title=Jelenlegi nézet (másolás vagy megnyitás új ablakban)
+bookmark_label=Aktuális nézet
+
+# Secondary toolbar and context menu
+tools.title=Eszközök
+tools_label=Eszközök
+first_page.title=Ugrás az első oldalra
+first_page.label=Ugrás az első oldalra
+first_page_label=Ugrás az első oldalra
+last_page.title=Ugrás az utolsó oldalra
+last_page.label=Ugrás az utolsó oldalra
+last_page_label=Ugrás az utolsó oldalra
+page_rotate_cw.title=Forgatás az óramutató járásával egyezően
+page_rotate_cw.label=Forgatás az óramutató járásával egyezően
+page_rotate_cw_label=Forgatás az óramutató járásával egyezően
+page_rotate_ccw.title=Forgatás az óramutató járásával ellentétesen
+page_rotate_ccw.label=Forgatás az óramutató járásával ellentétesen
+page_rotate_ccw_label=Forgatás az óramutató járásával ellentétesen
+
+hand_tool_enable.title=Kéz eszköz bekapcsolása
+hand_tool_enable_label=Kéz eszköz bekapcsolása
+hand_tool_disable.title=Kéz eszköz kikapcsolása
+hand_tool_disable_label=Kéz eszköz kikapcsolása
+
+# Document properties dialog box
+document_properties.title=Dokumentum tulajdonságai…
+document_properties_label=Dokumentum tulajdonságai…
+document_properties_file_name=Fájlnév:
+document_properties_file_size=Fájlméret:
+document_properties_kb={{size_kb}} KB ({{size_b}} bájt)
+document_properties_mb={{size_mb}} MB ({{size_b}} bájt)
+document_properties_title=Cím:
+document_properties_author=Szerző:
+document_properties_subject=Tárgy:
+document_properties_keywords=Kulcsszavak:
+document_properties_creation_date=Létrehozás dátuma:
+document_properties_modification_date=Módosítás dátuma:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Létrehozta:
+document_properties_producer=PDF előállító:
+document_properties_version=PDF verzió:
+document_properties_page_count=Oldalszám:
+document_properties_close=Bezárás
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Oldalsáv be/ki
+toggle_sidebar_label=Oldalsáv be/ki
+outline.title=Dokumentumvázlat megjelenítése
+outline_label=Dokumentumvázlat
+attachments.title=Mellékletek megjelenítése
+attachments_label=Van melléklet
+thumbs.title=Bélyegképek megjelenítése
+thumbs_label=Bélyegképek
+findbar.title=Keresés a dokumentumban
+findbar_label=Keresés
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title={{page}}. oldal
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}}. oldal bélyegképe
+
+# Find panel button title and messages
+find_label=Keresés:
+find_previous.title=A kifejezés előző előfordulásának keresése
+find_previous_label=Előző
+find_next.title=A kifejezés következő előfordulásának keresése
+find_next_label=Tovább
+find_highlight=Összes kiemelése
+find_match_case_label=Kis- és nagybetűk megkülönböztetése
+find_reached_top=A dokumentum eleje elérve, folytatás a végétől
+find_reached_bottom=A dokumentum vége elérve, folytatás az elejétől
+find_not_found=A kifejezés nem található
+
+# Error panel labels
+error_more_info=További tudnivalók
+error_less_info=Kevesebb információ
+error_close=Bezárás
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Ãœzenet: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Nyomkövetés: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fájl: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Sor: {{line}}
+rendering_error=Hiba történt az oldal feldolgozása közben.
+
+# Predefined zoom values
+page_scale_width=Oldalszélesség
+page_scale_fit=Teljes oldal
+page_scale_auto=Automatikus nagyítás
+page_scale_actual=Valódi méret
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Hiba
+loading_error=Hiba történt a PDF betöltésekor.
+invalid_file_error=Érvénytelen vagy sérült PDF fájl.
+missing_file_error=Hiányzó PDF fájl.
+unexpected_response_error=Váratlan kiszolgálóválasz.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} megjegyzés]
+password_label=Adja meg a jelszót a PDF fájl megnyitásához.
+password_invalid=Helytelen jelszó. Próbálja újra.
+password_ok=OK
+password_cancel=Mégse
+
+printing_not_supported=Figyelmeztetés: Ez a böngésző nem teljesen támogatja a nyomtatást.
+printing_not_ready=Figyelmeztetés: A PDF nincs teljesen betöltve a nyomtatáshoz.
+web_fonts_disabled=Webes betűkészletek letiltva: nem használhatók a beágyazott PDF betűkészletek.
+document_colors_disabled=A PDF dokumentumok nem használhatják saját színeiket: „Az oldalak a saját maguk által kiválasztott színeket használhatják†beállítás ki van kapcsolva a böngészőben.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hy-AM/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hy-AM/viewer.properties
new file mode 100644
index 00000000..b26af7d6
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/hy-AM/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Õ†Õ¡Õ­Õ¸Ö€Õ¤ Õ§Õ»Õ¨
+previous_label=Õ†Õ¡Õ­Õ¸Ö€Õ¤Õ¨
+next.title=Õ€Õ¡Õ»Õ¸Ö€Õ¤ Õ§Õ»Õ¨
+next_label=Õ€Õ¡Õ»Õ¸Ö€Õ¤Õ¨
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Ô·Õ».
+page_of={{pageCount}}-Õ«Ö
+
+zoom_out.title=Õ“Õ¸Ö„Ö€Õ¡ÖÕ¶Õ¥Õ¬
+zoom_out_label=Õ“Õ¸Ö„Ö€Õ¡ÖÕ¶Õ¥Õ¬
+zoom_in.title=Ô½Õ¸Õ·Õ¸Ö€Õ¡ÖÕ¶Õ¥Õ¬
+zoom_in_label=Ô½Õ¸Õ·Õ¸Ö€Õ¡ÖÕ¶Õ¥Õ¬
+zoom.title=Õ„Õ¡Õ½Õ·Õ¿Õ¡Õ¢Õ¨\u0020
+presentation_mode.title=Ô±Õ¶ÖÕ¶Õ¥Õ¬ Õ†Õ¥Ö€Õ¯Õ¡ÕµÕ¡ÖÕ´Õ¡Õ¶ Õ¥Õ²Õ¡Õ¶Õ¡Õ¯Õ«Õ¶
+presentation_mode_label=Õ†Õ¥Ö€Õ¯Õ¡ÕµÕ¡ÖÕ´Õ¡Õ¶ Õ¥Õ²Õ¡Õ¶Õ¡Õ¯
+open_file.title=Ô²Õ¡ÖÕ¥Õ¬ Õ–Õ¡ÕµÕ¬
+open_file_label=Ô²Õ¡ÖÕ¥Õ¬
+print.title=ÕÕºÕ¥Õ¬
+print_label=ÕÕºÕ¥Õ¬
+download.title=Ô²Õ¥Õ¼Õ¶Õ¥Õ¬
+download_label=Ô²Õ¥Õ¼Õ¶Õ¥Õ¬
+bookmark.title=Ô¸Õ¶Õ©Õ¡ÖÕ«Õ¯ Õ¿Õ¥Õ½Ö„Õ¸Õ¾ (ÕºÕ¡Õ¿Õ³Õ¥Õ¶Õ¥Õ¬ Õ¯Õ¡Õ´ Õ¢Õ¡ÖÕ¥Õ¬ Õ¶Õ¸Ö€ ÕºÕ¡Õ¿Õ¸Ö‚Õ°Õ¡Õ¶Õ¸Ö‚Õ´)
+bookmark_label=Ô¸Õ¶Õ©Õ¡ÖÕ«Õ¯ Õ¿Õ¥Õ½Ö„Õ¨
+
+# Secondary toolbar and context menu
+tools.title=Ô³Õ¸Ö€Õ®Õ«Ö„Õ¶Õ¥Ö€
+tools_label=Ô³Õ¸Ö€Õ®Õ«Ö„Õ¶Õ¥Ö€
+first_page.title=Ô±Õ¶ÖÕ¶Õ¥Õ¬ Õ¡Õ¼Õ¡Õ»Õ«Õ¶ Õ§Õ»Õ«Õ¶
+first_page.label=Ô±Õ¶ÖÕ¶Õ¥Õ¬ Õ¡Õ¼Õ¡Õ»Õ«Õ¶ Õ§Õ»Õ«Õ¶
+first_page_label=Ô±Õ¶ÖÕ¶Õ¥Õ¬ Õ¡Õ¼Õ¡Õ»Õ«Õ¶ Õ§Õ»Õ«Õ¶
+last_page.title=Ô±Õ¶ÖÕ¶Õ¥Õ¬ Õ¾Õ¥Ö€Õ»Õ«Õ¶ Õ§Õ»Õ«Õ¶
+last_page.label=Ô±Õ¶ÖÕ¶Õ¥Õ¬ Õ¾Õ¥Ö€Õ»Õ«Õ¶ Õ§Õ»Õ«Õ¶
+last_page_label=Ô±Õ¶ÖÕ¶Õ¥Õ¬ Õ¾Õ¥Ö€Õ»Õ«Õ¶ Õ§Õ»Õ«Õ¶
+page_rotate_cw.title=ÕŠÕ¿Õ¿Õ¥Õ¬ Õ¨Õ½Õ¿ ÕªÕ¡Õ´Õ¡ÖÕ¸Ö‚ÕµÖÕ« Õ½Õ¬Õ¡Ö„Õ«
+page_rotate_cw.label=ÕŠÕ¿Õ¿Õ¥Õ¬ Õ¨Õ½Õ¿ ÕªÕ¡Õ´Õ¡ÖÕ¸Ö‚ÕµÖÕ« Õ½Õ¬Õ¡Ö„Õ«
+page_rotate_cw_label=ÕŠÕ¿Õ¿Õ¥Õ¬ Õ¨Õ½Õ¿ ÕªÕ¡Õ´Õ¡ÖÕ¸Ö‚ÕµÖÕ« Õ½Õ¬Õ¡Ö„Õ«
+page_rotate_ccw.title=ÕŠÕ¿Õ¿Õ¥Õ¬ Õ°Õ¡Õ¯Õ¡Õ¼Õ¡Õ¯ ÕªÕ¡Õ´Õ¡ÖÕ¸Ö‚ÕµÖÕ« Õ½Õ¬Õ¡Ö„Õ«
+page_rotate_ccw.label=ÕŠÕ¿Õ¿Õ¥Õ¬ Õ°Õ¡Õ¯Õ¡Õ¼Õ¡Õ¯ ÕªÕ¡Õ´Õ¡ÖÕ¸Ö‚ÕµÖÕ« Õ½Õ¬Õ¡Ö„Õ«
+page_rotate_ccw_label=ÕŠÕ¿Õ¿Õ¥Õ¬ Õ°Õ¡Õ¯Õ¡Õ¼Õ¡Õ¯ ÕªÕ¡Õ´Õ¡ÖÕ¸Ö‚ÕµÖÕ« Õ½Õ¬Õ¡Ö„Õ«
+
+hand_tool_enable.title=Õ„Õ«Õ¡ÖÕ¶Õ¥Õ¬ Õ±Õ¥Õ¼Ö„Õ« Õ£Õ¸Ö€Õ®Õ«Ö„Õ¨
+hand_tool_enable_label=Õ„Õ«Õ¡ÖÕ¶Õ¥Õ¬ Õ±Õ¥Õ¼Ö„Õ« Õ£Õ¸Ö€Õ®Õ«Ö„Õ¨
+hand_tool_disable.title=Ô±Õ¶Õ»Õ¡Õ¿Õ¥Õ¬ Õ±Õ¥Õ¼Ö„Õ« Õ£Õ¸Ö€Õ®Õ«Ö„Õ¨
+hand_tool_disable_label=Ô±Õ†Õ»Õ¡Õ¿Õ¥Õ¬ Õ±Õ¥Õ¼Ö„Õ« Õ£Õ¸Ö€Õ®Õ«Ö„Õ¨
+
+# Document properties dialog box
+document_properties.title=Õ“Õ¡Õ½Õ¿Õ¡Õ©Õ²Õ©Õ« Õ°Õ¡Õ¿Õ¯Õ¸Ö‚Õ©ÕµÕ¸Ö‚Õ¶Õ¶Õ¥Ö€Õ¨...
+document_properties_label=Õ“Õ¡Õ½Õ¿Õ¡Õ©Õ²Õ©Õ« Õ°Õ¡Õ¿Õ¯Õ¸Ö‚Õ©ÕµÕ¸Ö‚Õ¶Õ¶Õ¥Ö€Õ¨...
+document_properties_file_name=Õ–Õ¡ÕµÕ¬Õ« Õ¡Õ¶Õ¸Ö‚Õ¶Õ¨.
+document_properties_file_size=Õ–Õ¡ÕµÕ¬Õ« Õ¹Õ¡ÖƒÕ¨.
+document_properties_kb={{size_kb}} Ô¿Ô² ({{size_b}} Õ¢Õ¡ÕµÕ©)
+document_properties_mb={{size_mb}} Õ„Ô² ({{size_b}} Õ¢Õ¡ÕµÕ©)
+document_properties_title=ÕŽÕ¥Ö€Õ¶Õ¡Õ£Õ«Ö€.
+document_properties_author=Հեղինակ․
+document_properties_subject=ÕŽÕ¥Ö€Õ¶Õ¡Õ£Õ«Ö€.
+document_properties_keywords=Õ€Õ«Õ´Õ¶Õ¡Õ¢Õ¡Õ¼.
+document_properties_creation_date=ÕÕ¿Õ¥Õ²Õ®Õ¥Õ¬Õ¸Ö‚ Õ¡Õ´Õ½Õ¡Õ©Õ«Õ¾Õ¨.
+document_properties_modification_date=Õ“Õ¸ÖƒÕ¸Õ­Õ¥Õ¬Õ¸Ö‚ Õ¡Õ´Õ½Õ¡Õ©Õ«Õ¾Õ¨.
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=ÕÕ¿Õ¥Õ²Õ®Õ¸Õ².
+document_properties_producer=PDF-Õ« Õ°Õ¥Õ²Õ«Õ¶Õ¡Õ¯Õ¨.
+document_properties_version=PDF-Õ« Õ¿Õ¡Ö€Õ¢Õ¥Ö€Õ¡Õ¯Õ¨.
+document_properties_page_count=Ô·Õ»Õ¥Ö€Õ« Ö„Õ¡Õ¶Õ¡Õ¯Õ¨.
+document_properties_close=Õ“Õ¡Õ¯Õ¥Õ¬
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Ô²Õ¡ÖÕ¥Õ¬/Õ“Õ¡Õ¯Õ¥Õ¬ Ô¿Õ¸Õ²Õ¡ÕµÕ«Õ¶ Õ¾Õ¡Õ°Õ¡Õ¶Õ¡Õ¯Õ¨
+toggle_sidebar_label=Ô²Õ¡ÖÕ¥Õ¬/Õ“Õ¡Õ¯Õ¥Õ¬ Ô¿Õ¸Õ²Õ¡ÕµÕ«Õ¶ Õ¾Õ¡Õ°Õ¡Õ¶Õ¡Õ¯Õ¨
+outline.title=Õ‘Õ¸Ö‚ÖÕ¡Õ¤Ö€Õ¥Õ¬ ÖƒÕ¡Õ½Õ¿Õ¡Õ©Õ²Õ©Õ« Õ¢Õ¸Õ¾Õ¡Õ¶Õ¤Õ¡Õ¯Õ¸Ö‚Õ©ÕµÕ¸Ö‚Õ¶Õ¨
+outline_label=Õ“Õ¡Õ½Õ¿Õ¡Õ©Õ²Õ©Õ« Õ¢Õ¸Õ¾Õ¡Õ¶Õ¤Õ¡Õ¯Õ¸Ö‚Õ©ÕµÕ¸Ö‚Õ¶Õ¨
+attachments.title=Õ‘Õ¸Ö‚ÖÕ¡Õ¤Ö€Õ¥Õ¬ Õ¯ÖÕ¸Ö€Õ¤Õ¶Õ¥Ö€Õ¨
+attachments_label=Ô¿ÖÕ¸Ö€Õ¤Õ¶Õ¥Ö€
+thumbs.title=Õ‘Õ¸Ö‚ÖÕ¡Õ¤Ö€Õ¥Õ¬ Õ„Õ¡Õ¶Ö€Õ¡ÕºÕ¡Õ¿Õ¯Õ¥Ö€Õ¨
+thumbs_label=Õ„Õ¡Õ¶Ö€Õ¡ÕºÕ¡Õ¿Õ¯Õ¥Ö€Õ¨
+findbar.title=Ô³Õ¿Õ¶Õ¥Õ¬ ÖƒÕ¡Õ½Õ¿Õ¡Õ©Õ²Õ©Õ¸Ö‚Õ´
+findbar_label=ÕˆÖ€Õ¸Õ¶Õ¸Ö‚Õ´
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Ô·Õ»Õ¨ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Ô·Õ»Õ« Õ´Õ¡Õ¶Ö€Õ¡ÕºÕ¡Õ¿Õ¯Õ¥Ö€Õ¨ {{page}}
+
+# Find panel button title and messages
+find_label=Ô³Õ¿Õ¶Õ¥Õ¬`
+find_previous.title=Ô³Õ¿Õ¶Õ¥Õ¬ Õ¡Õ¶Ö€Õ¡Õ°Õ¡ÕµÕ¿Õ¸Ö‚Õ©ÕµÕ¡Õ¶ Õ¶Õ¡Õ­Õ¸Ö€Õ¤ Õ°Õ¡Õ¶Õ¤Õ«ÕºÕ¸Ö‚Õ´Õ¨
+find_previous_label=Õ†Õ¡Õ­Õ¸Ö€Õ¤Õ¨
+find_next.title=Ô³Õ¿Õ«Ö€ Õ¡Ö€Õ¿Õ¡Õ°Õ¡ÕµÕ¿Õ¸Ö‚Õ©ÕµÕ¡Õ¶ Õ°Õ¡Õ»Õ¸Ö€Õ¤ Õ°Õ¡Õ¶Õ¤Õ«ÕºÕ¸Ö‚Õ´Õ¨
+find_next_label=Õ€Õ¡Õ»Õ¸Ö€Õ¤Õ¨
+find_highlight=Õ†Õ·Õ¡Õ£Õ®Õ¥Õ¬ Ô²Õ¸Õ¬Õ¸Ö€Õ¨
+find_match_case_label=Õ„Õ¥Õ®(ÖƒÕ¸Ö„Ö€)Õ¡Õ¿Õ¡Õ¼ Õ°Õ¡Õ·Õ¾Õ« Õ¡Õ¼Õ¶Õ¥Õ¬
+find_reached_top=Õ€Õ¡Õ½Õ¥Õ¬ Õ¥Ö„ ÖƒÕ¡Õ½Õ¿Õ¡Õ©Õ²Õ©Õ« Õ¾Õ¥Ö€Ö‡Õ«Õ¶, Õ¯Õ·Õ¡Ö€Õ¸Ö‚Õ¶Õ¡Õ¯Õ¾Õ« Õ¶Õ¥Ö€Ö„Ö‡Õ«Ö
+find_reached_bottom=Õ€Õ¡Õ½Õ¥Õ¬ Õ¥Ö„ ÖƒÕ¡Õ½Õ¿Õ¡Õ©Õ²Õ©Õ« Õ¾Õ¥Ö€Õ»Õ«Õ¶, Õ¯Õ·Õ¡Ö€Õ¸Ö‚Õ¶Õ¡Õ¯Õ¾Õ« Õ¾Õ¥Ö€Ö‡Õ«Ö
+find_not_found=Ô±Ö€Õ¿Õ¡Õ°Õ¡ÕµÕ¿Õ¸Ö‚Õ©ÕµÕ¸Ö‚Õ¶Õ¨ Õ¹Õ£Õ¿Õ¶Õ¾Õ¥Ö
+
+# Error panel labels
+error_more_info=Ô±Õ¾Õ¥Õ¬Õ« Õ·Õ¡Õ¿ Õ¿Õ¥Õ²Õ¥Õ¯Õ¸Ö‚Õ©ÕµÕ¸Ö‚Õ¶
+error_less_info=Õ”Õ«Õ¹ Õ¿Õ¥Õ²Õ¥Õ¯Õ¸Ö‚Õ©ÕµÕ¸Ö‚Õ¶
+error_close=Õ“Õ¡Õ¯Õ¥Õ¬
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (Õ¯Õ¡Õ¼Õ¸Ö‚ÖÕ¸Ö‚Õ´Õ¨. {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Ô³Ö€Õ¸Ö‚Õ©ÕµÕ¸Ö‚Õ¶Õ¨. {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Õ‡Õ¥Õ²Õ». {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Õ–Õ¡ÕµÕ¬. {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=ÕÕ¸Õ²Õ¨. {{line}}
+rendering_error=ÕÕ­Õ¡Õ¬Õ Õ§Õ»Õ¨ Õ½Õ¿Õ¥Õ²Õ®Õ¥Õ¬Õ«Õ½:
+
+# Predefined zoom values
+page_scale_width=Ô·Õ»Õ« Õ¬Õ¡ÕµÕ¶Ö„Õ¨
+page_scale_fit=ÕÕ£Õ¥Õ¬ Õ§Õ»Õ¨
+page_scale_auto=Ô»Õ¶Ö„Õ¶Õ¡Õ·Õ­Õ¡Õ¿
+page_scale_actual=Ô»Ö€Õ¡Õ¯Õ¡Õ¶ Õ¹Õ¡ÖƒÕ¨
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=ÕÕ­Õ¡Õ¬
+loading_error=ÕÕ­Õ¡Õ¬Õ PDF Ö†Õ¡ÕµÕ¬Õ¨ Õ¢Õ¡ÖÕ¥Õ¬Õ«Õ½Ö‰
+invalid_file_error=ÕÕ­Õ¡Õ¬ Õ¯Õ¡Õ´ Õ¢Õ¶Õ¡Õ½Õ¾Õ¡Õ® PDF Ö†Õ¡ÕµÕ¬:
+missing_file_error=PDF Ö†Õ¡ÕµÕ¬Õ¨ Õ¢Õ¡ÖÕ¡Õ¯Õ¡ÕµÕ¸Ö‚Õ´ Õ§:
+unexpected_response_error=ÕÕºÕ¡Õ½Õ¡Ö€Õ¯Õ«Õ¹Õ« Õ¡Õ¶Õ½ÕºÕ¡Õ½Õ¥Õ¬Õ« ÕºÕ¡Õ¿Õ¡Õ½Õ­Õ¡Õ¶:
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Ô¾Õ¡Õ¶Õ¸Õ©Õ¸Ö‚Õ©ÕµÕ¸Ö‚Õ¶]
+password_label=Õ„Õ¸Ö‚Õ¿Ö„Õ¡Õ£Ö€Õ¥Ö„ PDF-Õ« Õ£Õ¡Õ²Õ¿Õ¶Õ¡Õ¢Õ¡Õ¼Õ¨:
+password_invalid=Ô³Õ¡Õ²Õ¿Õ¶Õ¡Õ¢Õ¡Õ¼Õ¨ Õ½Õ­Õ¡Õ¬ Õ§: Ô¿Ö€Õ¯Õ«Õ¶ ÖƒÕ¸Ö€Õ±Õ¥Ö„:
+password_ok=Ô¼Ô±ÕŽ
+password_cancel=Õ‰Õ¥Õ²Õ¡Ö€Õ¯Õ¥Õ¬
+
+printing_not_supported=Ô¶Õ£Õ¸Ö‚Õ·Õ¡ÖÕ¸Ö‚Õ´. ÕÕºÕ¥Õ¬Õ¨ Õ¡Õ´Õ¢Õ¸Õ²Õ»Õ¸Ö‚Õ©ÕµÕ¡Õ´Õ¢ Õ¹Õ« Õ¡Õ»Õ¡Õ¯ÖÕ¾Õ¸Ö‚Õ´ Õ¤Õ«Õ¿Õ¡Ö€Õ¯Õ«Õ¹Õ« Õ¯Õ¸Õ²Õ´Õ«ÖÖ‰
+printing_not_ready=Ô¶Õ£Õ¸Ö‚Õ·Õ¡ÖÕ¸Ö‚Õ´. PDF-Õ¨ Õ¡Õ´Õ¢Õ¸Õ²Õ»Õ¸Ö‚Õ©ÕµÕ¡Õ´Õ¢ Õ¹Õ« Õ¢Õ¥Õ¼Õ¶Õ¡Õ¾Õ¸Ö€Õ¾Õ¥Õ¬ Õ¿ÕºÕ¥Õ¬Õ¸Ö‚ Õ°Õ¡Õ´Õ¡Ö€:
+web_fonts_disabled=ÕŽÕ¥Õ¢-Õ¿Õ¡Õ¼Õ¡Õ¿Õ¥Õ½Õ¡Õ¯Õ¶Õ¥Ö€Õ¨ Õ¡Õ¶Õ»Õ¡Õ¿Õ¾Õ¡Õ® Õ¥Õ¶. Õ°Õ¶Õ¡Ö€Õ¡Õ¾Õ¸Ö€ Õ¹Õ§ Ö…Õ£Õ¿Õ¡Õ£Õ¸Ö€Õ®Õ¥Õ¬ Õ¶Õ¥Ö€Õ¯Õ¡Õ¼Õ¸Ö‚ÖÕ¾Õ¡Õ® PDF Õ¿Õ¡Õ¼Õ¡Õ¿Õ¥Õ½Õ¡Õ¯Õ¶Õ¥Ö€Õ¨:
+document_colors_disabled=PDF ÖƒÕ¡Õ½Õ¿Õ¡Õ©Õ²Õ©Õ¥Ö€Õ«Õ¶ Õ©Õ¸Ö‚ÕµÕ¬Õ¡Õ¿Ö€Õ¾Õ¡Õ® Õ¹Õ§ Ö…Õ£Õ¿Õ¡Õ£Õ¸Ö€Õ®Õ¥Õ¬ Õ«Ö€Õ¥Õ¶Ö Õ½Õ¥ÖƒÕ¡Õ¯Õ¡Õ¶ Õ£Õ¸Ö‚ÕµÕ¶Õ¥Ö€Õ¨: 'Ô¹Õ¸Ö‚ÕµÕ¬Õ¡Õ¿Ö€Õ¥Õ¬ Õ§Õ»Õ¥Ö€Õ«Õ¶ Õ¨Õ¶Õ¿Ö€Õ¥Õ¬ Õ«Ö€Õ¥Õ¶Ö Õ½Õ¥ÖƒÕ¡Õ¯Õ¡Õ¶ Õ£Õ¸Ö‚ÕµÕ¶Õ¥Ö€Õ¨' Õ¨Õ¶Õ¿Ö€Õ¡Õ¶Ö„Õ¨ Õ¡Õ¶Õ»Õ¡Õ¿Õ¾Õ¡Õ® Õ§ Õ¤Õ«Õ¿Õ¡Ö€Õ¯Õ«Õ¹Õ¸Ö‚Õ´:
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/id/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/id/viewer.properties
new file mode 100644
index 00000000..b9cfc74c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/id/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Laman Sebelumnya
+previous_label=Sebelumnya
+next.title=Laman Selanjutnya
+next_label=Selanjutnya
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Laman:
+page_of=dari {{pageCount}}
+
+zoom_out.title=Perkecil
+zoom_out_label=Perkecil
+zoom_in.title=Perbesar
+zoom_in_label=Perbesar
+zoom.title=Perbesaran
+presentation_mode.title=Ganti ke Mode Presentasi
+presentation_mode_label=Mode Presentasi
+open_file.title=Buka Berkas
+open_file_label=Buka
+print.title=Cetak
+print_label=Cetak
+download.title=Unduh
+download_label=Unduh
+bookmark.title=Tampilan Sekarang (salin atau buka di jendela baru)
+bookmark_label=Tampilan Sekarang
+
+# Secondary toolbar and context menu
+tools.title=Alat
+tools_label=Alat
+first_page.title=Buka Halaman Pertama
+first_page.label=Ke Halaman Pertama
+first_page_label=Buka Halaman Pertama
+last_page.title=Buka Halaman Terakhir
+last_page.label=Ke Halaman Terakhir
+last_page_label=Buka Halaman Terakhir
+page_rotate_cw.title=Putar Searah Jarum Jam
+page_rotate_cw.label=Putar Searah Jarum Jam
+page_rotate_cw_label=Putar Searah Jarum Jam
+page_rotate_ccw.title=Putar Berlawanan Arah Jarum Jam
+page_rotate_ccw.label=Putar Berlawanan Arah Jarum Jam
+page_rotate_ccw_label=Putar Berlawanan Arah Jarum Jam
+
+hand_tool_enable.title=Aktifkan alat tangan
+hand_tool_enable_label=Aktifkan alat tangan
+hand_tool_disable.title=Nonaktifkan alat tangan
+hand_tool_disable_label=Nonaktifkan alat tangan
+
+# Document properties dialog box
+document_properties.title=Properti Dokumen…
+document_properties_label=Properti Dokumen…
+document_properties_file_name=Nama berkas:
+document_properties_file_size=Ukuran berkas:
+document_properties_kb={{size_kb}} KB ({{size_b}} byte)
+document_properties_mb={{size_mb}} MB ({{size_b}} byte)
+document_properties_title=Judul:
+document_properties_author=Penyusun:
+document_properties_subject=Subjek:
+document_properties_keywords=Kata Kunci:
+document_properties_creation_date=Tanggal Dibuat:
+document_properties_modification_date=Tanggal Dimodifikasi:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Pembuat:
+document_properties_producer=Pemroduksi PDF:
+document_properties_version=Versi PDF:
+document_properties_page_count=Jumlah Halaman:
+document_properties_close=Tutup
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Aktif/Nonaktifkan Bilah Samping
+toggle_sidebar_label=Aktif/Nonaktifkan Bilah Samping
+outline.title=Buka Kerangka Dokumen
+outline_label=Kerangka Dokumen
+attachments.title=Tampilkan Lampiran
+attachments_label=Lampiran
+thumbs.title=Tampilkan Miniatur
+thumbs_label=Miniatur
+findbar.title=Temukan di Dokumen
+findbar_label=Temukan
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Laman {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatur Laman {{page}}
+
+# Find panel button title and messages
+find_label=Temukan:
+find_previous.title=Temukan kata sebelumnya
+find_previous_label=Sebelumnya
+find_next.title=Temukan lebih lanjut
+find_next_label=Selanjutnya
+find_highlight=Sorot semu&anya
+find_match_case_label=Cocokkan BESAR/kecil
+find_reached_top=Sampai di awal dokumen, dilanjutkan dari bawah
+find_reached_bottom=Sampai di akhir dokumen, dilanjutkan dari atas
+find_not_found=Frasa tidak ditemukan
+
+# Error panel labels
+error_more_info=Lebih Banyak Informasi
+error_less_info=Lebih Sedikit Informasi
+error_close=Tutup
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Pesan: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Berkas: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Baris: {{line}}
+rendering_error=Galat terjadi saat merender laman.
+
+# Predefined zoom values
+page_scale_width=Lebar Laman
+page_scale_fit=Muat Laman
+page_scale_auto=Perbesaran Otomatis
+page_scale_actual=Ukuran Asli
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Galat
+loading_error=Galat terjadi saat memuat PDF.
+invalid_file_error=Berkas PDF tidak valid atau rusak.
+missing_file_error=Berkas PDF tidak ada.
+unexpected_response_error=Balasan server yang tidak diharapkan.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anotasi {{type}}]
+password_label=Masukkan sandi untuk membuka berkas PDF ini.
+password_invalid=Sandi tidak valid. Silakan coba lagi.
+password_ok=Oke
+password_cancel=Batal
+
+printing_not_supported=Peringatan: Pencetakan tidak didukung secara lengkap pada peramban ini.
+printing_not_ready=Peringatan: Berkas PDF masih belum dimuat secara lengkap untuk dapat dicetak.
+web_fonts_disabled=Font web dinonaktifkan: tidak dapat menggunakan font PDF yang tersemat.
+document_colors_disabled=Dokumen PDF tidak diizinkan untuk menggunakan warnanya sendiri karena setelan 'Izinkan laman memilih warna sendiri' dinonaktifkan pada pengaturan.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/is/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/is/viewer.properties
new file mode 100644
index 00000000..ffc055a5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/is/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Fyrri síða
+previous_label=Fyrri
+next.title=Næsta síða
+next_label=Næsti
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Síða:
+page_of=af {{pageCount}}
+
+zoom_out.title=Minnka
+zoom_out_label=Minnka
+zoom_in.title=Stækka
+zoom_in_label=Stækka
+zoom.title=Aðdráttur
+presentation_mode.title=Skipta yfir á kynningarham
+presentation_mode_label=Kynningarhamur
+open_file.title=Opna skrá
+open_file_label=Opna
+print.title=Prenta
+print_label=Prenta
+download.title=Hala niður
+download_label=Hala niður
+bookmark.title=Núverandi sýn (afritaðu eða opnaðu í nýjum glugga)
+bookmark_label=Núverandi sýn
+
+# Secondary toolbar and context menu
+tools.title=Verkfæri
+tools_label=Verkfæri
+first_page.title=Fara á fyrstu síðu
+first_page.label=Fara á fyrstu síðu
+first_page_label=Fara á fyrstu síðu
+last_page.title=Fara á síðustu síðu
+last_page.label=Fara á síðustu síðu
+last_page_label=Fara á síðustu síðu
+page_rotate_cw.title=Snúa réttsælis
+page_rotate_cw.label=Snúa réttsælis
+page_rotate_cw_label=Snúa réttsælis
+page_rotate_ccw.title=Snúa rangsælis
+page_rotate_ccw.label=Snúa rangsælis
+page_rotate_ccw_label=Snúa rangsælis
+
+hand_tool_enable.title=Virkja handarverkfæri
+hand_tool_enable_label=Virkja handarverkfæri
+hand_tool_disable.title=Gera handarverkfæri óvirkt
+hand_tool_disable_label=Gera handarverkfæri óvirkt
+
+# Document properties dialog box
+document_properties.title=Eiginleikar skjals…
+document_properties_label=Eiginleikar skjals…
+document_properties_file_name=Skráarnafn:
+document_properties_file_size=Skrárstærð:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Titill:
+document_properties_author=Hönnuður:
+document_properties_subject=Efni:
+document_properties_keywords=Stikkorð:
+document_properties_creation_date=Búið til:
+document_properties_modification_date=Dags breytingar:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Höfundur:
+document_properties_producer=PDF framleiðandi:
+document_properties_version=PDF útgáfa:
+document_properties_page_count=Blaðsíðufjöldi:
+document_properties_close=Loka
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Víxla hliðslá
+toggle_sidebar_label=Víxla hliðslá
+outline.title=Sýna efniskipan skjals
+outline_label=Efnisskipan skjals
+attachments.title=Sýna viðhengi
+attachments_label=Viðhengi
+thumbs.title=Sýna smámyndir
+thumbs_label=Smámyndir
+findbar.title=Leita í skjali
+findbar_label=Leita
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Síða {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Smámynd af síðu {{page}}
+
+# Find panel button title and messages
+find_label=Leita:
+find_previous.title=Leita að fyrra tilfelli þessara orða
+find_previous_label=Fyrri
+find_next.title=Leita að næsta tilfelli þessara orða
+find_next_label=Næsti
+find_highlight=Lita allt
+find_match_case_label=Passa við stafstöðu
+find_reached_top=Náði efst í skjal, held áfram neðst
+find_reached_bottom=Náði enda skjals, held áfram efst
+find_not_found=Fann ekki orðið
+
+# Error panel labels
+error_more_info=Meiri upplýsingar
+error_less_info=Minni upplýsingar
+error_close=Loka
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Skilaboð: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stafli: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Skrá: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Lína: {{line}}
+rendering_error=Upp kom villa við að birta síðuna.
+
+# Predefined zoom values
+page_scale_width=Síðubreidd
+page_scale_fit=Passa á síðu
+page_scale_auto=Sjálfvirkur aðdráttur
+page_scale_actual=Raunstærð
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Villa
+loading_error=Villa kom upp við að hlaða inn PDF.
+invalid_file_error=Ógild eða skemmd PDF skrá.
+missing_file_error=Vantar PDF skrá.
+unexpected_response_error=Óvænt svar frá netþjóni.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Skýring]
+password_label=Sláðu inn lykilorð til að opna þessa PDF skrá.
+password_invalid=Ógilt lykilorð. Reyndu aftur.
+password_ok=Ã lagi
+password_cancel=Hætta við
+
+printing_not_supported=Aðvörun: Prentun er ekki með fyllilegan stuðning á þessum vafra.
+printing_not_ready=Aðvörun: Ekki er búið að hlaða inn allri PDF skránni fyrir prentun.
+web_fonts_disabled=Vef leturgerðir eru óvirkar: get ekki notað innbyggðar PDF leturgerðir.
+document_colors_disabled=PDF skjöl hafa ekki leyfi til að nota sína eigin liti: 'Leyfa síðum að velja eigin liti' er óvirkt í vafranum.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/it/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/it/viewer.properties
new file mode 100644
index 00000000..91918e65
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/it/viewer.properties
@@ -0,0 +1,111 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+previous.title = Pagina precedente
+previous_label = Precedente
+next.title = Pagina successiva
+next_label = Successiva
+page_label = Pagina:
+page_of = di {{pageCount}}
+zoom_out.title = Riduci zoom
+zoom_out_label = Riduci zoom
+zoom_in.title = Aumenta zoom
+zoom_in_label = Aumenta zoom
+zoom.title = Zoom
+presentation_mode.title = Passa alla modalità presentazione
+presentation_mode_label = Modalità presentazione
+open_file.title = Apri file
+open_file_label = Apri file
+print.title = Stampa
+print_label = Stampa
+download.title = Scarica questo documento
+download_label = Download
+bookmark.title = Visualizzazione corrente (copia o apri in una nuova finestra)
+bookmark_label = Visualizzazione corrente
+tools.title = Strumenti
+tools_label = Strumenti
+first_page.title = Vai alla prima pagina
+first_page.label = Vai alla prima pagina
+first_page_label = Vai alla prima pagina
+last_page.title = Vai all’ultima pagina
+last_page.label = Vai all’ultima pagina
+last_page_label = Vai all’ultima pagina
+page_rotate_cw.title = Ruota in senso orario
+page_rotate_cw.label = Ruota in senso orario
+page_rotate_cw_label = Ruota in senso orario
+page_rotate_ccw.title = Ruota in senso antiorario
+page_rotate_ccw.label = Ruota in senso antiorario
+page_rotate_ccw_label = Ruota in senso antiorario
+hand_tool_enable.title = Attiva strumento mano
+hand_tool_enable_label = Attiva strumento mano
+hand_tool_disable.title = Disattiva strumento mano
+hand_tool_disable_label = Disattiva strumento mano
+document_properties.title = Proprietà del documento…
+document_properties_label = Proprietà del documento…
+document_properties_file_name = Nome file:
+document_properties_file_size = Dimensione file:
+document_properties_kb = {{size_kb}} kB ({{size_b}} byte)
+document_properties_mb = {{size_mb}} MB ({{size_b}} byte)
+document_properties_title = Titolo:
+document_properties_author = Autore:
+document_properties_subject = Oggetto:
+document_properties_keywords = Parole chiave:
+document_properties_creation_date = Data creazione:
+document_properties_modification_date = Data modifica:
+document_properties_date_string = {{date}}, {{time}}
+document_properties_creator = Autore originale:
+document_properties_producer = Produttore PDF:
+document_properties_version = Versione PDF:
+document_properties_page_count = Conteggio pagine:
+document_properties_close = Chiudi
+toggle_sidebar.title = Attiva/disattiva barra laterale
+toggle_sidebar_label = Attiva/disattiva barra laterale
+outline.title = Visualizza la struttura del documento
+outline_label = Struttura documento
+attachments.title = Visualizza allegati
+attachments_label = Allegati
+thumbs.title = Mostra le miniature
+thumbs_label = Miniature
+findbar.title = Trova nel documento
+findbar_label = Trova
+thumb_page_title = Pagina {{page}}
+thumb_page_canvas = Miniatura della pagina {{page}}
+find_label = Trova:
+find_previous.title = Trova l’occorrenza precedente del testo da cercare
+find_previous_label = Precedente
+find_next.title = Trova l’occorrenza successiva del testo da cercare
+find_next_label = Successivo
+find_highlight = Evidenzia
+find_match_case_label = Maiuscole/minuscole
+find_reached_top = Raggiunto l’inizio della pagina, continua dalla fine
+find_reached_bottom = Raggiunta la fine della pagina, continua dall’inizio
+find_not_found = Testo non trovato
+error_more_info = Più informazioni
+error_less_info = Meno informazioni
+error_close = Chiudi
+error_version_info = PDF.js v{{version}} (build: {{build}})
+error_message = Messaggio: {{message}}
+error_stack = Stack: {{stack}}
+error_file = File: {{file}}
+error_line = Riga: {{line}}
+rendering_error = Si è verificato un errore durante il rendering della pagina.
+page_scale_width = Larghezza pagina
+page_scale_fit = Adatta a una pagina
+page_scale_auto = Zoom automatico
+page_scale_actual = Dimensioni effettive
+page_scale_percent = {{scale}}%
+loading_error_indicator = Errore
+loading_error = Si è verificato un errore durante il caricamento del PDF.
+invalid_file_error = File PDF non valido o danneggiato.
+missing_file_error = File PDF non disponibile.
+unexpected_response_error = Risposta imprevista del server
+text_annotation_type.alt = [Annotazione: {{type}}]
+password_label = Inserire la password per aprire questo file PDF.
+password_invalid = Password non corretta. Riprovare.
+password_ok = OK
+password_cancel = Annulla
+printing_not_supported = Attenzione: la stampa non è completamente supportata da questo browser.
+printing_not_ready = Attenzione: il PDF non è ancora stato caricato completamente per la stampa.
+web_fonts_disabled = I web font risultano disattivati: impossibile utilizzare i caratteri inclusi nel PDF.
+document_colors_disabled = Non è possibile per i documenti PDF utilizzare i propri colori: l’opzione del browser “Permetti alle pagine di scegliere i propri colori invece di quelli impostati†è disattivata.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ja/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ja/viewer.properties
new file mode 100644
index 00000000..04a6a0b3
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ja/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=å‰ã®ãƒšãƒ¼ã‚¸
+previous_label=å‰ã¸
+next.title=次ã®ãƒšãƒ¼ã‚¸
+next_label=次ã¸
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=ページ:
+page_of=/ {{pageCount}}
+
+zoom_out.title=縮å°
+zoom_out_label=縮å°
+zoom_in.title=拡大
+zoom_in_label=拡大
+zoom.title=拡大/縮å°
+presentation_mode.title=プレゼンテーションモードã«åˆ‡ã‚Šæ›¿ãˆã¾ã™
+presentation_mode_label=プレゼンテーションモード
+open_file.title=ファイルを開ã
+open_file_label=é–‹ã
+print.title=å°åˆ·
+print_label=å°åˆ·
+download.title=ダウンロード
+download_label=ダウンロード
+bookmark.title=ç¾åœ¨ã®ãƒ“ューをブックマーク
+bookmark_label=ç¾åœ¨ã®ãƒ“ューをブックマーク
+
+# Secondary toolbar and context menu
+tools.title=ツール
+tools_label=ツール
+first_page.title=最åˆã®ãƒšãƒ¼ã‚¸ã¸ç§»å‹•
+first_page.label=最åˆã®ãƒšãƒ¼ã‚¸ã¸ç§»å‹•
+first_page_label=最åˆã®ãƒšãƒ¼ã‚¸ã¸ç§»å‹•
+last_page.title=最後ã®ãƒšãƒ¼ã‚¸ã¸ç§»å‹•
+last_page.label=最後ã®ãƒšãƒ¼ã‚¸ã¸ç§»å‹•
+last_page_label=最後ã®ãƒšãƒ¼ã‚¸ã¸ç§»å‹•
+page_rotate_cw.title=å³å›žè»¢
+page_rotate_cw.label=å³å›žè»¢
+page_rotate_cw_label=å³å›žè»¢
+page_rotate_ccw.title=左回転
+page_rotate_ccw.label=左回転
+page_rotate_ccw_label=左回転
+
+hand_tool_enable.title=手ã®ã²ã‚‰ãƒ„ールを有効ã«ã™ã‚‹
+hand_tool_enable_label=手ã®ã²ã‚‰ãƒ„ールを有効ã«ã™ã‚‹
+hand_tool_disable.title=手ã®ã²ã‚‰ãƒ„ールを無効ã«ã™ã‚‹
+hand_tool_disable_label=手ã®ã²ã‚‰ãƒ„ールを無効ã«ã™ã‚‹
+
+# Document properties dialog box
+document_properties.title=文書ã®ãƒ—ロパティ...
+document_properties_label=文書ã®ãƒ—ロパティ...
+document_properties_file_name=ファイルå:
+document_properties_file_size=ファイルサイズ:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=タイトル:
+document_properties_author=作æˆè€…:
+document_properties_subject=件å:
+document_properties_keywords=キーワード:
+document_properties_creation_date=作æˆæ—¥:
+document_properties_modification_date=æ›´æ–°æ—¥:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=アプリケーション:
+document_properties_producer=PDF 変æ›:
+document_properties_version=PDF ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³:
+document_properties_page_count=ページ数:
+document_properties_close=é–‰ã˜ã‚‹
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=サイドãƒãƒ¼ã®åˆ‡ã‚Šæ›¿ãˆ
+toggle_sidebar_label=サイドãƒãƒ¼ã®åˆ‡ã‚Šæ›¿ãˆ
+outline.title=文書ã®ç›®æ¬¡
+outline_label=文書ã®ç›®æ¬¡
+attachments.title=添付ファイル
+attachments_label=添付ファイル
+thumbs.title=縮å°ç‰ˆ
+thumbs_label=縮å°ç‰ˆ
+findbar.title=検索
+findbar_label=検索
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title={{page}} ページ
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=ページã®ç¸®å°ç‰ˆ {{page}}
+
+# Find panel button title and messages
+find_label=検索:
+find_previous.title=指定文字列ã«ä¸€è‡´ã™ã‚‹ 1 ã¤å‰ã®éƒ¨åˆ†ã‚’検索ã—ã¾ã™
+find_previous_label=å‰ã¸
+find_next.title=指定文字列ã«ä¸€è‡´ã™ã‚‹æ¬¡ã®éƒ¨åˆ†ã‚’検索ã—ã¾ã™
+find_next_label=次ã¸
+find_highlight=ã™ã¹ã¦å¼·èª¿è¡¨ç¤º
+find_match_case_label=大文字/å°æ–‡å­—を区別
+find_reached_top=文書先頭ã«åˆ°é”ã—ãŸã®ã§æœ«å°¾ã«æˆ»ã£ã¦æ¤œç´¢ã—ã¾ã—ãŸã€‚
+find_reached_bottom=文書末尾ã«åˆ°é”ã—ãŸã®ã§å…ˆé ­ã«æˆ»ã£ã¦æ¤œç´¢ã—ã¾ã—ãŸã€‚
+find_not_found=見ã¤ã‹ã‚Šã¾ã›ã‚“ã§ã—ãŸã€‚
+
+# Error panel labels
+error_more_info=詳細情報
+error_less_info=詳細情報ã®éžè¡¨ç¤º
+error_close=é–‰ã˜ã‚‹
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (ビルド: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=メッセージ: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=スタック: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ファイル: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=行: {{line}}
+rendering_error=ページã®ãƒ¬ãƒ³ãƒ€ãƒªãƒ³ã‚°ä¸­ã«ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ã¾ã—ãŸ
+
+# Predefined zoom values
+page_scale_width=å¹…ã«åˆã‚ã›ã‚‹
+page_scale_fit=ページã®ã‚µã‚¤ã‚ºã«åˆã‚ã›ã‚‹
+page_scale_auto=自動ズーム
+page_scale_actual=実際ã®ã‚µã‚¤ã‚º
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=エラー
+loading_error=PDF ã®èª­ã¿è¾¼ã¿ä¸­ã«ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ã¾ã—ãŸ
+invalid_file_error=無効ã¾ãŸã¯ç ´æã—㟠PDF ファイル
+missing_file_error=PDF ファイルãŒè¦‹ã¤ã‹ã‚Šã¾ã›ã‚“。
+unexpected_response_error=サーãƒã‹ã‚‰äºˆæœŸã›ã¬å¿œç­”ãŒã‚ã‚Šã¾ã—ãŸã€‚
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} 注釈]
+password_label=ã“ã® PDF ファイルを開ããŸã‚ã®ãƒ‘スワードを入力ã—ã¦ãã ã•ã„。
+password_invalid=無効ãªãƒ‘スワードã§ã™ã€‚ã‚‚ã†ä¸€åº¦ã‚„ã‚Šç›´ã—ã¦ãã ã•ã„。
+password_ok=OK
+password_cancel=キャンセル
+
+printing_not_supported=警告: ã“ã®ãƒ–ラウザã§ã¯å°åˆ·ãŒå®Œå…¨ã«ã‚µãƒãƒ¼ãƒˆã•ã‚Œã¦ã„ã¾ã›ã‚“
+printing_not_ready=警告: PDF ã‚’å°åˆ·ã™ã‚‹ãŸã‚ã®èª­ã¿è¾¼ã¿ãŒçµ‚了ã—ã¦ã„ã¾ã›ã‚“
+web_fonts_disabled=Web フォントãŒç„¡åŠ¹ã«ãªã£ã¦ã„ã¾ã™: 埋ã‚è¾¼ã¾ã‚ŒãŸ PDF ã®ãƒ•ã‚©ãƒ³ãƒˆã‚’使用ã§ãã¾ã›ã‚“
+document_colors_disabled=PDF 文書ã¯ã€Web ページãŒæŒ‡å®šã—ãŸé…色を使用ã™ã‚‹ã“ã¨ãŒã§ãã¾ã›ã‚“: \u0027Web ページãŒæŒ‡å®šã—ãŸé…色\u0027 ã¯ãƒ–ラウザã§ç„¡åŠ¹ã«ãªã£ã¦ã„ã¾ã™ã€‚
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ka/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ka/viewer.properties
new file mode 100644
index 00000000..f6c68f50
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ka/viewer.properties
@@ -0,0 +1,124 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=წინრგვერდი
+previous_label=წინáƒ
+next.title=შემდეგი გვერდი
+next_label=შემდეგი
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=გვერდი:
+page_of=of {{pageCount}}
+
+zoom_out.title=შემცირებáƒ
+zoom_out_label=გáƒáƒ–რდáƒ
+zoom_in.title=შემცირებáƒ
+zoom_in_label=შემცირებáƒ
+zoom.title=მáƒáƒ¡áƒ¨áƒ¢áƒáƒ‘ი
+print.title=áƒáƒ›áƒáƒ‘ეჭდვáƒ
+print_label=áƒáƒ›áƒáƒ‘ეჭდვáƒ
+presentation_mode.title=გáƒáƒ“áƒáƒ áƒ—ვრპრეზენტáƒáƒªáƒ˜áƒ˜áƒ¡ რეჟიმზე
+presentation_mode_label=პრეზენტáƒáƒªáƒ˜áƒ˜áƒ¡ რეჟიმი
+open_file.title=ფáƒáƒ˜áƒšáƒ˜áƒ¡ გáƒáƒ®áƒ¡áƒœáƒ
+open_file_label=გáƒáƒ®áƒ¡áƒœáƒ
+download.title=ჩáƒáƒ›áƒáƒ¢áƒ•áƒ˜áƒ áƒ—ვáƒ
+download_label=ჩáƒáƒ›áƒáƒ¢áƒ•áƒ˜áƒ áƒ—ვáƒ
+bookmark.title=მიმდინáƒáƒ áƒ” ხედი (áƒáƒ¡áƒšáƒ˜ áƒáƒœ გáƒáƒ®áƒ¡áƒœáƒ áƒáƒ®áƒáƒš სáƒáƒ áƒ™áƒ›áƒ”ლში)
+bookmark_label=მიმდინáƒáƒ áƒ” ხედი
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=სტენდის ჩვენებáƒ/დáƒáƒ›áƒáƒšáƒ•áƒ
+toggle_sidebar_label=სტენდის ჩვენებáƒ/დáƒáƒ›áƒáƒšáƒ•áƒ
+outline.title=დáƒáƒ™áƒ£áƒ›áƒ”ნტის სქემის ჩვენებáƒ
+outline_label=დáƒáƒ™áƒ£áƒ›áƒ”ნტის სქემáƒ
+thumbs.title=მინიáƒáƒ¢áƒ£áƒ áƒ”ბის ჩვენებáƒ
+thumbs_label=მინიáƒáƒ¢áƒ£áƒ áƒ”ბი
+findbar.title=პáƒáƒ•áƒœáƒ დáƒáƒ™áƒ£áƒ›áƒ”ნტში
+findbar_label=პáƒáƒ•áƒœáƒ
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=გვერდი {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=მინიáƒáƒ¢áƒ£áƒ áƒ გვერდისთვის {{page}}
+
+# Context menu
+first_page.label=გáƒáƒ“áƒáƒ¡áƒ•áƒšáƒ პირველ გვერდზე
+last_page.label=გáƒáƒ“áƒáƒ¡áƒ•áƒšáƒ ბáƒáƒšáƒ გვერდზე
+page_rotate_cw.label=დáƒáƒ¢áƒ áƒ˜áƒáƒšáƒ”ბáƒ
+page_rotate_ccw.label=უკუდáƒáƒ¢áƒ áƒ˜áƒáƒšáƒ”ბáƒ
+
+# Find panel button title and messages
+find_label=პáƒáƒ•áƒœáƒ:
+find_previous.title=კáƒáƒœáƒ¢áƒ”ქსტის წინრთáƒáƒœáƒ®áƒ•áƒ”დრის პáƒáƒ•áƒœáƒ
+find_previous_label=წინáƒ
+find_next.title=კáƒáƒœáƒ¢áƒ”ქსტის შემდეგი თáƒáƒœáƒ®áƒ•áƒ”დრის პáƒáƒ•áƒœáƒ
+find_next_label=შემდეგი
+find_highlight=ყველáƒáƒ¡ გáƒáƒ›áƒáƒ§áƒáƒ¤áƒ
+find_match_case_label=მთáƒáƒ•áƒ áƒ£áƒšáƒ˜áƒ¡ გáƒáƒ—ვáƒáƒšáƒ˜áƒ¡áƒ¬áƒ˜áƒœáƒ”ბით
+find_reached_top=დáƒáƒ™áƒ£áƒ›áƒ”ნტის თáƒáƒ•áƒ˜, გრძელდებრდáƒáƒ™áƒ£áƒ›áƒ”ნტის ბáƒáƒšáƒáƒ“áƒáƒœ
+find_reached_bottom=დáƒáƒ™áƒ£áƒ›áƒ”ნტის ბáƒáƒšáƒ, გრძელდებრდáƒáƒ™áƒ£áƒ›áƒ”ნტის თáƒáƒ•áƒ˜áƒ“áƒáƒœ
+find_not_found=კáƒáƒœáƒ¢áƒ”ქსტი ვერ მáƒáƒ˜áƒ«áƒ”ბნáƒ
+
+# Error panel labels
+error_more_info=დეტáƒáƒšáƒ”ბის ჩვენებáƒ
+error_less_info=დეტáƒáƒšáƒ”ბის დáƒáƒ›áƒáƒšáƒ•áƒ
+error_close=დáƒáƒ®áƒ£áƒ áƒ•áƒ
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (áƒáƒ’ებáƒ: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=გზáƒáƒ•áƒœáƒ˜áƒšáƒ˜: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=მჭიდი: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ფáƒáƒ˜áƒšáƒ˜: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=სტრიქáƒáƒœáƒ˜: {{line}}
+rendering_error=შეცდáƒáƒ›áƒ გვერდის áƒáƒ¡áƒáƒ®áƒ•áƒ˜áƒ¡áƒáƒ¡.
+
+# Predefined zoom values
+page_scale_width=გვერდის სიგáƒáƒœáƒ”ზე
+page_scale_fit=გვერდის შევსებáƒ
+page_scale_auto=თვითმáƒáƒ¡áƒ¨áƒ¢áƒáƒ‘ი
+page_scale_actual=რეáƒáƒšáƒ£áƒ áƒ˜ ზáƒáƒ›áƒ
+
+# Loading indicator messages
+loading_error_indicator=შეცდáƒáƒ›áƒ
+loading_error=შეცდáƒáƒ›áƒ PDF ფáƒáƒ˜áƒšáƒ˜áƒ¡ ჩáƒáƒ¢áƒ•áƒ˜áƒ áƒ—ვისáƒáƒ¡.
+invalid_file_error=უმáƒáƒ áƒ—ებლრáƒáƒœ დáƒáƒ–იáƒáƒœáƒ”ბული PDF ფáƒáƒ˜áƒšáƒ˜.
+missing_file_error=მცდáƒáƒ áƒ˜ PDF ფáƒáƒ˜áƒšáƒ˜.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} áƒáƒœáƒáƒ¢áƒáƒªáƒ˜áƒ]
+request_password=PDF დáƒáƒªáƒ£áƒšáƒ˜áƒ პáƒáƒ áƒáƒšáƒ˜áƒ—:
+invalid_password=პáƒáƒ áƒáƒšáƒ˜ მცდáƒáƒ áƒ˜áƒ.
+
+printing_not_supported=გáƒáƒ¤áƒ áƒ—ხილებáƒ: áƒáƒ› ბრáƒáƒ£áƒ–ერში áƒáƒ›áƒáƒ‘ეჭდვის მხáƒáƒ áƒ“áƒáƒ­áƒ”რრáƒáƒ áƒáƒ¡áƒ áƒ£áƒšáƒ˜áƒ .
+printing_not_ready=გáƒáƒ¤áƒ áƒ—ხილებáƒ: PDF ფáƒáƒ˜áƒšáƒ˜ áƒáƒ›áƒáƒ¡áƒáƒ‘ეჭდáƒáƒ“ სრულáƒáƒ“ áƒáƒ  ჩáƒáƒ¢áƒ•áƒ˜áƒ áƒ—ულáƒ.
+web_fonts_disabled=ვებ შრიფტები áƒáƒ›áƒáƒ áƒ—ულიáƒ: ჩáƒáƒ“გმული PDF შრიფტებით სáƒáƒ áƒ’ებლáƒáƒ‘რვერ ხერხდებáƒ.
+document_colors_disabled=PDF დáƒáƒ™áƒ£áƒ›áƒ”ნტებს ეკრძáƒáƒšáƒ”ბáƒáƒ— სáƒáƒ™áƒ£áƒ—áƒáƒ áƒ˜ ფერების გáƒáƒ›áƒáƒ§áƒ”ნებáƒ: ბრáƒáƒ£áƒ–ერში áƒáƒ›áƒáƒ áƒ—ულირპáƒáƒ áƒáƒ›áƒ”ტრი - «გვერდებისთვის სáƒáƒ™áƒ£áƒ—áƒáƒ áƒ˜ ფერებით სáƒáƒ áƒ’ებლáƒáƒ‘ის უფლებáƒÂ».
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/kk/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/kk/viewer.properties
new file mode 100644
index 00000000..c6fbb8df
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/kk/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Ðлдыңғы парақ
+previous_label=ÐлдыңғыÑÑ‹
+next.title=КелеÑÑ– парақ
+next_label=КелеÑÑ–
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Парақ:
+page_of={{pageCount}} ішінен
+
+zoom_out.title=Кішірейту
+zoom_out_label=Кішірейту
+zoom_in.title=Үлкейту
+zoom_in_label=Үлкейту
+zoom.title=МаÑштаб
+presentation_mode.title=ÐŸÑ€ÐµÐ·ÐµÐ½Ñ‚Ð°Ñ†Ð¸Ñ Ñ€ÐµÐ¶Ð¸Ð¼Ñ–Ð½Ðµ ауыÑу
+presentation_mode_label=ÐŸÑ€ÐµÐ·ÐµÐ½Ñ‚Ð°Ñ†Ð¸Ñ Ñ€ÐµÐ¶Ð¸Ð¼Ñ–
+open_file.title=Файлды ашу
+open_file_label=Ðшу
+print.title=БаÑпаға шығару
+print_label=БаÑпаға шығару
+download.title=Жүктеп алу
+download_label=Жүктеп алу
+bookmark.title=Ðғымдағы ÐºÓ©Ñ€Ñ–Ð½Ñ–Ñ (көшіру не жаңа терезеде ашу)
+bookmark_label=Ðғымдағы көрініÑ
+
+# Secondary toolbar and context menu
+tools.title=Саймандар
+tools_label=Саймандар
+first_page.title=Ðлғашқы параққа өту
+first_page.label=Ðлғашқы параққа өту
+first_page_label=Ðлғашқы параққа өту
+last_page.title=Соңғы параққа өту
+last_page.label=Соңғы параққа өту
+last_page_label=Соңғы параққа өту
+page_rotate_cw.title=Сағат тілі бағытымен айналдыру
+page_rotate_cw.label=Сағат тілі бағытымен бұру
+page_rotate_cw_label=Сағат тілі бағытымен бұру
+page_rotate_ccw.title=Сағат тілі бағытына қарÑÑ‹ бұру
+page_rotate_ccw.label=Сағат тілі бағытына қарÑÑ‹ бұру
+page_rotate_ccw_label=Сағат тілі бағытына қарÑÑ‹ бұру
+
+hand_tool_enable.title=Қол Ñайманын Ñ–Ñке қоÑу
+hand_tool_enable_label=Қол Ñайманын Ñ–Ñке қоÑу
+hand_tool_disable.title=Қол Ñайманын Ñөндіру
+hand_tool_disable_label=Қол Ñайманын Ñөндіру
+
+# Document properties dialog box
+document_properties.title=Құжат қаÑиеттері…
+document_properties_label=Құжат қаÑиеттері…
+document_properties_file_name=Файл аты:
+document_properties_file_size=Файл өлшемі:
+document_properties_kb={{size_kb}} КБ ({{size_b}} байт)
+document_properties_mb={{size_mb}} МБ ({{size_b}} байт)
+document_properties_title=Тақырыбы...
+document_properties_author=Ðвторы:
+document_properties_subject=Тақырыбы:
+document_properties_keywords=Кілт Ñөздер:
+document_properties_creation_date=ЖаÑалған күні:
+document_properties_modification_date=Түзету күні:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=ЖаÑаған:
+document_properties_producer=PDF өндірген:
+document_properties_version=PDF нұÑқаÑÑ‹:
+document_properties_page_count=Беттер Ñаны:
+document_properties_close=Жабу
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Бүйір панелін көрÑету/жаÑыру
+toggle_sidebar_label=Бүйір панелін көрÑету/жаÑыру
+outline.title=Құжат құрамаÑын көрÑету
+outline_label=Құжат құрамаÑÑ‹
+attachments.title=Салынымдарды көрÑету
+attachments_label=Салынымдар
+thumbs.title=Кіші көрініÑтерді көрÑету
+thumbs_label=Кіші көрініÑтер
+findbar.title=Құжаттан табу
+findbar_label=Табу
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title={{page}} парағы
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}} парағы үшін кіші көрініÑÑ–
+
+# Find panel button title and messages
+find_label=Табу:
+find_previous.title=ОÑÑ‹ Ñөздердің мәтіннен алдыңғы кездеÑуін табу
+find_previous_label=ÐлдыңғыÑÑ‹
+find_next.title=ОÑÑ‹ Ñөздердің мәтіннен келеÑÑ– кездеÑуін табу
+find_next_label=КелеÑÑ–
+find_highlight=Барлығын Ñ‚Ò¯Ñпен ерекшелеу
+find_match_case_label=РегиÑтрді еÑкеру
+find_reached_top=Құжаттың баÑына жеттік, Ñоңынан баÑтап жалғаÑтырамыз
+find_reached_bottom=Құжаттың Ñоңына жеттік, баÑынан баÑтап жалғаÑтырамыз
+find_not_found=Сөз(дер) табылмады
+
+# Error panel labels
+error_more_info=Көбірек ақпарат
+error_less_info=Ðзырақ ақпарат
+error_close=Жабу
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (жинақ: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Хабарлама: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Стек: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Файл: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Жол: {{line}}
+rendering_error=Парақты өңдеу кезінде қате кетті.
+
+# Predefined zoom values
+page_scale_width=Парақ ені
+page_scale_fit=Парақты Ñыйдыру
+page_scale_auto=ÐвтомаÑштабтау
+page_scale_actual=Ðақты өлшемі
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Қате
+loading_error=PDF жүктеу кезінде қате кетті.
+invalid_file_error=Зақымдалған немеÑе қате PDF файл.
+missing_file_error=PDF файлы жоқ.
+unexpected_response_error=Сервердің күтпеген жауабы.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} аңдатпаÑÑ‹]
+password_label=Бұл PDF файлын ашу үшін парольді енгізіңіз.
+password_invalid=Пароль Ð´Ò±Ñ€Ñ‹Ñ ÐµÐ¼ÐµÑ. Қайталап көріңіз.
+password_ok=ОК
+password_cancel=Ð‘Ð°Ñ Ñ‚Ð°Ñ€Ñ‚Ñƒ
+
+printing_not_supported=ЕÑкерту: БаÑпаға шығаруды бұл браузер толығымен қолдамайды.
+printing_not_ready=ЕÑкерту: БаÑпаға шығару үшін, бұл PDF толығымен жүктеліп алынбады.
+web_fonts_disabled=Веб қаріптері Ñөндірілген: құрамына енгізілген PDF қаріптерін қолдану мүмкін емеÑ.
+document_colors_disabled=PDF құжаттарына өздік Ñ‚Ò¯Ñтерді қолдану Ñ€Ò±Ò›Ñат етілмеген: бұл браузерде 'Веб-Ñайттарға өздерінің Ñ‚Ò¯Ñтерін қолдануға Ñ€Ò±Ò›Ñат беру' мүмкіндігі Ñөндірулі тұр.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/km/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/km/viewer.properties
new file mode 100644
index 00000000..6ea40053
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/km/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=ទំពáŸážšâ€‹áž˜áž»áž“
+previous_label=មុន
+next.title=ទំពáŸážšâ€‹áž”ន្ទាប់
+next_label=បន្ទាប់
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=ទំពáŸážšÂ áŸ–
+page_of=នៃ {{pageCount}}
+
+zoom_out.title=​បង្រួម
+zoom_out_label=​បង្រួម
+zoom_in.title=​ពង្រីក
+zoom_in_label=​ពង្រីក
+zoom.title=ពង្រីក
+presentation_mode.title=ប្ដូរ​ទៅ​របៀប​បទ​បង្ហាញ
+presentation_mode_label=របៀប​បទ​បង្ហាញ
+open_file.title=បើក​ឯកសារ
+open_file_label=បើក
+print.title=បោះពុម្ព
+print_label=បោះពុម្ព
+download.title=ទាញ​យក
+download_label=ទាញ​យក
+bookmark.title=ទិដ្ឋភាព​បច្ចុប្បន្ន (ចម្លង ឬ​បើក​នៅ​ក្នុង​បង្អួច​ážáŸ’មី)
+bookmark_label=ទិដ្ឋភាព​បច្ចុប្បន្ន
+
+# Secondary toolbar and context menu
+tools.title=ឧបករណáŸ
+tools_label=ឧបករណáŸ
+first_page.title=ទៅកាន់​ទំពáŸážšâ€‹ážŠáŸ†áž”ូង​
+first_page.label=ទៅកាន់​ទំពáŸážšâ€‹ážŠáŸ†áž”ូង​
+first_page_label=ទៅកាន់​ទំពáŸážšâ€‹ážŠáŸ†áž”ូង​
+last_page.title=ទៅកាន់​ទំពáŸážšâ€‹áž…ុងក្រោយ​
+last_page.label=ទៅកាន់​ទំពáŸážšâ€‹áž…ុងក្រោយ​
+last_page_label=ទៅកាន់​ទំពáŸážšâ€‹áž…ុងក្រោយ
+page_rotate_cw.title=បង្វិល​ស្រប​ទ្រនិច​នាឡិកា
+page_rotate_cw.label=បង្វិល​ស្រប​ទ្រនិច​នាឡិកា
+page_rotate_cw_label=បង្វិល​ស្រប​ទ្រនិច​នាឡិកា
+page_rotate_ccw.title=បង្វិល​ច្រាស​ទ្រនិច​នាឡិកា​​
+page_rotate_ccw.label=បង្វិល​ច្រាស​ទ្រនិច​នាឡិកា​​
+page_rotate_ccw_label=បង្វិល​ច្រាស​ទ្រនិច​នាឡិកា​​
+
+hand_tool_enable.title=បើក​ឧបករណáŸâ€‹ážŠáŸ„យ​ដៃ
+hand_tool_enable_label=បើក​ឧបករណáŸâ€‹ážŠáŸ„យ​ដៃ
+hand_tool_disable.title=បិទ​ឧបករណáŸâ€‹áž”្រើ​ដៃ
+hand_tool_disable_label=បិទ​ឧបករណáŸâ€‹áž”្រើ​ដៃ
+
+# Document properties dialog box
+document_properties.title=លក្ážážŽâ€‹ážŸáž˜áŸ’áž”ážáŸ’ážáž·â€‹áž¯áž€ážŸáž¶ážšâ€¦
+document_properties_label=លក្ážážŽâ€‹ážŸáž˜áŸ’áž”ážáŸ’ážáž·â€‹áž¯áž€ážŸáž¶ážšâ€¦
+document_properties_file_name=ឈ្មោះ​ឯកសារ៖
+document_properties_file_size=ទំហំ​ឯកសារ៖
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=ចំណងជើង ៖
+document_properties_author=អ្នក​និពន្ធ៖
+document_properties_subject=ប្រធានបទ៖
+document_properties_keywords=ពាក្យ​គន្លឹះ៖
+document_properties_creation_date=កាលបរិច្ឆáŸáž‘​បង្កើážáŸ–
+document_properties_modification_date=កាលបរិច្ឆáŸáž‘​កែប្រែ៖
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=អ្នក​បង្កើážáŸ–
+document_properties_producer=កម្មវិធី​បង្កើហPDF ៖
+document_properties_version=កំណែ PDF ៖
+document_properties_page_count=ចំនួន​ទំពáŸážšáŸ–
+document_properties_close=បិទ
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=បិទ/បើក​គ្រាប់​រំកិល
+toggle_sidebar_label=បិទ/បើក​គ្រាប់​រំកិល
+outline.title=បង្ហាញ​គ្រោង​ឯកសារ
+outline_label=គ្រោង​ឯកសារ
+attachments.title=បង្ហាញ​ឯកសារ​ភ្ជាប់
+attachments_label=ឯកសារ​ភ្ជាប់
+thumbs.title=បង្ហាញ​រូបភាព​ážáž¼áž…ៗ
+thumbs_label=រួបភាព​ážáž¼áž…ៗ
+findbar.title=រក​នៅ​ក្នុង​ឯកសារ
+findbar_label=រក
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=ទំពáŸážš {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=រូបភាព​ážáž¼áž…​របស់​ទំពáŸážš {{page}}
+
+# Find panel button title and messages
+find_label=រក ៖
+find_previous.title=រក​ពាក្យ ឬ​ឃ្លា​ដែល​បាន​ជួប​មុន
+find_previous_label=មុន
+find_next.title=រក​ពាក្យ ឬ​ឃ្លា​ដែល​បាន​ជួប​បន្ទាប់
+find_next_label=បន្ទាប់
+find_highlight=បន្លិច​ទាំងអស់
+find_match_case_label=ករណី​ដំណូច
+find_reached_top=បាន​បន្ážâ€‹áž–ី​ážáž¶áž„​ក្រោម ទៅ​ដល់​ážáž¶áž„​​លើ​នៃ​ឯកសារ
+find_reached_bottom=បាន​បន្ážâ€‹áž–ី​ážáž¶áž„លើ ទៅដល់​ចុង​​នៃ​ឯកសារ
+find_not_found=រក​មិន​ឃើញ​ពាក្យ ឬ​ឃ្លា
+
+# Error panel labels
+error_more_info=áž–áŸážáŸŒáž˜áž¶áž“​បន្ážáŸ‚ម
+error_less_info=áž–áŸážáŸŒáž˜áž¶áž“​ážáž·áž…ážáž½áž…
+error_close=បិទ
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=សារ ៖ {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=ជង់ ៖ {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ឯកសារ ៖ {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=ជួរ ៖ {{line}}
+rendering_error=មាន​កំហុស​បាន​កើážáž¡áž¾áž„​ពáŸáž›â€‹áž”ង្ហាញ​ទំពáŸážšÂ áŸ”
+
+# Predefined zoom values
+page_scale_width=ទទឹង​ទំពáŸážš
+page_scale_fit=សម​ទំពáŸážš
+page_scale_auto=ពង្រីក​ស្វáŸáž™áž”្រវážáŸ’ážáž·
+page_scale_actual=ទំហំ​ជាក់ស្ដែង
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=កំហុស
+loading_error=មាន​កំហុស​បាន​កើážáž¡áž¾áž„​ពáŸáž›â€‹áž€áŸ†áž–ុង​ផ្ទុក PDF ។
+invalid_file_error=ឯកសារ PDF ážáž¼áž… ឬ​មិន​ážáŸ’រឹមážáŸ’រូវ ។
+missing_file_error=បាážáŸ‹â€‹áž¯áž€ážŸáž¶ážš PDF
+unexpected_response_error=ការ​ឆ្លើយ​ážáž˜â€‹áž˜áŸ‰áž¶ážŸáŸŠáž¸áž“​មáŸâ€‹ážŠáŸ‚ល​មិន​បាន​រំពឹង។
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} ចំណារ​ពន្យល់]
+password_label=បញ្ចូល​ពាក្យសម្ងាážáŸ‹â€‹ážŠáž¾áž˜áŸ’បី​បើក​ឯកសារ PDF áž“áŸáŸ‡áŸ”
+password_invalid=ពាក្យសម្ងាážáŸ‹â€‹áž˜áž·áž“​ážáŸ’រឹមážáŸ’រូវ។ សូម​ព្យាយាម​ម្ដងទៀážáŸ”
+password_ok=យល់​ព្រម
+password_cancel=បោះបង់
+
+printing_not_supported=ការ​ព្រមាន ៖ កា​រ​បោះពុម្ព​មិន​ážáŸ’រូវ​បាន​គាំទ្រ​ពáŸáž‰áž›áŸáž‰â€‹ážŠáŸ„យ​កម្មវិធី​រុករក​នáŸáŸ‡â€‹áž‘áŸÂ áŸ”
+printing_not_ready=ព្រមាន៖ PDF មិន​ážáŸ’រូវ​បាន​ផ្ទុក​ទាំងស្រុង​ដើម្បី​បោះពុម្ព​ទáŸáŸ”
+web_fonts_disabled=បាន​បិទ​ពុម្ពអក្សរ​បណ្ដាញ ៖ មិន​អាច​ប្រើ​ពុម្ពអក្សរ PDF ដែល​បាន​បង្កប់​បាន​ទáŸÂ áŸ”
+document_colors_disabled=ឯកសារ PDF មិន​ážáŸ’រូវ​បាន​អនុញ្ញាážâ€‹áž²áŸ’យ​ប្រើ​ពណ៌​ផ្ទាល់​របស់​វា​ទáŸáŸ– 'អនុញ្ញាážâ€‹â€‹áž²áŸ’យ​ទំពáŸážšâ€‹áž‡áŸ’រើស​ពណ៌​ផ្ទាល់​ážáŸ’លួន' ážáŸ’រូវ​បាន​ធ្វើ​ឲ្យ​អសកម្ម​ក្នុង​​កម្មវិធី​រុករក។
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/kn/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/kn/viewer.properties
new file mode 100644
index 00000000..c50cd20f
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/kn/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=ಹಿಂದಿನ ಪà³à²Ÿ
+previous_label=ಹಿಂದಿನ
+next.title=ಮà³à²‚ದಿನ ಪà³à²Ÿ
+next_label=ಮà³à²‚ದಿನ
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=ಪà³à²Ÿ:
+page_of={{pageCount}} ರಲà³à²²à²¿
+
+zoom_out.title=ಕಿರಿದಾಗಿಸà³
+zoom_out_label=ಕಿರಿದಾಗಿಸಿ
+zoom_in.title=ಹಿರಿದಾಗಿಸà³
+zoom_in_label=ಹಿರಿದಾಗಿಸಿ
+zoom.title=ಗಾತà³à²°à²¬à²¦à²²à²¿à²¸à³
+presentation_mode.title=ಪà³à²°à²¸à³à²¤à³à²¤à²¿ (ಪà³à²°à²¸à³†à²‚ಟೇಶನà³) ಕà³à²°à²®à²•à³à²•à³† ಬದಲಾಯಿಸà³
+presentation_mode_label=ಪà³à²°à²¸à³à²¤à³à²¤à²¿ (ಪà³à²°à²¸à³†à²‚ಟೇಶನà³) ಕà³à²°à²®
+open_file.title=ಕಡತವನà³à²¨à³ ತೆರೆ
+open_file_label=ತೆರೆಯಿರಿ
+print.title=ಮà³à²¦à³à²°à²¿à²¸à³
+print_label=ಮà³à²¦à³à²°à²¿à²¸à²¿
+download.title=ಇಳಿಸà³
+download_label=ಇಳಿಸಿಕೊಳà³à²³à²¿
+bookmark.title=ಪà³à²°à²¸à²•à³à²¤ ನೋಟ (ಪà³à²°à²¤à²¿ ಮಾಡೠಅಥವ ಹೊಸ ಕಿಟಕಿಯಲà³à²²à²¿ ತೆರೆ)
+bookmark_label=ಪà³à²°à²¸à²•à³à²¤ ನೋಟ
+
+# Secondary toolbar and context menu
+tools.title=ಉಪಕರಣಗಳà³
+tools_label=ಉಪಕರಣಗಳà³
+first_page.title=ಮೊದಲ ಪà³à²Ÿà²•à³à²•à³† ತೆರಳà³
+first_page.label=ಮೊದಲ ಪà³à²Ÿà²•à³à²•à³† ತೆರಳà³
+first_page_label=ಮೊದಲ ಪà³à²Ÿà²•à³à²•à³† ತೆರಳà³
+last_page.title=ಕೊನೆಯ ಪà³à²Ÿà²•à³à²•à³† ತೆರಳà³
+last_page.label=ಕೊನೆಯ ಪà³à²Ÿà²•à³à²•à³† ತೆರಳà³
+last_page_label=ಕೊನೆಯ ಪà³à²Ÿà²•à³à²•à³† ತೆರಳà³
+page_rotate_cw.title=ಪà³à²°à²¦à²•à³à²·à²¿à²£à³†à²¯à²²à³à²²à²¿ ತಿರà³à²—ಿಸà³
+page_rotate_cw.label=ಪà³à²°à²¦à²•à³à²·à²¿à²£à³†à²¯à²²à³à²²à²¿ ತಿರà³à²—ಿಸà³
+page_rotate_cw_label=ಪà³à²°à²¦à²•à³à²·à²¿à²£à³†à²¯à²²à³à²²à²¿ ತಿರà³à²—ಿಸà³
+page_rotate_ccw.title=ಅಪà³à²°à²¦à²•à³à²·à²¿à²£à³†à²¯à²²à³à²²à²¿ ತಿರà³à²—ಿಸà³
+page_rotate_ccw.label=ಅಪà³à²°à²¦à²•à³à²·à²¿à²£à³†à²¯à²²à³à²²à²¿ ತಿರà³à²—ಿಸà³
+page_rotate_ccw_label=ಅಪà³à²°à²¦à²•à³à²·à²¿à²£à³†à²¯à²²à³à²²à²¿ ತಿರà³à²—ಿಸà³
+
+hand_tool_enable.title=ಕೈ ಉಪಕರಣವನà³à²¨à³ ಸಕà³à²°à²¿à²¯à²—ೊಳಿಸà³
+hand_tool_enable_label=ಕೈ ಉಪಕರಣವನà³à²¨à³ ಸಕà³à²°à²¿à²¯à²—ೊಳಿಸà³
+hand_tool_disable.title=ಕೈ ಉಪಕರಣವನà³à²¨à³ ನಿಷà³à²•à³à²°à²¿à²¯à²—ೊಳಿಸà³
+hand_tool_disable_label=ಕೈ ಉಪಕರಣವನà³à²¨à³ ನಿಷà³à²•à³à²°à²¿à²¯à²—ೊಳಿಸà³
+
+# Document properties dialog box
+document_properties.title=ಡಾಕà³à²¯à³à²®à³†à²‚ಟà³â€Œ ಗà³à²£à²—ಳà³...
+document_properties_label=ಡಾಕà³à²¯à³à²®à³†à²‚ಟà³â€Œ ಗà³à²£à²—ಳà³...
+document_properties_file_name=ಕಡತದ ಹೆಸರà³:
+document_properties_file_size=ಕಡತದ ಗಾತà³à²°:
+document_properties_kb={{size_kb}} KB ({{size_b}} ಬೈಟà³â€à²—ಳà³)
+document_properties_mb={{size_mb}} MB ({{size_b}} ಬೈಟà³â€à²—ಳà³)
+document_properties_title=ಶೀರà³à²·à²¿à²•à³†:
+document_properties_author=ಕರà³à²¤à³ƒ:
+document_properties_subject=ವಿಷಯ:
+document_properties_keywords=ಮà³à²–à³à²¯à²ªà²¦à²—ಳà³:
+document_properties_creation_date=ರಚಿಸಿದ ದಿನಾಂಕ:
+document_properties_modification_date=ಮಾರà³à²ªà²¡à²¿à²¸à²²à²¾à²¦ ದಿನಾಂಕ:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=ರಚಿಸಿದವರà³:
+document_properties_producer=PDF ಉತà³à²ªà²¾à²¦à²•:
+document_properties_version=PDF ಆವೃತà³à²¤à²¿:
+document_properties_page_count=ಪà³à²Ÿà²¦ ಎಣಿಕೆ:
+document_properties_close=ಮà³à²šà³à²šà³
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=ಬದಿಪಟà³à²Ÿà²¿à²¯à²¨à³à²¨à³ ಹೊರಳಿಸà³
+toggle_sidebar_label=ಬದಿಪಟà³à²Ÿà²¿à²¯à²¨à³à²¨à³ ಹೊರಳಿಸà³
+outline.title=ದಸà³à²¤à²¾à²µà³‡à²œà²¿à²¨ ಹೊರರೇಖೆಯನà³à²¨à³ ತೋರಿಸà³
+outline_label=ದಸà³à²¤à²¾à²µà³‡à²œà²¿à²¨ ಹೊರರೇಖೆ
+attachments.title=ಲಗತà³à²¤à³à²—ಳನà³à²¨à³ ತೋರಿಸà³
+attachments_label=ಲಗತà³à²¤à³à²—ಳà³
+thumbs.title=ಚಿಕà³à²•à²šà²¿à²¤à³à²°à²¦à²‚ತೆ ತೋರಿಸà³
+thumbs_label=ಚಿಕà³à²•à²šà²¿à²¤à³à²°à²—ಳà³
+findbar.title=ದಸà³à²¤à²¾à²µà³‡à²œà²¿à²¨à²²à³à²²à²¿ ಹà³à²¡à³à²•à³
+findbar_label=ಹà³à²¡à³à²•à³
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=ಪà³à²Ÿ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=ಪà³à²Ÿà²µà²¨à³à²¨à³ ಚಿಕà³à²•à²šà²¿à²¤à³à²°à²¦à²‚ತೆ ತೋರಿಸೠ{{page}}
+
+# Find panel button title and messages
+find_label=ಹà³à²¡à³à²•à³:
+find_previous.title=ವಾಕà³à²¯à²¦ ಹಿಂದಿನ ಇರà³à²µà²¿à²•à³†à²¯à²¨à³à²¨à³ ಹà³à²¡à³à²•à³
+find_previous_label=ಹಿಂದಿನ
+find_next.title=ವಾಕà³à²¯à²¦ ಮà³à²‚ದಿನ ಇರà³à²µà²¿à²•à³†à²¯à²¨à³à²¨à³ ಹà³à²¡à³à²•à³
+find_next_label=ಮà³à²‚ದಿನ
+find_highlight=ಎಲà³à²²à²µà²¨à³à²¨à³ ಹೈಲೈಟೠಮಾಡà³
+find_match_case_label=ಕೇಸನà³à²¨à³ ಹೊಂದಿಸà³
+find_reached_top=ದಸà³à²¤à²¾à²µà³‡à²œà²¿à²¨ ಮೇಲà³à²­à²¾à²—ವನà³à²¨à³ ತಲà³à²ªà²¿à²¦à³†, ಕೆಳಗಿನಿಂದ ಆರಂಭಿಸà³
+find_reached_bottom=ದಸà³à²¤à²¾à²µà³‡à²œà²¿à²¨ ಕೊನೆಯನà³à²¨à³ ತಲà³à²ªà²¿à²¦à³†, ಮೇಲಿನಿಂದ ಆರಂಭಿಸà³
+find_not_found=ವಾಕà³à²¯à²µà³ ಕಂಡೠಬಂದಿಲà³à²²
+
+# Error panel labels
+error_more_info=ಹೆಚà³à²šà²¿à²¨ ಮಾಹಿತಿ
+error_less_info=ಕಡಿಮೆ ಮಾಹಿತಿ
+error_close=ಮà³à²šà³à²šà³
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=ಸಂದೇಶ: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=ರಾಶಿ: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ಕಡತ: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=ಸಾಲà³: {{line}}
+rendering_error=ಪà³à²Ÿà²µà²¨à³à²¨à³ ನಿರೂಪಿಸà³à²µà²¾à²— ಒಂದೠದೋಷ ಎದà³à²°à²¾à²—ಿದೆ.
+
+# Predefined zoom values
+page_scale_width=ಪà³à²Ÿà²¦ ಅಗಲ
+page_scale_fit=ಪà³à²Ÿà²¦ ಸರಿಹೊಂದಿಕೆ
+page_scale_auto=ಸà³à²µà²¯à²‚ಚಾಲಿತ ಗಾತà³à²°à²¬à²¦à²²à²¾à²µà²£à³†
+page_scale_actual=ನಿಜವಾದ ಗಾತà³à²°
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=ದೋಷ
+loading_error=PDF ಅನà³à²¨à³ ಲೋಡೠಮಾಡà³à²µà²¾à²— ಒಂದೠದೋಷ ಎದà³à²°à²¾à²—ಿದೆ.
+invalid_file_error=ಅಮಾನà³à²¯à²µà²¾à²¦ ಅಥವ ಹಾಳಾದ PDF ಕಡತ.
+missing_file_error=PDF ಕಡತ ಇಲà³à²².
+unexpected_response_error=ಅನಿರೀಕà³à²·à²¿à²¤à²µà²¾à²¦ ಪೂರೈಕೆಗಣಕದ ಪà³à²°à²¤à²¿à²•à³à²°à²¿à²¯à³†.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} ಟಿಪà³à²ªà²£à²¿]
+password_label=PDF ಅನà³à²¨à³ ತೆರೆಯಲೠಗà³à²ªà³à²¤à²ªà²¦à²µà²¨à³à²¨à³ ನಮೂದಿಸಿ.
+password_invalid=ಅಮಾನà³à²¯à²µà²¾à²¦ ಗà³à²ªà³à²¤à²ªà²¦, ದಯವಿಟà³à²Ÿà³ ಇನà³à²¨à³Šà²®à³à²®à³† ಪà³à²°à²¯à²¤à³à²¨à²¿à²¸à²¿.
+password_ok=OK
+password_cancel=ರದà³à²¦à³ ಮಾಡà³
+
+printing_not_supported=ಎಚà³à²šà²°à²¿à²•à³†: ಈ ಜಾಲವೀಕà³à²·à²•à²¦à²²à³à²²à²¿ ಮà³à²¦à³à²°à²£à²•à³à²•à³† ಸಂಪೂರà³à²£ ಬೆಂಬಲವಿಲà³à²².
+printing_not_ready=ಎಚà³à²šà²°à²¿à²•à³†: PDF ಕಡತವೠಮà³à²¦à³à²°à²¿à²¸à²²à³ ಸಂಪೂರà³à²£à²µà²¾à²—ಿ ಲೋಡೠಆಗಿಲà³à²².
+web_fonts_disabled=ಜಾಲ ಅಕà³à²·à²°à²¶à³ˆà²²à²¿à²¯à²¨à³à²¨à³ ನಿಷà³à²•à³à²°à²¿à²¯à²—ೊಳಿಸಲಾಗಿದೆ: ಅಡಕಗೊಳಿಸಿದ PDF ಅಕà³à²·à²°à²¶à³ˆà²²à²¿à²—ಳನà³à²¨à³ ಬಳಸಲೠಸಾಧà³à²¯à²µà²¾à²—ಿಲà³à²².
+document_colors_disabled=PDF ದಸà³à²¤à²¾à²µà³‡à²œà³à²—ಳೠತಮà³à²®à²¦à³† ಆದ ಬಣà³à²£à²—ಳನà³à²¨à³ ಬಳಸಲೠಅನà³à²®à²¤à²¿ ಇರà³à²µà³à²¦à²¿à²²à³à²²: 'ಪà³à²Ÿà²—ಳೠತಮà³à²®à²¦à³† ಆದ ಬಣà³à²£à²µà²¨à³à²¨à³ ಆಯà³à²•à³† ಮಾಡಲೠಅನà³à²®à²¤à²¿à²¸à³' ಅನà³à²¨à³ ಜಾಲವೀಕà³à²·à²•à²¦à²²à³à²²à²¿ ನಿಷà³à²•à³à²°à²¿à²¯à²—ೊಳಿಸಲಾಗಿರà³à²¤à³à²¤à²¦à³†.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ko/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ko/viewer.properties
new file mode 100644
index 00000000..eca6ffac
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ko/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=ì´ì „ 페ì´ì§€
+previous_label=ì´ì „
+next.title=ë‹¤ìŒ íŽ˜ì´ì§€
+next_label=다ìŒ
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=페ì´ì§€:
+page_of=/{{pageCount}}
+
+zoom_out.title=축소
+zoom_out_label=축소
+zoom_in.title=확대
+zoom_in_label=확대
+zoom.title=í¬ê¸°
+print.title=ì¸ì‡„
+print_label=ì¸ì‡„
+presentation_mode.title=발표 모드로 전환
+presentation_mode_label=발표 모드
+open_file.title=íŒŒì¼ ì—´ê¸°
+open_file_label=열기
+download.title=다운로드
+download_label=다운로드
+bookmark.title=지금 ë³´ì´ëŠ” 그대로 (복사하거나 새 ì°½ì— ì—´ê¸°)
+bookmark_label=지금 ë³´ì´ëŠ” 그대로
+
+# Secondary toolbar and context menu
+tools.title=ë„구
+tools_label=ë„구
+first_page.title=첫 페ì´ì§€ë¡œ ì´ë™
+first_page.label=첫 페ì´ì§€ë¡œ ì´ë™
+first_page_label=첫 페ì´ì§€ë¡œ ì´ë™
+last_page.title=마지막 페ì´ì§€ë¡œ ì´ë™
+last_page.label=마지막 페ì´ì§€ë¡œ ì´ë™
+last_page_label=마지막 페ì´ì§€ë¡œ ì´ë™
+page_rotate_cw.title=시계방향으로 회전
+page_rotate_cw.label=시계방향으로 회전
+page_rotate_cw_label=시계방향으로 회전
+page_rotate_ccw.title=시계 반대방향으로 회전
+page_rotate_ccw.label=시계 반대방향으로 회전
+page_rotate_ccw_label=시계 반대방향으로 회전
+
+hand_tool_enable.title=ì† ë„구 켜기
+hand_tool_enable_label=ì† ë„구 켜기
+hand_tool_disable.title=ì† ë„구 ë„기
+hand_tool_disable_label=ì† ë„구 ë„기
+
+# Document properties dialog box
+document_properties.title=문서 ì†ì„±â€¦
+document_properties_label=문서 ì†ì„±â€¦
+document_properties_file_name=íŒŒì¼ ì´ë¦„:
+document_properties_file_size=íŒŒì¼ ì‚¬ì´ì¦ˆ:
+document_properties_kb={{size_kb}} KB ({{size_b}}ë°”ì´íŠ¸)
+document_properties_mb={{size_mb}} MB ({{size_b}}ë°”ì´íŠ¸)
+document_properties_title=제목:
+document_properties_author=ì €ìž:
+document_properties_subject=주제:
+document_properties_keywords=키워드:
+document_properties_creation_date=ìƒì„±ì¼:
+document_properties_modification_date=수정ì¼:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=ìƒì„±ìž:
+document_properties_producer=PDF ìƒì„±ê¸°:
+document_properties_version=PDF 버전:
+document_properties_page_count=ì´ íŽ˜ì´ì§€:
+document_properties_close=닫기
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=íƒìƒ‰ì°½ ì—´ê³  닫기
+toggle_sidebar_label=íƒìƒ‰ì°½ ì—´ê³  닫기
+outline.title=문서 개요 보기
+outline_label=문서 개요
+attachments.title=ì²¨ë¶€íŒŒì¼ ë³´ê¸°
+attachments_label=첨부파ì¼
+thumbs.title=미리보기
+thumbs_label=미리보기
+findbar.title=검색
+findbar_label=검색
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title={{page}}쪽
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}}쪽 미리보기
+
+# Find panel button title and messages
+find_label=검색:
+find_previous.title=지정 문ìžì—´ì— ì¼ì¹˜í•˜ëŠ” 1ê°œ ë¶€ë¶„ì„ ê²€ìƒ‰
+find_previous_label=ì´ì „
+find_next.title=지정 문ìžì—´ì— ì¼ì¹˜í•˜ëŠ” ë‹¤ìŒ ë¶€ë¶„ì„ ê²€ìƒ‰
+find_next_label=다ìŒ
+find_highlight=ëª¨ë‘ ê°•ì¡° 표시
+find_match_case_label=대문ìž/ì†Œë¬¸ìž êµ¬ë³„
+find_reached_top=문서 처ìŒê¹Œì§€ 검색하고 ë으로 ëŒì•„와 검색했습니다.
+find_reached_bottom=문서 ë까지 검색하고 앞으로 ëŒì•„와 검색했습니다.
+find_not_found=검색 ê²°ê³¼ ì—†ìŒ
+
+# Error panel labels
+error_more_info=ì •ë³´ ë” ë³´ê¸°
+error_less_info=정보 간단히 보기
+error_close=닫기
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (빌드: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=메시지: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=스íƒ: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=파ì¼: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=줄 번호: {{line}}
+rendering_error=페ì´ì§€ë¥¼ ë Œë”ë§í•˜ë‹¤ 오류가 났습니다.
+
+# Predefined zoom values
+page_scale_width=페ì´ì§€ ë„ˆë¹„ì— ë§žì¶¤
+page_scale_fit=페ì´ì§€ì— 맞춤
+page_scale_auto=알아서 맞춤
+page_scale_actual=실제 í¬ê¸°ì— 맞춤
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=오류
+loading_error=PDF를 ì½ëŠ” 중 오류가 ìƒê²¼ìŠµë‹ˆë‹¤.
+invalid_file_error=유효하지 않거나 파ì†ëœ PDF 파ì¼
+missing_file_error=PDF 파ì¼ì´ 없습니다.
+unexpected_response_error=ì•Œ 수 없는 서버 ì‘답입니다.
+
+# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
+# "{{[type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} 주ì„]
+password_label=ì´ PDF 파ì¼ì„ ì—´ 수 있는 암호를 입력하십시오.
+password_invalid=ìž˜ëª»ëœ ì•”í˜¸ìž…ë‹ˆë‹¤. 다시 ì‹œë„í•´ 주십시오.
+password_ok=확ì¸
+password_cancel=취소
+
+printing_not_supported=경고: ì´ ë¸Œë¼ìš°ì €ëŠ” ì¸ì‡„를 완전히 지ì›í•˜ì§€ 않습니다.
+printing_not_ready=경고: ì´ PDF를 ì¸ì‡„를 í•  수 ìžˆì„ ì •ë„ë¡œ ì½ì–´ë“¤ì´ì§€ 못했습니다.
+web_fonts_disabled=웹 í°íŠ¸ê°€ 꺼져있ìŒ: ë‚´ìž¥ëœ PDF ê¸€ê¼´ì„ ì“¸ 수 없습니다.
+document_colors_disabled=PDF ë¬¸ì„œì˜ ìƒ‰ìƒì„ 쓰지 못하게 ë˜ì–´ 있ìŒ: \'웹 페ì´ì§€ ìžì²´ ìƒ‰ìƒ ì‚¬ìš© 허용\'ì´ ë¸Œë¼ìš°ì €ì—ì„œ 꺼져 있습니다.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ku/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ku/viewer.properties
new file mode 100644
index 00000000..c614fa15
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ku/viewer.properties
@@ -0,0 +1,139 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Rûpela berê
+previous_label=PaÅŸve
+next.title=Rûpela pêş
+next_label=Pêş
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Rûpel:
+page_of=/ {{pageCount}}
+
+zoom_out.title=Dûr bike
+zoom_out_label=Dûr bike
+zoom_in.title=Nêzîk bike
+zoom_in_label=Nêzîk bike
+zoom.title=Nêzîk Bike
+presentation_mode.title=Derbasî mûda pêşkêşkariyê bibe
+presentation_mode_label=Moda Pêşkêşkariyê
+open_file.title=Pelî veke
+open_file_label=Veke
+print.title=Çap bike
+print_label=Çap bike
+download.title=Jêbar bike
+download_label=Jêbar bike
+bookmark.title=Xuyakirina niha (kopî yan jî di pencereyeke nû de veke)
+bookmark_label=Xuyakirina niha
+
+# Secondary toolbar and context menu
+tools.title=Amûr
+tools_label=Amûr
+first_page.title=Here rûpela yekemîn
+first_page.label=Here rûpela yekemîn
+first_page_label=Here rûpela yekemîn
+last_page.title=Here rûpela dawîn
+last_page.label=Here rûpela dawîn
+last_page_label=Here rûpela dawîn
+page_rotate_cw.title=Bi aliyê saetê ve bizivirîne
+page_rotate_cw.label=Bi aliyê saetê ve bizivirîne
+page_rotate_cw_label=Bi aliyê saetê ve bizivirîne
+page_rotate_ccw.title=Berevajî aliyê saetê ve bizivirîne
+page_rotate_ccw.label=Berevajî aliyê saetê ve bizivirîne
+page_rotate_ccw_label=Berevajî aliyê saetê ve bizivirîne
+
+
+# Document properties dialog box
+document_properties_title=Sernav:
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Darikê kêlekê veke/bigire
+toggle_sidebar_label=Darikê kêlekê veke/bigire
+outline.title=Şemaya belgeyê nîşan bide
+outline_label=Şemaya belgeyê
+thumbs.title=Wênekokan nîşan bide
+thumbs_label=Wênekok
+findbar.title=Di belgeyê de bibîne
+findbar_label=Bibîne
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Rûpel {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Wênekoka rûpelê {{page}}
+
+# Find panel button title and messages
+find_label=Bibîne:
+find_previous.title=Peyva berê bibîne
+find_previous_label=PaÅŸve
+find_next.title=Peyya pêş bibîne
+find_next_label=Pêşve
+find_highlight=Tevî beloq bike
+find_match_case_label=Ji bo tîpên hûrdek-girdek bihîstyar
+find_reached_top=Gihîşt serê rûpelê, ji dawiya rûpelê bidomîne
+find_reached_bottom=Gihîşt dawiya rûpelê, ji serê rûpelê bidomîne
+find_not_found=Peyv nehat dîtin
+
+# Error panel labels
+error_more_info=Zêdetir agahî
+error_less_info=Zêdetir agahî
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js versiyon {{version}} (avanî: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Peyam: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Komik: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Pel: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Rêzik: {{line}}
+rendering_error=Di vehûrandina rûpelê de çewtî çêbû.
+
+# Predefined zoom values
+page_scale_width=Firehiya rûpelê
+page_scale_fit=Di rûpelê de bicî bike
+page_scale_auto=Xweber nêzîk bike
+page_scale_actual=Mezinahiya rastîn
+
+# Loading indicator messages
+loading_error_indicator=Xeletî
+loading_error=Dema ku PDF dihat barkirin çewtiyek çêbû.
+invalid_file_error=Pelê PDFê nederbasdar yan jî xirabe ye.
+missing_file_error=Pelê PDFê kêm e.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Nîşaneya {{type}}ê]
+password_label=Ji bo PDFê vekî şîfreyê binivîse.
+password_invalid=Şîfre çewt e. Tika ye dîsa biceribîne.
+password_ok=Temam
+password_cancel=Betal
+
+printing_not_supported=Hişyarî: Çapkirin ji hêla vê gerokê ve bi temamî nayê destekirin.
+printing_not_ready=Hişyarî: PDF bi temamî nehat barkirin û ji bo çapê ne amade ye.
+web_fonts_disabled=Fontên Webê neçalak in: Fontên PDFê yên veşartî nayên bikaranîn.
+document_colors_disabled=Destûr tune ye ku belgeyên PDFê rengên xwe bi kar bînin: Di gerokê de 'destûrê bide rûpelan ku rengên xwe bi kar bînin' nehatiye çalakirin.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lg/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lg/viewer.properties
new file mode 100644
index 00000000..5c88487a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lg/viewer.properties
@@ -0,0 +1,103 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Omuko Ogubadewo
+next.title=Omuko Oguddako
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Omuko:
+page_of=ku {{pageCount}}
+
+zoom_out.title=Zimbulukusa
+zoom_out_label=Zimbulukusa
+zoom_in.title=Funza Munda
+zoom_in_label=Funza Munda
+zoom.title=Gezzamu
+open_file.title=Bikula Fayiro
+open_file_label=Ggulawo
+print.title=Fulumya
+print_label=Fulumya
+download.title=Tikula
+download_label=Tikula
+bookmark.title=Endabika eriwo (koppa oba gulawo mu diriisa epya)
+bookmark_label=Endabika Eriwo
+
+# Secondary toolbar and context menu
+
+
+# Document properties dialog box
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+outline.title=Laga Ensalo ze Kiwandiko
+outline_label=Ensalo ze Ekiwandiko
+thumbs.title=Laga Ekifanyi Mubufunze
+thumbs_label=Ekifanyi Mubufunze
+findbar_label=Zuula
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Omuko {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Ekifananyi kyo Omuko Mubufunze {{page}}
+
+# Find panel button title and messages
+find_previous.title=Zuula awayise mukweddamu mumiteddera
+find_next.title=Zuula ekidako mukweddamu mumiteddera
+find_highlight=Londa byonna
+find_not_found=Emiteddera tezuuliddwa
+
+# Error panel labels
+error_more_info=Ebisingawo
+error_less_info=Mubumpimpi
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Obubaaka: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Ebipangiddwa: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fayiro {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Layini: {{line}}
+rendering_error=Wabadewo ensobi muku tekawo omuko.
+
+# Predefined zoom values
+page_scale_width=Obugazi bwo Omuko
+page_scale_fit=Okutuka kwo Omuko
+page_scale_auto=Okwefunza no Kwegeza
+page_scale_actual=Obunene Obutufu
+
+# Loading indicator messages
+loading_error_indicator=Ensobi
+loading_error=Wabadewo ensobi mukutika PDF.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Enyonyola]
+password_ok=OK
+password_cancel=Sazaamu
+
+printing_not_supported=Okulaabula: Okulumya empapula tekuwagirwa enonyeso enno.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lij/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lij/viewer.properties
new file mode 100644
index 00000000..dbab0a7b
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lij/viewer.properties
@@ -0,0 +1,116 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+previous.title = Pàgina precedénte
+previous_label = Precedénte
+next.title = Pàgina dòppo
+next_label = Pròscima
+page_label = Pàgina:
+page_of = de {{pageCount}}
+zoom_out.title = Diminoìsci zoom
+zoom_out_label = Diminoìsci zoom
+zoom_in.title = Aoménta zoom
+zoom_in_label = Aoménta zoom
+zoom.title = Zoom
+print.title = Stànpa
+print_label = Stànpa
+open_file.title = Àrvi file
+open_file_label = Àrvi
+download.title = Descaregaménto
+download_label = Descaregaménto
+bookmark.title = Vixón corénte (còpia ò àrvi inte 'n nêuvo barcón)
+bookmark_label = Vixón corénte
+outline.title = Véddi strutûa documénto
+outline_label = Strutûa documénto
+thumbs.title = Móstra miniatûe
+thumbs_label = Miniatûe
+thumb_page_title = Pàgina {{page}}
+thumb_page_canvas = Miniatûa da pàgina {{page}}
+error_more_info = Ciù informaçioìn
+error_less_info = Mêno informaçioìn
+error_version_info = PDF.js v{{version}} (build: {{build}})
+error_close = Særa
+missing_file_error = O file PDF o no gh'é.
+toggle_sidebar.title = Atîva/dizatîva bâra de sciànco
+toggle_sidebar_label = Atîva/dizatîva bâra de sciànco
+error_message = Mesàggio: {{message}}
+error_stack = Stack: {{stack}}
+error_file = File: {{file}}
+error_line = Lìnia: {{line}}
+rendering_error = Gh'é stæto 'n'erô itno rendering da pàgina.
+page_scale_width = Larghéssa pàgina
+page_scale_fit = Adàtta a una pàgina
+page_scale_auto = Zoom aotomàtico
+page_scale_actual = Dimenscioìn efetîve
+loading_error_indicator = Erô
+loading_error = S'é verificòu 'n'erô itno caregaménto do PDF.
+printing_not_supported = Atençión: a stànpa a no l'é conpletaménte soportâ da sto navegatô.
+
+# Context menu
+page_rotate_cw.label=Gîa in sénso do reléuio
+page_rotate_ccw.label=Gîa in sénso do reléuio a-a revèrsa
+
+presentation_mode.title=Vànni into mòddo de prezentaçión
+presentation_mode_label=Mòddo de prezentaçión
+
+find_label = Trêuva:
+find_previous.title = Trêuva a ripetiçión precedénte do tèsto da çercâ
+find_previous_label = Precedénte
+find_next.title = Trêuva a ripetiçión dòppo do tèsto da çercâ
+find_next_label = Segoénte
+find_highlight = Evidénçia
+find_match_case_label = Maióscole/minóscole
+find_reached_bottom = Razónto l'inìçio da pàgina, contìnoa da-a fìn
+find_reached_top = Razónto a fìn da pàgina, contìnoa da l'inìçio
+find_not_found = Tèsto no trovòu
+findbar.title = Trêuva into documénto
+findbar_label = Trêuva
+first_page.label = Vànni a-a prìmma pàgina
+last_page.label = Vànni a l'ùrtima pàgina
+invalid_file_error = O file PDF o l'é no vàlido ò aroinòu.
+
+web_fonts_disabled = I font do web én dizativæ: inposcìbile adêuviâ i caràteri do PDF.
+printing_not_ready = Atençión: o PDF o no l'é ancón caregòu conpletaménte pe-a stànpa.
+
+document_colors_disabled = No l'é poscìbile adêuviâ i pròpi coî pe-i documénti PDF: l'opçión do navegatô 'Permètti a-e pàgine de çèrne i pròpi coî in càngio de quélli inpostæ' a l'é dizativâ.
+text_annotation_type.alt = [Anotaçión: {{type}}]
+
+first_page.title = Vànni a-a prìmma pàgina
+first_page_label = Vànni a-a prìmma pàgina
+last_page.title = Vànni a l'ùrtima pàgina
+last_page_label = Vànni a l'ùrtima pàgina
+page_rotate_ccw.title = Gîa into vèrso antiorâio
+page_rotate_ccw_label = Gîa into vèrso antiorâio
+page_rotate_cw.title = Gîa into vèrso orâio
+page_rotate_cw_label = Gîa into vèrso orâio
+tools.title = Struménti
+tools_label = Struménti
+password_label = Dìmme a paròlla segrêta pe arvî sto file PDF.
+password_invalid = Paròlla segrêta sbaliâ. Prêuva tórna.
+password_ok = Va bén
+password_cancel = Anùlla
+
+document_properties.title = Propietæ do documénto…
+document_properties_label = Propietæ do documénto…
+document_properties_file_name = Nómme file:
+document_properties_file_size = Dimensción file:
+document_properties_kb = {{size_kb}} kB ({{size_b}} byte)
+document_properties_mb = {{size_kb}} MB ({{size_b}} byte)
+document_properties_title = Tìtolo:
+document_properties_author = Aotô:
+document_properties_subject = Ogétto:
+document_properties_keywords = Paròlle ciâve:
+document_properties_creation_date = Dæta creaçión:
+document_properties_modification_date = Dæta cangiaménto:
+document_properties_date_string = {{date}}, {{time}}
+document_properties_creator = Aotô originâle:
+document_properties_producer = Produtô PDF:
+document_properties_version = Versción PDF:
+document_properties_page_count = Contézzo pàgine:
+document_properties_close = Særa
+
+hand_tool_enable.title = Atîva struménto màn
+hand_tool_enable_label = Atîva struménto màn
+hand_tool_disable.title = Dizatîva struménto màn
+hand_tool_disable_label = Dizatîva struménto màn
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/locale.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/locale.properties
new file mode 100644
index 00000000..9aded1b5
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/locale.properties
@@ -0,0 +1,312 @@
+[ach]
+@import url(ach/viewer.properties)
+
+[af]
+@import url(af/viewer.properties)
+
+[ak]
+@import url(ak/viewer.properties)
+
+[an]
+@import url(an/viewer.properties)
+
+[ar]
+@import url(ar/viewer.properties)
+
+[as]
+@import url(as/viewer.properties)
+
+[ast]
+@import url(ast/viewer.properties)
+
+[az]
+@import url(az/viewer.properties)
+
+[be]
+@import url(be/viewer.properties)
+
+[bg]
+@import url(bg/viewer.properties)
+
+[bn-BD]
+@import url(bn-BD/viewer.properties)
+
+[bn-IN]
+@import url(bn-IN/viewer.properties)
+
+[br]
+@import url(br/viewer.properties)
+
+[bs]
+@import url(bs/viewer.properties)
+
+[ca]
+@import url(ca/viewer.properties)
+
+[cs]
+@import url(cs/viewer.properties)
+
+[csb]
+@import url(csb/viewer.properties)
+
+[cy]
+@import url(cy/viewer.properties)
+
+[da]
+@import url(da/viewer.properties)
+
+[de]
+@import url(de/viewer.properties)
+
+[el]
+@import url(el/viewer.properties)
+
+[en-GB]
+@import url(en-GB/viewer.properties)
+
+[en-US]
+@import url(en-US/viewer.properties)
+
+[en-ZA]
+@import url(en-ZA/viewer.properties)
+
+[eo]
+@import url(eo/viewer.properties)
+
+[es-AR]
+@import url(es-AR/viewer.properties)
+
+[es-CL]
+@import url(es-CL/viewer.properties)
+
+[es-ES]
+@import url(es-ES/viewer.properties)
+
+[es-MX]
+@import url(es-MX/viewer.properties)
+
+[et]
+@import url(et/viewer.properties)
+
+[eu]
+@import url(eu/viewer.properties)
+
+[fa]
+@import url(fa/viewer.properties)
+
+[ff]
+@import url(ff/viewer.properties)
+
+[fi]
+@import url(fi/viewer.properties)
+
+[fr]
+@import url(fr/viewer.properties)
+
+[fy-NL]
+@import url(fy-NL/viewer.properties)
+
+[ga-IE]
+@import url(ga-IE/viewer.properties)
+
+[gd]
+@import url(gd/viewer.properties)
+
+[gl]
+@import url(gl/viewer.properties)
+
+[gu-IN]
+@import url(gu-IN/viewer.properties)
+
+[he]
+@import url(he/viewer.properties)
+
+[hi-IN]
+@import url(hi-IN/viewer.properties)
+
+[hr]
+@import url(hr/viewer.properties)
+
+[hu]
+@import url(hu/viewer.properties)
+
+[hy-AM]
+@import url(hy-AM/viewer.properties)
+
+[id]
+@import url(id/viewer.properties)
+
+[is]
+@import url(is/viewer.properties)
+
+[it]
+@import url(it/viewer.properties)
+
+[ja]
+@import url(ja/viewer.properties)
+
+[ka]
+@import url(ka/viewer.properties)
+
+[kk]
+@import url(kk/viewer.properties)
+
+[km]
+@import url(km/viewer.properties)
+
+[kn]
+@import url(kn/viewer.properties)
+
+[ko]
+@import url(ko/viewer.properties)
+
+[ku]
+@import url(ku/viewer.properties)
+
+[lg]
+@import url(lg/viewer.properties)
+
+[lij]
+@import url(lij/viewer.properties)
+
+[lt]
+@import url(lt/viewer.properties)
+
+[lv]
+@import url(lv/viewer.properties)
+
+[mai]
+@import url(mai/viewer.properties)
+
+[mk]
+@import url(mk/viewer.properties)
+
+[ml]
+@import url(ml/viewer.properties)
+
+[mn]
+@import url(mn/viewer.properties)
+
+[mr]
+@import url(mr/viewer.properties)
+
+[ms]
+@import url(ms/viewer.properties)
+
+[my]
+@import url(my/viewer.properties)
+
+[nb-NO]
+@import url(nb-NO/viewer.properties)
+
+[nl]
+@import url(nl/viewer.properties)
+
+[nn-NO]
+@import url(nn-NO/viewer.properties)
+
+[nso]
+@import url(nso/viewer.properties)
+
+[oc]
+@import url(oc/viewer.properties)
+
+[or]
+@import url(or/viewer.properties)
+
+[pa-IN]
+@import url(pa-IN/viewer.properties)
+
+[pl]
+@import url(pl/viewer.properties)
+
+[pt-BR]
+@import url(pt-BR/viewer.properties)
+
+[pt-PT]
+@import url(pt-PT/viewer.properties)
+
+[rm]
+@import url(rm/viewer.properties)
+
+[ro]
+@import url(ro/viewer.properties)
+
+[ru]
+@import url(ru/viewer.properties)
+
+[rw]
+@import url(rw/viewer.properties)
+
+[sah]
+@import url(sah/viewer.properties)
+
+[si]
+@import url(si/viewer.properties)
+
+[sk]
+@import url(sk/viewer.properties)
+
+[sl]
+@import url(sl/viewer.properties)
+
+[son]
+@import url(son/viewer.properties)
+
+[sq]
+@import url(sq/viewer.properties)
+
+[sr]
+@import url(sr/viewer.properties)
+
+[sv-SE]
+@import url(sv-SE/viewer.properties)
+
+[sw]
+@import url(sw/viewer.properties)
+
+[ta]
+@import url(ta/viewer.properties)
+
+[ta-LK]
+@import url(ta-LK/viewer.properties)
+
+[te]
+@import url(te/viewer.properties)
+
+[th]
+@import url(th/viewer.properties)
+
+[tl]
+@import url(tl/viewer.properties)
+
+[tn]
+@import url(tn/viewer.properties)
+
+[tr]
+@import url(tr/viewer.properties)
+
+[uk]
+@import url(uk/viewer.properties)
+
+[ur]
+@import url(ur/viewer.properties)
+
+[vi]
+@import url(vi/viewer.properties)
+
+[wo]
+@import url(wo/viewer.properties)
+
+[xh]
+@import url(xh/viewer.properties)
+
+[zh-CN]
+@import url(zh-CN/viewer.properties)
+
+[zh-TW]
+@import url(zh-TW/viewer.properties)
+
+[zu]
+@import url(zu/viewer.properties)
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lt/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lt/viewer.properties
new file mode 100644
index 00000000..c78f4430
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lt/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Ankstesnis puslapis
+previous_label=Ankstesnis
+next.title=Kitas puslapis
+next_label=Kitas
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Puslapis:
+page_of=iš {{pageCount}}
+
+zoom_out.title=Sumažinti
+zoom_out_label=Sumažinti
+zoom_in.title=Padidinti
+zoom_in_label=Padidinti
+zoom.title=Mastelis
+presentation_mode.title=Pereiti į pateikties veikseną
+presentation_mode_label=Pateikties veiksena
+open_file.title=Atverti failÄ…
+open_file_label=Atverti
+print.title=Spausdinti
+print_label=Spausdinti
+download.title=Parsiųsti
+download_label=Parsiųsti
+bookmark.title=Esamojo rodinio saitas (kopijavimui ar atvÄ—rimui kitame lange)
+bookmark_label=Esamasis rodinys
+
+# Secondary toolbar and context menu
+tools.title=PriemonÄ—s
+tools_label=PriemonÄ—s
+first_page.title=Eiti į pirmą puslapį
+first_page.label=Eiti į pirmą puslapį
+first_page_label=Eiti į pirmą puslapį
+last_page.title=Eiti į paskutinį puslapį
+last_page.label=Eiti į paskutinį puslapį
+last_page_label=Eiti į paskutinį puslapį
+page_rotate_cw.title=Pasukti pagal laikrodžio rodyklę
+page_rotate_cw.label=Pasukti pagal laikrodžio rodyklę
+page_rotate_cw_label=Pasukti pagal laikrodžio rodyklę
+page_rotate_ccw.title=Pasukti prieš laikrodžio rodyklę
+page_rotate_ccw.label=Pasukti prieš laikrodžio rodyklę
+page_rotate_ccw_label=Pasukti prieš laikrodžio rodyklę
+
+hand_tool_enable.title=Įgalinti vilkimo veikseną
+hand_tool_enable_label=Įgalinti vilkimo veikseną
+hand_tool_disable.title=IÅ¡jungti vilkimo veiksenÄ…
+hand_tool_disable_label=IÅ¡jungti vilkimo veiksenÄ…
+
+# Document properties dialog box
+document_properties.title=Dokumento savybės…
+document_properties_label=Dokumento savybės…
+document_properties_file_name=Failo vardas:
+document_properties_file_size=Failo dydis:
+document_properties_kb={{size_kb}} KB ({{size_b}} B)
+document_properties_mb={{size_mb}} MB ({{size_b}} B)
+document_properties_title=Antraštė:
+document_properties_author=Autorius:
+document_properties_subject=Tema:
+document_properties_keywords=Reikšminiai žodžiai:
+document_properties_creation_date=Sukūrimo data:
+document_properties_modification_date=Modifikavimo data:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=KÅ«rÄ—jas:
+document_properties_producer=PDF generatorius:
+document_properties_version=PDF versija:
+document_properties_page_count=Puslapių skaiÄius:
+document_properties_close=Užverti
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Rodyti / slėpti šoninį polangį
+toggle_sidebar_label=Å oninis polangis
+outline.title=Rodyti dokumento metmenis
+outline_label=Dokumento metmenys
+attachments.title=Rodyti priedus
+attachments_label=Priedai
+thumbs.title=Rodyti puslapių miniatiūras
+thumbs_label=Miniatiūros
+findbar.title=Ieškoti dokumente
+findbar_label=Ieškoti
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title={{page}} puslapis
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}} puslapio miniatiūra
+
+# Find panel button title and messages
+find_label=Ieškoti:
+find_previous.title=Ieškoti ankstesnio frazės egzemplioriaus
+find_previous_label=Ankstesnis
+find_next.title=Ieškoti tolesnio frazės egzemplioriaus
+find_next_label=Tolesnis
+find_highlight=Viską paryškinti
+find_match_case_label=Skirti didžiąsias ir mažąsias raides
+find_reached_top=Pasiekus dokumento pradžią, paieška pratęsta nuo pabaigos
+find_reached_bottom=Pasiekus dokumento pabaigą, paieška pratęsta nuo pradžios
+find_not_found=Ieškoma frazė nerasta
+
+# Error panel labels
+error_more_info=IÅ¡samiau
+error_less_info=GlausÄiau
+error_close=Užverti
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v. {{version}} (darinys: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Pranešimas: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=DÄ—klas: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Failas: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=EilutÄ—: {{line}}
+rendering_error=Atvaizduojant puslapį, įvyko klaida.
+
+# Predefined zoom values
+page_scale_width=Priderinti prie lapo ploÄio
+page_scale_fit=Pritaikyti prie lapo dydžio
+page_scale_auto=Automatinis mastelis
+page_scale_actual=Tikras dydis
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Klaida
+loading_error=Įkeliant PDF failą, įvyko klaida.
+invalid_file_error=Tai nÄ—ra PDF failas arba jis yra sugadintas.
+missing_file_error=PDF failas nerastas.
+unexpected_response_error=NetikÄ—tas serverio atsakas.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[„{{type}}“ tipo anotacija]
+password_label=Įveskite slaptažodį šiam PDF failui atverti.
+password_invalid=Slaptažodis neteisingas. Bandykite dar kartą.
+password_ok=Gerai
+password_cancel=Atsisakyti
+
+printing_not_supported=Dėmesio! Spausdinimas šioje naršyklėje nėra pilnai realizuotas.
+printing_not_ready=Dėmesio! PDF failas dar nėra pilnai įkeltas spausdinimui.
+web_fonts_disabled=Neįgalinti saityno Å¡riftai – Å¡iame PDF faile esanÄių Å¡riftų naudoti negalima.
+document_colors_disabled=PDF dokumentams neleidžiama nurodyti savo spalvų, nes išjungta naršyklės nuostata „Leisti tinklalapiams nurodyti spalvas“.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lv/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lv/viewer.properties
new file mode 100644
index 00000000..ba57762e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/lv/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=IepriekÅ¡Ä“jÄ lapa
+previous_label=IepriekÅ¡Ä“jÄ
+next.title=NÄkamÄ lapa
+next_label=NÄkamÄ
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Lapa:
+page_of=no {{pageCount}}
+
+zoom_out.title=AttÄlinÄt\u0020
+zoom_out_label=AttÄlinÄt
+zoom_in.title=PietuvinÄt
+zoom_in_label=PietuvinÄt
+zoom.title=PalielinÄjums
+presentation_mode.title=PÄrslÄ“gties uz PrezentÄcijas režīmu
+presentation_mode_label=PrezentÄcijas režīms
+open_file.title=Atvērt failu
+open_file_label=Atvērt
+print.title=DrukÄÅ¡ana
+print_label=DrukÄt
+download.title=LejupielÄde
+download_label=LejupielÄdÄ“t
+bookmark.title=PaÅ¡reizÄ“jais skats (kopÄ“t vai atvÄ“rt jaunÄ logÄ)
+bookmark_label=Pašreizējais skats
+
+# Secondary toolbar and context menu
+tools.title=RÄ«ki
+tools_label=RÄ«ki
+first_page.title=Iet uz pirmo lapu
+first_page.label=Iet uz pirmo lapu
+first_page_label=Iet uz pirmo lapu
+last_page.title=Iet uz pēdējo lapu
+last_page.label=Iet uz pēdējo lapu
+last_page_label=Iet uz pēdējo lapu
+page_rotate_cw.title=Pagriezt pa pulksteni
+page_rotate_cw.label=Pagriezt pa pulksteni
+page_rotate_cw_label=Pagriezt pa pulksteni
+page_rotate_ccw.title=Pagriezt pret pulksteni
+page_rotate_ccw.label=Pagriezt pret pulksteni
+page_rotate_ccw_label=Pagriezt pret pulksteni
+
+hand_tool_enable.title=Aktivēt rokas rīku
+hand_tool_enable_label=Aktivēt rokas rīku
+hand_tool_disable.title=Deaktivēt rokas rīku
+hand_tool_disable_label=Deaktivēt rokas rīku
+
+# Document properties dialog box
+document_properties.title=Dokumenta iestatījumi…
+document_properties_label=Dokumenta iestatījumi…
+document_properties_file_name=Faila nosaukums:
+document_properties_file_size=Faila izmērs:
+document_properties_kb={{size_kb}} KB ({{size_b}} biti)
+document_properties_mb={{size_mb}} MB ({{size_b}} biti)
+document_properties_title=Nosaukums:
+document_properties_author=Autors:
+document_properties_subject=TÄ“ma:
+document_properties_keywords=AtslÄ“gas vÄrdi:
+document_properties_creation_date=Izveides datums:
+document_properties_modification_date=LAbošanas datums:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=RadÄ«tÄjs:
+document_properties_producer=PDF producents:
+document_properties_version=PDF versija:
+document_properties_page_count=Lapu skaits:
+document_properties_close=Aizvērt
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=PÄrslÄ“gt sÄnu joslu
+toggle_sidebar_label=PÄrslÄ“gt sÄnu joslu
+outline.title=ParÄdÄ«t dokumenta saturu
+outline_label=Dokumenta saturs
+attachments.title=RÄdÄ«t pielikumus
+attachments_label=Pielikumi
+thumbs.title=ParÄdÄ«t sÄ«ktÄ“lus
+thumbs_label=Sīktēli
+findbar.title=MeklÄ“t dokumentÄ
+findbar_label=Meklēt
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Lapa {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Lapas {{page}} sīktēls
+
+# Find panel button title and messages
+find_label=Meklēt:
+find_previous.title=Atrast iepriekšējo
+find_previous_label=IepriekÅ¡Ä“jÄ
+find_next.title=Atrast nÄkamo
+find_next_label=NÄkamÄ
+find_highlight=IekrÄsot visas
+find_match_case_label=Lielo, mazo burtu jutīgs
+find_reached_top=Sasniegts dokumenta sÄkums, turpinÄm no beigÄm
+find_reached_bottom=Sasniegtas dokumenta beigas, turpinÄm no sÄkuma
+find_not_found=FrÄze nav atrasta
+
+# Error panel labels
+error_more_info=VairÄk informÄcijas
+error_less_info=MAzÄk informÄcijas
+error_close=Close
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Ziņojums: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Steks: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=File: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Rindiņa: {{line}}
+rendering_error=AttÄ“lojot lapu radÄs kļūda
+
+# Predefined zoom values
+page_scale_width=Lapas platumÄ
+page_scale_fit=Ietilpinot lapu
+page_scale_auto=AutomÄtiskais izmÄ“rs
+page_scale_actual=Patiesais izmērs
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Kļūda
+loading_error=IelÄdÄ“jot PDF notika kļūda.
+invalid_file_error=NederÄ«gs vai bojÄts PDF fails.
+missing_file_error=PDF fails nav atrasts.
+unexpected_response_error=Negaidīa servera atbilde.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} anotÄcija]
+password_label=Ievadiet paroli, lai atvērtu PDF failu.
+password_invalid=Nepareiza parole, mēģiniet vēlreiz.
+password_ok=Labi
+password_cancel=Atcelt
+
+printing_not_supported=UzmanÄ«bu: DrukÄÅ¡ana no Å¡Ä« pÄrlÅ«ka darbojas tikai daļēji.
+printing_not_ready=UzmanÄ«bu: PDF nav pilnÄ«bÄ ielÄdÄ“ts drukÄÅ¡anai.
+web_fonts_disabled=Tīmekļa fonti nav aktivizēti: Nevar iegult PDF fontus.
+document_colors_disabled=PDF dokumentiem nav atļauts izmantot paÅ¡iem savas krÄsas: „Atļaut lapÄm izvÄ“lÄ“ties paÅ¡Äm savas krÄsas“ ir deaktivÄ“ts pÄrlÅ«kÄ.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mai/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mai/viewer.properties
new file mode 100644
index 00000000..564822fe
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mai/viewer.properties
@@ -0,0 +1,165 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=पछिला पृषà¥à¤ 
+previous_label=पछिला
+next.title=अगिला पृषà¥à¤ 
+next_label=आगाà¤
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=पृषà¥à¤ :
+page_of={{pageCount}} क
+
+zoom_out.title=छोट करू
+zoom_out_label=छोट करू
+zoom_in.title=पैघ करू
+zoom_in_label=जूम इन
+zoom.title=छोट-पैघ करू\u0020
+presentation_mode.title=पà¥à¤°à¤¸à¥à¤¤à¥à¤¤à¤¿ अवसà¥à¤¥à¤¾à¤®à¥‡ जाउ
+presentation_mode_label=पà¥à¤°à¤¸à¥à¤¤à¥à¤¤à¤¿ अवसà¥à¤¥à¤¾
+open_file.title=फाइल खोलू
+open_file_label=खोलू
+print.title=छापू
+print_label=छापू
+download.title=डाउनलोड
+download_label=डाउनलोड
+bookmark.title=मोजà¥à¤¦à¤¾ दृशà¥à¤¯ (नव विंडोमे नकल लिअ अथवा खोलू)
+bookmark_label=वरà¥à¤¤à¤®à¤¾à¤¨ दृशà¥à¤¯
+
+# Secondary toolbar and context menu
+tools.title=अओजार
+tools_label=अओजार
+first_page.title=पà¥à¤°à¤¥à¤® पृषà¥à¤  पर जाउ
+first_page.label=पà¥à¤°à¤¥à¤® पृषà¥à¤  पर जाउ
+first_page_label=पà¥à¤°à¤¥à¤® पृषà¥à¤  पर जाउ
+last_page.title=अंतिम पृषà¥à¤  पर जाउ
+last_page.label=अंतिम पृषà¥à¤  पर जाउ
+last_page_label=अंतिम पृषà¥à¤  पर जाउ
+page_rotate_cw.title=घड़ीक दिशा मे घà¥à¤®à¤¾à¤‰
+page_rotate_cw.label=घड़ीक दिशा मे घà¥à¤®à¤¾à¤‰
+page_rotate_cw_label=घड़ीक दिशा मे घà¥à¤®à¤¾à¤‰
+page_rotate_ccw.title=घड़ीक दिशा सठउनटा घà¥à¤®à¤¾à¤‰
+page_rotate_ccw.label=घड़ीक दिशा सठउनटा घà¥à¤®à¤¾à¤‰
+page_rotate_ccw_label=घड़ीक दिशा सठउनटा घà¥à¤®à¤¾à¤‰
+
+hand_tool_enable.title=हाथ अओजार सकà¥à¤°à¤¿à¤¯ करू
+hand_tool_enable_label=हाथ अओजार सकà¥à¤°à¤¿à¤¯ करू
+hand_tool_disable.title=हाथ अओजार निषà¥à¤•à¥à¤°à¤¿à¤¯ कà¤à¤¨à¤¾à¤‡
+hand_tool_disable_label=हाथ अओजार निषà¥à¤•à¥à¤°à¤¿à¤¯ कà¤à¤¨à¤¾à¤‡
+
+# Document properties dialog box
+document_properties.title=दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ विशेषता...
+document_properties_label=दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ विशेषता...
+document_properties_file_name=फाइल नाम:
+document_properties_file_size=फ़ाइल आकार:
+document_properties_kb={{size_kb}} KB ({{size_b}} बाइट)
+document_properties_mb={{size_mb}} MB ({{size_b}} बाइट)
+document_properties_title=शीरà¥à¤·à¤•:
+document_properties_author=लेखकः
+document_properties_subject=विषय
+document_properties_keywords=बीजशबà¥à¤¦
+document_properties_creation_date=निरà¥à¤®à¤¾à¤£ तिथि:
+document_properties_modification_date=संशोधन दिनांक:
+document_properties_date_string=तिथि/समय
+document_properties_creator=सृजक:
+document_properties_producer=PDF उतà¥à¤ªà¤¾à¤¦à¤•:
+document_properties_version=PDF संसà¥à¤•à¤°à¤£:
+document_properties_page_count=पृषà¥à¤  गिनती:
+document_properties_close=बनà¥à¤¨ करू
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=सà¥à¤²à¤¾à¤‡à¤¡à¤° टागल
+toggle_sidebar_label=सà¥à¤²à¤¾à¤‡à¤¡à¤° टागल
+outline.title=दसà¥à¤¤à¤¾à¤µà¥‡à¤œ आउटलाइन देखाउ
+outline_label=दसà¥à¤¤à¤¾à¤µà¥‡à¤œ खाका
+attachments.title=संलगà¥à¤¨à¤• देखाबू
+attachments_label=संलगà¥à¤¨à¤•
+thumbs.title=लघà¥-छवि देखाउ
+thumbs_label=लघॠछवि
+findbar.title=दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤®à¥‡ ढूà¤à¤¢à¥‚
+findbar_label=ताकू
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=पृषà¥à¤  {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=पृषà¥à¤  {{page}} का लघà¥-चितà¥à¤°
+
+# Find panel button title and messages
+find_label=ताकू:
+find_previous.title=खोजक पछिला उपसà¥à¤¥à¤¿à¤¤à¤¿ ताकू
+find_previous_label=पछिला
+find_next.title=खोजक अगिला उपसà¥à¤¥à¤¿à¤¤à¤¿ ताकू
+find_next_label=आगाà¤
+find_highlight=सभटा आलोकित करू
+find_match_case_label=मिलान सà¥à¤¥à¤¿à¤¤à¤¿
+find_reached_top=पृषà¥à¤ à¤• शीरà¥à¤· जाठपहà¥à¤à¤šà¤², तल सठजारी
+find_reached_bottom=पृषà¥à¤ à¤• तल मे जाठपहà¥à¤à¤šà¤², शीरà¥à¤· सठजारी
+find_not_found=वाकींश नहि भेटल
+
+# Error panel labels
+error_more_info=बेसी सूचना
+error_less_info=कम सूचना
+error_close=बनà¥à¤¨ करू
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=संदेश: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=सà¥à¤Ÿà¥ˆà¤•: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=फ़ाइल: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=पंकà¥à¤¤à¤¿: {{line}}
+rendering_error=पृषà¥à¤  रेंडरिंगक समय तà¥à¤°à¥à¤Ÿà¤¿ आà¤à¤².
+
+# Predefined zoom values
+page_scale_width=पृषà¥à¤  चओड़ाइ
+page_scale_fit=पृषà¥à¤  फिट
+page_scale_auto=सà¥à¤µà¤šà¤¾à¤²à¤¿à¤¤ जूम
+page_scale_actual=सही आकार
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+
+# Loading indicator messages
+loading_error_indicator=तà¥à¤°à¥à¤Ÿà¤¿
+loading_error=पीडीà¤à¤« लोड करैत समय à¤à¤•à¤Ÿà¤¾ तà¥à¤°à¥à¤Ÿà¤¿ भेल.
+invalid_file_error=अमानà¥à¤¯ अथवा भà¥à¤°à¤·à¥à¤Ÿ PDF फाइल.
+missing_file_error=अनà¥à¤ªà¤¸à¥à¤¥à¤¿à¤¤ PDF फाइल.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=à¤à¤¹à¤¿ पीडीà¤à¤« फ़ाइल केठखोलबाक लेल कृपया कूटशबà¥à¤¦ भरू.
+password_invalid=अवैध कूटशबà¥à¤¦, कृपया फिनॠकोशिश करू.
+password_ok=बेस
+password_cancel=रदà¥à¤¦ करू\u0020
+
+printing_not_supported=चेतावनी: ई बà¥à¤°à¤¾à¤‰à¤œà¤° पर छपाइ पूरà¥à¤£ तरह सठसमरà¥à¤¥à¤¿à¤¤ नहि अछि.
+printing_not_ready=चेतावनी: पीडीà¤à¤« छपाइक लेल पूरà¥à¤£ तरह सठलोड नहि अछि.
+web_fonts_disabled=वेब फॉनà¥à¤Ÿà¥à¤¸ निषà¥à¤•à¥à¤°à¤¿à¤¯ अछि: अंतःसà¥à¤¥à¤¾à¤ªà¤¿à¤¤ PDF फानà¥à¤Ÿà¤¸à¤• उपयोगमे असमरà¥à¤¥.
+document_colors_disabled=PDF दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ हà¥à¤•à¤° अपन रंग केठउपयोग करबाक लेल अनà¥à¤®à¤¤à¤¿ पà¥à¤°à¤¾à¤ªà¥à¤¤ नहि अछि: 'पृषà¥à¤  केठहà¥à¤•à¤° अपन रंग केठचà¥à¤¨à¤¬à¤¾à¤• लेल सà¥à¤µà¥€à¤•à¥ƒà¤¤à¤¿ दिअ जे ओ ओहि बà¥à¤°à¤¾à¤‰à¤œà¤¼à¤° मे निषà¥à¤•à¥à¤°à¤¿à¤¯ अछि.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mk/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mk/viewer.properties
new file mode 100644
index 00000000..18ded891
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mk/viewer.properties
@@ -0,0 +1,126 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Претходна Ñтраница
+previous_label=Претходна
+next.title=Следна Ñтраница
+next_label=Следна
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Страница:
+page_of=од {{pageCount}}
+
+zoom_out.title=Ðамалување
+zoom_out_label=Ðамали
+zoom_in.title=Зголемување
+zoom_in_label=Зголеми
+zoom.title=Променување на големина
+print.title=Печатење
+print_label=Печати
+open_file.title=Отварање датотека
+open_file_label=Отвори
+download.title=Преземање
+download_label=Преземи
+bookmark.title=Овој преглед (копирај или отвори во нов прозорец)
+bookmark_label=Овој преглед
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_slider.title=Вклучување на лизгач
+toggle_slider_label=Вклучи лизгач
+outline.title=Прикажување на Ñодржина на документот
+outline_label=Содржина на документот
+thumbs.title=Прикажување на икони
+thumbs_label=Икони
+
+# Document outline messages
+no_outline=Ðема Ñодржина
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Страница {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Икона од Ñтраница {{page}}
+
+# Error panel labels
+error_more_info=Повеќе информации
+error_less_info=Помалку информации
+error_close=Затвори
+# LOCALIZATION NOTE (error_build): "{{build}}" will be replaced by the PDF.JS
+# build ID.
+error_build=PDF.JS Build: {{build}}
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Порака: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Датотека: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Линија: {{line}}
+rendering_error=ÐаÑтана грешка при прикажувањето на Ñтраницата.
+
+# Predefined zoom values
+page_scale_width=Ширина на Ñтраница
+page_scale_fit=Цела Ñтраница
+page_scale_auto=ÐвтоматÑка големина
+page_scale_actual=ВиÑтинÑка големина
+
+loading_error_indicator=Грешка
+loading_error=ÐаÑтана грешка при вчитувањето на PDF-от.
+
+# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
+# "{{[type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type=[{{type}} Забелешка]
+request_password=PDF-от е заштитен Ñо лозинка:
+
+
+printing_not_supported=Предупредување: Печатењето не е целоÑно поддржано во овој прелиÑтувач.
+
+find_highlight=Означи ÑÑ
+
+# Find panel button title and messages
+find_label=Ðајди:
+find_match_case_label=Токму така
+find_next.title=Ðајди ја Ñледната појава на фразата
+find_next_label=Следно
+find_not_found=Фразата не е пронајдена
+find_previous.title=Ðајди ја предходната појава на фразата
+find_previous_label=Претходно
+find_reached_bottom=Барањето Ñтигна до крајот на документот и почнува од почеток
+find_reached_top=Барањето Ñтигна до почетокот на документот и почнува од крајот
+findbar.title=Ðајди во документот
+findbar_label=Ðајди
+
+# Context menu
+first_page.label=Оди до првата Ñтраница
+invalid_file_error=Ðевалидна или корумпирана PDF датотека.
+last_page.label=Оди до поÑледната Ñтраница
+page_rotate_ccw.label=Ротирај Ñпротивно од Ñтрелките на чаÑовникот
+page_rotate_cw.label=Ротирај по Ñтрелките на чаÑовникот
+presentation_mode.title=Премини во презентациÑки режим
+presentation_mode_label=ПрезентациÑки режим
+
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+missing_file_error=ÐедоÑтаÑува PDF документ.
+printing_not_ready=Предупредување: PDF документот не е целоÑно вчитан за печатење.
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Вклучи Ñтранична лента
+toggle_sidebar_label=Вклучи Ñтранична лента
+web_fonts_disabled=Интернет фонтовите Ñе оневозможени: не може да Ñе кориÑтат вградените PDF фонтови.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ml/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ml/viewer.properties
new file mode 100644
index 00000000..37630b61
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ml/viewer.properties
@@ -0,0 +1,165 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=à´®àµà´®àµà´ªàµà´³àµà´³ താളàµâ€
+previous_label=à´®àµà´®àµà´ªàµàµ
+next.title=à´…à´Ÿàµà´¤àµà´¤ താളàµâ€
+next_label=à´…à´Ÿàµà´¤àµà´¤à´¤àµàµ
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=താളàµâ€:
+page_of={{pageCount}}
+
+zoom_out.title=ചെറàµà´¤à´¾à´•àµà´•àµà´•
+zoom_out_label=ചെറàµà´¤à´¾à´•àµà´•àµà´•
+zoom_in.title=വലàµà´¤à´¾à´•àµà´•àµà´•
+zoom_in_label=വലàµà´¤à´¾à´•àµà´•àµà´•
+zoom.title=à´µàµà´¯à´¾à´ªàµà´¤à´¿ മാറàµà´±àµà´•
+presentation_mode.title=à´ªàµà´°à´¸à´¨àµà´±àµ‡à´·à´¨àµâ€ രീതിയിലേകàµà´•àµàµ മാറàµà´±àµà´•
+presentation_mode_label=à´ªàµà´°à´¸à´¨àµà´±àµ‡à´·à´¨àµâ€ രീതി
+open_file.title=ഫയലàµâ€ à´¤àµà´±à´•àµà´•àµà´•
+open_file_label=à´¤àµà´±à´•àµà´•àµà´•
+print.title=à´ªàµà´°à´¿à´¨àµà´±àµ ചെയàµà´¯àµà´•
+print_label=à´ªàµà´°à´¿à´¨àµà´±àµ ചെയàµà´¯àµà´•
+download.title=ഡൌണàµâ€à´²àµ‡à´¾à´¡àµ ചെയàµà´¯àµà´•
+download_label=ഡൌണàµâ€à´²àµ‡à´¾à´¡àµ ചെയàµà´¯àµà´•
+bookmark.title=നിലവിലàµà´³àµà´³ കാഴàµà´š (à´ªàµà´¤à´¿à´¯ ജാലകതàµà´¤à´¿à´²àµâ€ പകരàµâ€à´¤àµà´¤àµà´• à´…à´²àµà´²àµ†à´™àµà´•à´¿à´²àµâ€ à´¤àµà´±à´•àµà´•àµà´•)
+bookmark_label=നിലവിലàµà´³àµà´³ കാഴàµà´š
+
+# Secondary toolbar and context menu
+tools.title=ഉപകരണങàµà´™à´³àµâ€
+tools_label=ഉപകരണങàµà´™à´³àµâ€
+first_page.title=ആദàµà´¯à´¤àµà´¤àµ† താളിലേയàµà´•àµà´•àµàµ പോകàµà´•
+first_page.label=ആദàµà´¯à´¤àµà´¤àµ† താളിലേയàµà´•àµà´•àµàµ പോകàµà´•
+first_page_label=ആദàµà´¯à´¤àµà´¤àµ† താളിലേയàµà´•àµà´•àµàµ പോകàµà´•
+last_page.title=അവസാന താളിലേയàµà´•àµà´•àµàµ പോകàµà´•
+last_page.label=അവസാന താളിലേയàµà´•àµà´•àµàµ പോകàµà´•
+last_page_label=അവസാന താളിലേയàµà´•àµà´•àµàµ പോകàµà´•
+page_rotate_cw.title=ഘടികാരദിശയിലàµâ€ കറകàµà´•àµà´•
+page_rotate_cw.label=ഘടികാരദിശയിലàµâ€ കറകàµà´•àµà´•
+page_rotate_cw_label=ഘടികാരദിശയിലàµâ€ കറകàµà´•àµà´•
+page_rotate_ccw.title=ഘടികാര ദിശയàµà´•àµà´•àµàµ വിപരീതമായി കറകàµà´•àµà´•
+page_rotate_ccw.label=ഘടികാര ദിശയàµà´•àµà´•àµàµ വിപരീതമായി കറകàµà´•àµà´•
+page_rotate_ccw_label=ഘടികാര ദിശയàµà´•àµà´•àµàµ വിപരീതമായി കറകàµà´•àµà´•
+
+hand_tool_enable.title=ഹാനàµâ€à´¡àµ ടൂളàµâ€ à´ªàµà´°à´µà´°àµâ€à´¤àµà´¤à´¨ സജàµà´œà´®à´¾à´•àµà´•àµà´•
+hand_tool_enable_label=ഹാനàµâ€à´¡àµ ടൂളàµâ€ à´ªàµà´°à´µà´°àµâ€à´¤àµà´¤à´¨ സജàµà´œà´®à´¾à´•àµà´•àµà´•
+hand_tool_disable.title=ഹാനàµâ€à´¡àµ ടൂളàµâ€ à´ªàµà´°à´µà´°àµâ€à´¤àµà´¤à´¨ രഹിതമാകàµà´•àµà´•
+hand_tool_disable_label=ഹാനàµâ€à´¡àµ ടൂളàµâ€ à´ªàµà´°à´µà´°àµâ€à´¤àµà´¤à´¨ രഹിതമാകàµà´•àµà´•
+
+# Document properties dialog box
+document_properties.title=രേഖയàµà´Ÿàµ† വിശേഷതകളàµâ€...
+document_properties_label=രേഖയàµà´Ÿàµ† വിശേഷതകളàµâ€...
+document_properties_file_name=ഫയലിനàµà´±àµ† പേരàµâ€Œ:
+document_properties_file_size=ഫയലിനàµà´±àµ† വലിപàµà´ªà´‚:‌‌
+document_properties_kb={{size_kb}} കെബി ({{size_b}} ബൈറàµà´±àµà´•à´³àµâ€)
+document_properties_mb={{size_mb}} എംബി ({{size_b}} ബൈറàµà´±àµà´•à´³àµâ€)
+document_properties_title=തലകàµà´•àµ†à´Ÿàµà´Ÿàµâ€Œ\u0020
+document_properties_author=രചയിതാവàµ:
+document_properties_subject=വിഷയം:
+document_properties_keywords=കീവേരàµâ€à´¡àµà´•à´³àµâ€:
+document_properties_creation_date=പൂരàµâ€à´¤àµà´¤à´¿à´¯à´¾à´•àµà´¨àµà´¨ തീയതി:
+document_properties_modification_date=മാറàµà´±à´‚ വരàµà´¤àµà´¤à´¿à´¯ തീയതി:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=സൃഷàµà´Ÿà´¿à´•à´°àµâ€à´¤àµà´¤à´¾à´µàµ:
+document_properties_producer=പിഡിഎഫൠപàµà´°àµŠà´¡àµà´¯àµ‚സരàµâ€:
+document_properties_version=പിഡിഎഫൠപതിപàµà´ªàµ:
+document_properties_page_count=താളിനàµà´±àµ† à´Žà´£àµà´£à´‚:
+document_properties_close=à´…à´Ÿà´¯àµà´•àµà´•àµà´•
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=സൈഡൠബാറിലേകàµà´•àµàµ മാറàµà´±àµà´•
+toggle_sidebar_label=സൈഡൠബാറിലേകàµà´•àµàµ മാറàµà´±àµà´•
+outline.title=രേഖയàµà´Ÿàµ† ഔടàµà´Ÿàµà´²àµˆà´¨àµâ€ കാണിയàµà´•àµà´•àµà´•
+outline_label=രേഖയàµà´Ÿàµ† ഔടàµà´Ÿàµà´²àµˆà´¨àµâ€
+attachments.title=à´…à´±àµà´±à´¾à´šàµà´®àµ†à´¨àµà´±àµà´•à´³àµâ€ കാണിയàµà´•àµà´•àµà´•
+attachments_label=à´…à´±àµà´±à´¾à´šàµà´®àµ†à´¨àµà´±àµà´•à´³àµâ€
+thumbs.title=തംബàµà´¨àµ†à´¯à´¿à´²àµà´•à´³àµâ€ കാണിയàµà´•àµà´•àµà´•
+thumbs_label=തംബàµà´¨àµ†à´¯à´¿à´²àµà´•à´³àµâ€
+findbar.title=രേഖയിലàµâ€ à´•à´£àµà´Ÿàµà´ªà´¿à´Ÿà´¿à´¯àµà´•àµà´•àµà´•
+findbar_label=à´•à´£àµà´Ÿàµ†à´¤àµà´¤àµà´•\u0020
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=താളàµâ€ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}} താളിനàµà´³àµà´³ തംബàµà´¨àµ†à´¯à´¿à´²àµâ€
+
+# Find panel button title and messages
+find_label=à´•à´£àµà´Ÿàµ†à´¤àµà´¤àµà´•
+find_previous.title=വാചകം ഇതിനൠമàµà´¨àµâ€à´ªàµâ€Œ ആവരàµâ€à´¤àµà´¤à´¿à´šàµà´šà´¤àµâ€Œ à´•à´£àµà´Ÿàµ†à´¤àµà´¤àµà´•\u0020
+find_previous_label=à´®àµà´®àµà´ªàµàµ
+find_next.title=വാചകം വീണàµà´Ÿàµà´‚ ആവരàµâ€à´¤àµà´¤à´¿à´•àµà´•àµà´¨àµà´¨à´¤àµâ€Œ à´•à´£àµà´Ÿàµ†à´¤àµà´¤àµà´•\u0020
+find_next_label=à´…à´Ÿàµà´¤àµà´¤à´¤àµàµ
+find_highlight=à´Žà´²àµà´²à´¾à´‚ à´Žà´Ÿàµà´¤àµà´¤àµà´•à´¾à´£à´¿à´¯àµà´•àµà´•àµà´•
+find_match_case_label=à´…à´•àµà´·à´°à´™àµà´™à´³àµâ€ à´’à´¤àµà´¤àµà´¨àµ‹à´•àµà´•àµà´•
+find_reached_top=രേഖയàµà´Ÿàµ† à´®àµà´•à´³à´¿à´²àµâ€ à´Žà´¤àµà´¤à´¿à´¯à´¿à´°à´¿à´•àµà´•àµà´¨àµà´¨àµ, താഴെ നിനàµà´¨àµà´‚ à´¤àµà´Ÿà´°àµà´¨àµà´¨àµ
+find_reached_bottom=രേഖയàµà´Ÿàµ† അവസാനം വരെ à´Žà´¤àµà´¤à´¿à´¯à´¿à´°à´¿à´•àµà´•àµà´¨àµà´¨àµ, à´®àµà´•à´³à´¿à´²àµâ€ നിനàµà´¨àµà´‚ à´¤àµà´Ÿà´°àµà´¨àµà´¨àµ\u0020
+find_not_found=വാചകം à´•à´£àµà´Ÿàµ†à´¤àµà´¤à´¾à´¨à´¾à´¯à´¿à´²àµà´²\u0020
+
+# Error panel labels
+error_more_info=കൂടàµà´¤à´²àµâ€ വിവരം
+error_less_info=à´•àµà´±à´šàµà´šàµ വിവരം
+error_close=à´…à´Ÿà´¯àµà´•àµà´•àµà´•
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=സനàµà´¦àµ‡à´¶à´‚: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=à´¸àµà´±àµà´±à´¾à´•àµà´•àµ: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ഫയലàµâ€: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=വരി: {{line}}
+rendering_error=താളàµâ€ റെണàµà´Ÿà´°àµâ€ ചെയàµà´¯àµà´®àµà´ªàµ‹à´³àµâ€â€Œ പിശകàµà´£àµà´Ÿà´¾à´¯à´¿à´°à´¿à´¯àµà´•àµà´•àµà´¨àµà´¨àµ.
+
+# Predefined zoom values
+page_scale_width=താളിനàµà´±àµ† വീതി
+page_scale_fit=താളàµâ€ പാകതàµà´¤à´¿à´¨à´¾à´•àµà´•àµà´•
+page_scale_auto=à´¸àµà´µà´¯à´®à´¾à´¯à´¿ വലàµà´¤à´¾à´•àµà´•àµà´•
+page_scale_actual=യഥാരàµâ€à´¤àµà´¥ à´µàµà´¯à´¾à´ªàµà´¤à´¿
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+
+# Loading indicator messages
+loading_error_indicator=പിശകàµ
+loading_error=പിഡിഎഫൠലഭàµà´¯à´®à´¾à´•àµà´•àµà´®àµà´ªàµ‹à´³àµâ€ പിശകൠഉണàµà´Ÿà´¾à´¯à´¿à´°à´¿à´¯àµà´•àµà´•àµà´¨àµà´¨àµ.
+invalid_file_error=തെറàµà´±à´¾à´¯ à´…à´²àµà´²àµ†à´™àµà´•à´¿à´²àµâ€ തകരാറàµà´³àµà´³ പിഡിഎഫൠഫയലàµâ€.
+missing_file_error=പിഡിഎഫൠഫയലàµâ€ ലഭàµà´¯à´®à´²àµà´².
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=à´ˆ പിഡിഎഫൠഫയലàµâ€ à´¤àµà´±à´•àµà´•àµà´¨àµà´¨à´¤à´¿à´¨àµàµ രഹസàµà´¯à´µà´¾à´•àµà´•àµ നലàµâ€à´•àµà´•.
+password_invalid=തെറàµà´±à´¾à´¯ രഹസàµà´¯à´µà´¾à´•àµà´•àµ, ദയവായി വീണàµà´Ÿàµà´‚ à´¶àµà´°à´®à´¿à´¯àµà´•àµà´•àµà´•.
+password_ok=ശരി
+password_cancel=റദàµà´¦à´¾à´•àµà´•àµà´•
+
+printing_not_supported=à´®àµà´¨àµà´¨à´±à´¿à´¯à´¿à´ªàµà´ªàµàµ: à´ˆ à´¬àµà´°àµŒà´¸à´°àµâ€ പൂരàµâ€à´£àµà´£à´®à´¾à´¯à´¿ à´ªàµà´°à´¿à´¨àµà´±à´¿à´™àµ പിനàµà´¤àµà´£à´¯àµà´•àµà´•àµà´¨àµà´¨à´¿à´²àµà´².
+printing_not_ready=à´®àµà´¨àµà´¨à´±à´¿à´¯à´¿à´ªàµà´ªàµàµ: à´ªàµà´°à´¿à´¨àµà´±àµ ചെയàµà´¯àµà´¨àµà´¨à´¤à´¿à´¨àµàµ പിഡിഎഫൠപൂരàµâ€à´£àµà´£à´®à´¾à´¯à´¿ ലഭàµà´¯à´®à´²àµà´².
+web_fonts_disabled=വെബിനàµà´³àµà´³ à´…à´•àµà´·à´°à´¸à´žàµà´šà´¯à´™àµà´™à´³àµâ€ à´ªàµà´°à´µà´°àµâ€à´¤àµà´¤à´¨ രഹിതം: എംബഡàµà´¡àµ ചെയàµà´¤ പിഡിഎഫൠഅകàµà´·à´°à´¸à´žàµà´šà´¯à´™àµà´™à´³àµâ€ ഉപയോഗിയàµà´•àµà´•àµà´µà´¾à´¨àµâ€ സാധàµà´¯à´®à´²àµà´².
+document_colors_disabled=à´¸àµà´µà´¨àµà´¤à´‚ നിറങàµà´™à´³àµâ€ ഉപയോഗിയàµà´•àµà´•àµà´µà´¾à´¨àµâ€ പിഡിഎഫൠരേഖകളàµâ€à´•àµà´•àµàµ à´…à´¨àµà´µà´¾à´¦à´®à´¿à´²àµà´²: 'à´¸àµà´µà´¨àµà´¤à´‚ നിറങàµà´™à´³àµâ€ ഉപയോഗിയàµà´•àµà´•àµà´µà´¾à´¨àµâ€ താളàµà´•à´³àµ† à´…à´¨àµà´µà´¦à´¿à´¯àµà´•àµà´•àµà´•' à´Žà´¨àµà´¨à´¤àµàµ à´¬àµà´°àµŒà´¸à´±à´¿à´²àµâ€ നിരàµâ€à´œàµ€à´µà´®à´¾à´£àµàµ.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mn/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mn/viewer.properties
new file mode 100644
index 00000000..f0366444
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mn/viewer.properties
@@ -0,0 +1,65 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+
+zoom.title=ТÑлÑлт
+open_file.title=Файл нÑÑ
+open_file_label=ÐÑÑ
+
+# Secondary toolbar and context menu
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+findbar_label=Ол
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+
+# Find panel button title and messages
+find_previous.title=Хайлтын өмнөх олдцыг харуулна
+find_next.title=Хайлтын дараагийн олдцыг харуулна
+find_not_found=ОлдÑонгүй
+
+# Error panel labels
+error_more_info=ÐÑмÑлт мÑдÑÑлÑл
+error_close=Хаа
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+
+# Predefined zoom values
+
+# Loading indicator messages
+loading_error_indicator=Ðлдаа
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mr/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mr/viewer.properties
new file mode 100644
index 00000000..0e6f72ff
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/mr/viewer.properties
@@ -0,0 +1,165 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=मागील पृषà¥à¤ 
+previous_label=मागील
+next.title=पà¥à¤¢à¥€à¤² पृषà¥à¤ 
+next_label=पà¥à¤¢à¥€à¤²
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=पृषà¥à¤ :
+page_of=पैकी {{pageCount}}
+
+zoom_out.title=छोटे करा
+zoom_out_label=छोटे करा
+zoom_in.title=मोठे करा
+zoom_in_label=मोठे करा
+zoom.title=लहान किंवा मोठे करा
+presentation_mode.title=पà¥à¤°à¤¸à¥à¤¤à¥à¤¤à¤¿à¤•à¤°à¤£ मोडचा वापर करा
+presentation_mode_label=पà¥à¤°à¤¸à¥à¤¤à¥à¤¤à¤¿à¤•à¤°à¤£ मोड
+open_file.title=फाइल उघडा
+open_file_label=उघडा
+print.title=छपाई करा
+print_label=छपाई करा
+download.title=डाउनलोड करा
+download_label=डाउनलोड करा
+bookmark.title=सधà¥à¤¯à¤¾à¤šà¥‡ अवलोकन (नविन पटलात पà¥à¤°à¤¤ बनवा किंवा उघडा)
+bookmark_label=सधà¥à¤¯à¤¾à¤šà¥‡ अवलोकन
+
+# Secondary toolbar and context menu
+tools.title=साधने
+tools_label=साधने
+first_page.title=पहिलà¥à¤¯à¤¾ पानावर जा
+first_page.label=पहिलà¥à¤¯à¤¾ पानावर जा
+first_page_label=पहिलà¥à¤¯à¤¾ पानावर जा
+last_page.title=शेवटचà¥à¤¯à¤¾ पानावर जा
+last_page.label=शेवटचà¥à¤¯à¤¾ पानावर जा
+last_page_label=शेवटचà¥à¤¯à¤¾ पानावर जा
+page_rotate_cw.title=घडà¥à¤¯à¤¾à¤³à¤¾à¤šà¥à¤¯à¤¾ काटà¥à¤¯à¤¾à¤šà¥à¤¯à¤¾ दिशेने फिरवा
+page_rotate_cw.label=घडà¥à¤¯à¤¾à¤³à¤¾à¤šà¥à¤¯à¤¾ काटà¥à¤¯à¤¾à¤šà¥à¤¯à¤¾ दिशेने फिरवा
+page_rotate_cw_label=घडà¥à¤¯à¤¾à¤³à¤¾à¤šà¥à¤¯à¤¾ काटà¥à¤¯à¤¾à¤šà¥à¤¯à¤¾ दिशेने फिरवा
+page_rotate_ccw.title=घडà¥à¤¯à¤¾à¤³à¤¾à¤šà¥à¤¯à¤¾ काटà¥à¤¯à¤¾à¤šà¥à¤¯à¤¾ उलट दिशेने फिरवा
+page_rotate_ccw.label=घडà¥à¤¯à¤¾à¤³à¤¾à¤šà¥à¤¯à¤¾ काटà¥à¤¯à¤¾à¤šà¥à¤¯à¤¾ उलट दिशेने फिरवा
+page_rotate_ccw_label=घडà¥à¤¯à¤¾à¤³à¤¾à¤šà¥à¤¯à¤¾ काटà¥à¤¯à¤¾à¤šà¥à¤¯à¤¾ उलट दिशेने फिरवा
+
+hand_tool_enable.title=हात साधन सà¥à¤°à¥‚ करा
+hand_tool_enable_label=हात साधन सà¥à¤°à¥‚ करा
+hand_tool_disable.title=हात साधन बंद करा
+hand_tool_disable_label=हात साधन बंद करा
+
+# Document properties dialog box
+document_properties.title=दसà¥à¤¤à¤à¤µà¤œ गà¥à¤£à¤§à¤°à¥à¤®â€¦
+document_properties_label=दसà¥à¤¤à¤à¤µà¤œ गà¥à¤£à¤§à¤°à¥à¤®â€¦
+document_properties_file_name=फाइलचे नाव:
+document_properties_file_size=फाइल आकार:
+document_properties_kb={{size_kb}} KB ({{size_b}} बाइटà¥à¤¸)
+document_properties_mb={{size_mb}} MB ({{size_b}} बाइटà¥à¤¸)
+document_properties_title=शिरà¥à¤·à¤•:
+document_properties_author=लेखक:
+document_properties_subject=विषय:
+document_properties_keywords=मà¥à¤–à¥à¤¯à¤¶à¤¬à¥à¤¦:
+document_properties_creation_date=निरà¥à¤®à¤¾à¤£ दिनांक:
+document_properties_modification_date=दà¥à¤°à¥‚सà¥à¤¤à¥€ दिनांक:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=निरà¥à¤®à¤¾à¤¤à¤¾:
+document_properties_producer=PDF निरà¥à¤®à¤¾à¤¤à¤¾:
+document_properties_version=PDF आवृतà¥à¤¤à¥€:
+document_properties_page_count=पृषà¥à¤  संखà¥à¤¯à¤¾:
+document_properties_close=बंद करा
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=बाजूचीपटà¥à¤Ÿà¥€ टॉगल करा
+toggle_sidebar_label=बाजूचीपटà¥à¤Ÿà¥€ टॉगल करा
+outline.title=दसà¥à¤¤à¤à¤µà¤œ रूपरेषा दाखवा
+outline_label=दसà¥à¤¤à¤à¤µà¤œ रूपरेषा
+attachments.title=जोडपतà¥à¤° दाखवा
+attachments_label=जोडपतà¥à¤°
+thumbs.title=थंबनेलà¥à¤¸à¥ दाखवा
+thumbs_label=थंबनेलà¥à¤¸à¥
+findbar.title=दसà¥à¤¤à¤à¤µà¤œà¤¾à¤¤ शोधा
+findbar_label=शोधा
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=पृषà¥à¤  {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=पृषà¥à¤ à¤¾à¤šà¥‡ थंबनेल {{page}}
+
+# Find panel button title and messages
+find_label=शोधा:
+find_previous.title=वाकपà¥à¤°à¤¯à¥‹à¤—ची मागील घटना शोधा
+find_previous_label=मागील
+find_next.title=वाकपà¥à¤°à¤¯à¥‹à¤—ची पà¥à¤¢à¥€à¤² घटना शोधा
+find_next_label=पà¥à¤¢à¥€à¤²
+find_highlight=सरà¥à¤µ ठळक करा
+find_match_case_label=आकार जà¥à¤³à¤µà¤¾
+find_reached_top=दसà¥à¤¤à¤à¤µà¤œà¤¾à¤šà¥à¤¯à¤¾ शीरà¥à¤·à¤•à¤¾à¤¸ पोहचले, तळपासून पà¥à¤¢à¥‡
+find_reached_bottom=दसà¥à¤¤à¤à¤µà¤œà¤¾à¤šà¥à¤¯à¤¾ तळाला पोहचले, शीरà¥à¤·à¤•à¤¾à¤ªà¤¾à¤¸à¥‚न पà¥à¤¢à¥‡
+find_not_found=वाकपà¥à¤°à¤¯à¥‹à¤— आढळले नाही
+
+# Error panel labels
+error_more_info=आणखी माहिती
+error_less_info=कमी माहिती
+error_close=बंद करा
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=संदेश: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=सà¥à¤Ÿà¥…क: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=फाइल: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=रेष: {{line}}
+rendering_error=पृषà¥à¤  दाखवतेवेळी तà¥à¤°à¥à¤Ÿà¥€ आढळली.
+
+# Predefined zoom values
+page_scale_width=पृषà¥à¤ à¤¾à¤šà¥€ रूंदी
+page_scale_fit=पृषà¥à¤  बसवा
+page_scale_auto=सà¥à¤µà¤¯à¤‚ लाहन किंवा मोठे करणे
+page_scale_actual=पà¥à¤°à¤¤à¥à¤¯à¤•à¥à¤· आकार
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+
+# Loading indicator messages
+loading_error_indicator=तà¥à¤°à¥à¤Ÿà¥€
+loading_error=PDF लोड करतेवेळी तà¥à¤°à¥à¤Ÿà¥€ आढळली.
+invalid_file_error=अवैध किंवा दोषीत PDF फाइल.
+missing_file_error=न आढळणारी PDF फाइल.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} टिपणà¥à¤£à¥€]
+password_label=ही PDF फाइल उघडणà¥à¤¯à¤¾à¤•à¤°à¤¿à¤¤à¤¾ पासवरà¥à¤¡ दà¥à¤¯à¤¾.
+password_invalid=अवैध पासवरà¥à¤¡. कृपया पà¥à¤¨à¥à¤¹à¤¾ पà¥à¤°à¤¯à¤¤à¥à¤¨ करा.
+password_ok=ठीक आहे
+password_cancel=रदà¥à¤¦ करा
+
+printing_not_supported=सावधानता: या बà¥à¤°à¤¾à¤‰à¤œà¤°à¤¤à¤°à¥à¤«à¥‡ छपाइ पूरà¥à¤£à¤ªà¤£à¥‡ समरà¥à¤¥à¥€à¤¤ नाही.
+printing_not_ready=सावधानता: छपाईकरिता PDF पूरà¥à¤£à¤¤à¤¯à¤¾ लोड à¤à¤¾à¤²à¥‡ नाही.
+web_fonts_disabled=वेब फाà¤à¤Ÿà¥à¤¸ असमरà¥à¤¥à¥€à¤¤ आहेत: à¤à¤®à¥à¤¬à¥‡à¤¡à¥‡à¤¡ PDF फाà¤à¤Ÿà¥à¤¸à¥à¤šà¤¾ वापर अशकà¥à¤¯.
+document_colors_disabled=PDF दसà¥à¤¤à¤¾à¤à¤µà¤œà¤¾à¤‚ना तà¥à¤¯à¤¾à¤‚चे रंग वापरणà¥à¤¯à¤¾à¤¸ अनà¥à¤®à¤¤à¥€ नाही: बà¥à¤°à¤¾à¤‰à¤œà¤°à¤®à¤§à¥à¤¯à¥‡ ' पानांना तà¥à¤¯à¤¾à¤‚चे रंग निवडणà¥à¤¯à¤¾à¤¸ अनà¥à¤®à¤¤à¥€ दà¥à¤¯à¤¾' बंद केले आहे.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ms/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ms/viewer.properties
new file mode 100644
index 00000000..fd15e5d0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ms/viewer.properties
@@ -0,0 +1,165 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Laman Sebelumnya
+previous_label=Terdahulu
+next.title=Laman seterusnya
+next_label=Berikut
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Laman:
+page_of=daripada {{pageCount}}
+
+zoom_out.title=Zum Keluar
+zoom_out_label=Zum Keluar
+zoom_in.title=Zum Masuk
+zoom_in_label=Zum Masuk
+zoom.title=Zum
+presentation_mode.title=Bertukar ke Mod Persembahan
+presentation_mode_label=Mod Persembahan
+open_file.title=Buka Fail
+open_file_label=Buka
+print.title=Cetak
+print_label=Cetak
+download.title=Muat turun
+download_label=Muat turun
+bookmark.title=Pandangan semasa (salinan atau dibuka dalam tetingkap baru)
+bookmark_label=Lihat semasa
+
+# Secondary toolbar and context menu
+tools.title=Alatan
+tools_label=Alatan
+first_page.title=Pergi ke Halaman Pertama
+first_page.label=Pergi ke Halaman Pertama
+first_page_label=Pergi ke Halaman Pertama
+last_page.title=Pergi ke Halaman Terakhir
+last_page.label=Pergi ke Halaman Terakhir
+last_page_label=Pergi ke Halaman Terakhir
+page_rotate_cw.title=Berputar ikut arah Jam
+page_rotate_cw.label=Berputar ikut arah Jam
+page_rotate_cw_label=Berputar ikut arah Jam
+page_rotate_ccw.title=Pusing berlawan arah jam
+page_rotate_ccw.label=Pusing berlawan arah jam
+page_rotate_ccw_label=Pusing berlawan arah jam
+
+hand_tool_enable.title=Bolehkan alatan tangan
+hand_tool_enable_label=Bolehkan alatan tangan
+hand_tool_disable.title=Lumpuhkan alatan tangan
+hand_tool_disable_label=Lumpuhkan alatan tangan
+
+# Document properties dialog box
+document_properties.title=Ciri Dokumen…
+document_properties_label=Ciri Dokumen…
+document_properties_file_name=Nama fail:
+document_properties_file_size=Saiz fail:
+document_properties_kb={{size_kb}} KB ({{size_b}} bait)
+document_properties_mb={{size_mb}} MB ({{size_b}} bait)
+document_properties_title=Tajuk:
+document_properties_author=Pengarang:
+document_properties_subject=Subjek:
+document_properties_keywords=Kata kunci:
+document_properties_creation_date=Masa Dicipta:
+document_properties_modification_date=Tarikh Ubahsuai:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Pencipta:
+document_properties_producer=Pengeluar PDF:
+document_properties_version=Versi PDF:
+document_properties_page_count=Kiraan Laman:
+document_properties_close=Tutup
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Togol Bar Sisi
+toggle_sidebar_label=Togol Bar Sisi
+outline.title=Tunjuk Rangka Dokumen
+outline_label=Rangka Dokument
+attachments.title=Tunjuk Lampiran
+attachments_label=Lampiran
+thumbs.title=Tunjuk Imej kecil
+thumbs_label=Imej kecil
+findbar.title=Cari didalam Dokumen
+findbar_label=Cari
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Halaman {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Halaman Imej kecil {{page}}
+
+# Find panel button title and messages
+find_label=Cari:
+find_previous.title=Cari teks frasa berkenaan yang terdahulu
+find_previous_label=Sebelumnya
+find_next.title=Cari teks frasa berkenaan yang berikut
+find_next_label=Berikut
+find_highlight=Serlahkan semua
+find_match_case_label=Kes Sepadan
+find_reached_top=Mencapai teratas daripada dokumen, sambungan daripada bawah
+find_reached_bottom=Mencapai terakhir daripada dokumen, sambungan daripada atas
+find_not_found=Frasa tidak ditemui
+
+# Error panel labels
+error_more_info=Maklumat lanjut
+error_less_info=Kurang Informasi
+error_close=Tutup
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mesej: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Timbun: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fail: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Garis: {{line}}
+rendering_error=Ralat berlaku ketika memberikan halaman.
+
+# Predefined zoom values
+page_scale_width=Lebar Halaman
+page_scale_fit=Muat Halaman
+page_scale_auto=Zoom Automatik
+page_scale_actual=Saiz Sebenar
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+
+# Loading indicator messages
+loading_error_indicator=Ralat
+loading_error=Masalah berlaku semasa menuatkan sebuah PDF.
+invalid_file_error=Tidak sah atau fail PDF rosak.
+missing_file_error=Fail PDF Hilang.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Anotasi]
+password_label=Masukan kata kunci untuk membuka fail PDF ini.
+password_invalid=Kata laluan salah. Cuba lagi.
+password_ok=OK
+password_cancel=Batal
+
+printing_not_supported=Amaran: Cetakan ini tidak sepenuhnya disokong oleh pelayar ini.
+printing_not_ready=Amaran: PDF tidak sepenuhnya dimuatkan untuk dicetak.
+web_fonts_disabled=Fon web dilumpuhkan: tidak dapat fon PDF terbenam.
+document_colors_disabled=Dokumen PDF tidak dibenarkan untuk menggunakan warna sendiri: 'Benarkan muka surat untuk memilih warna sendiri' telah dinyahaktif dalam pelayar.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/my/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/my/viewer.properties
new file mode 100644
index 00000000..18c69e93
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/my/viewer.properties
@@ -0,0 +1,166 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=အရင် စာမျက်နှာ
+previous_label=အရင်နေရာ
+next.title=ရှေ့ စာမျက်နှာ
+next_label=နောက်á€á€á€¯
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=စာမျက်နှာ -
+page_of=á {{pageCount}}
+
+zoom_out.title=á€á€»á€¯á€¶á€·á€•á€«
+zoom_out_label=á€á€»á€¯á€¶á€·á€•á€«
+zoom_in.title=á€á€»á€²á€·á€•á€«
+zoom_in_label=á€á€»á€²á€·á€•á€«
+zoom.title=á€á€»á€¯á€¶á€·/á€á€»á€²á€·á€•á€«
+presentation_mode.title=Switch to Presentation Mode
+presentation_mode_label=Presentation Mode
+open_file.title=ဖိုင်အားဖွင့်ပါá‹
+open_file_label=ဖွင့်ပါ
+print.title=ပုံနှိုပ်ပါ
+print_label=ပုံနှိုပ်ပါ
+download.title=ကူးဆွဲ
+download_label=ကူးဆွဲ
+bookmark.title=လက်ရှိ မြင်ကွင်း (á€á€„်းဒိုးအသစ်မှာ ကူးပါ သို့မဟုá€á€º ဖွင့်ပါ)
+bookmark_label=လက်ရှိ မြင်ကွင်း
+
+# Secondary toolbar and context menu
+tools.title=ကိရိယာများ
+tools_label=ကိရိယာများ
+first_page.title=ပထမ စာမျက်နှာသို့
+first_page.label=ပထမ စာမျက်နှာသို့
+first_page_label=ပထမ စာမျက်နှာသို့
+last_page.title=နောက်ဆုံး စာမျက်နှာသို့
+last_page.label=နောက်ဆုံး စာမျက်နှာသို့
+last_page_label=နောက်ဆုံး စာမျက်နှာသို့
+page_rotate_cw.title=နာရီလက်á€á€¶ အá€á€­á€¯á€„်း
+page_rotate_cw.label=နာရီလက်á€á€¶ အá€á€­á€¯á€„်း
+page_rotate_cw_label=နာရီလက်á€á€¶ အá€á€­á€¯á€„်း
+page_rotate_ccw.title=နာရီလက်á€á€¶ ပြောင်းပြန်
+page_rotate_ccw.label=နာရီလက်á€á€¶ ပြောင်းပြန်
+page_rotate_ccw_label=နာရီလက်á€á€¶ ပြောင်းပြန်
+
+hand_tool_enable.title=လက်ကိုင် ကိရိယာအားသုံး
+hand_tool_enable_label=လက်ကိုင် ကိရိယာဖွင့်
+hand_tool_disable.title=လက်ကိုင် ကိရိယာအားပိá€á€º
+hand_tool_disable_label=လက်ကိုင်ကိရိယာ အားပိá€á€º
+
+# Document properties dialog box
+document_properties.title=မှá€á€ºá€á€™á€ºá€¸á€™á€¾á€á€ºá€›á€¬ ဂုá€á€ºá€žá€á€¹á€á€­á€™á€»á€¬á€¸
+document_properties_label=မှá€á€ºá€á€™á€ºá€¸á€™á€¾á€á€ºá€›á€¬ ဂုá€á€ºá€žá€á€¹á€á€­á€™á€»á€¬á€¸
+document_properties_file_name=ဖိုင် :
+document_properties_file_size=ဖိုင်ဆိုဒ် :
+document_properties_kb={{size_kb}} ကီလိုဘိုá€á€º ({size_kb}}ဘိုá€á€º)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=á€á€±á€«á€„်းစဉ်‌ -
+document_properties_author=ရေးသားသူ:
+document_properties_subject=အကြောင်းအရာ:\u0020
+document_properties_keywords=သော့á€á€»á€€á€º စာလုံး:
+document_properties_creation_date=ထုá€á€ºá€œá€¯á€•á€ºá€›á€€á€ºá€…ွဲ:
+document_properties_modification_date=ပြင်ဆင်ရက်စွဲ:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=ဖန်á€á€®á€¸á€žá€°:
+document_properties_producer=PDF ထုá€á€ºá€œá€¯á€•á€ºá€žá€°:
+document_properties_version=PDF ဗားရှင်း:
+document_properties_page_count=စာမျက်နှာအရေအá€á€½á€€á€º:
+document_properties_close=ပိá€á€º
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=ဘေးá€á€”်းဖွင့်ပိá€á€º
+toggle_sidebar_label=ဖွင့်ပိá€á€º ဆလိုက်ဒါ
+outline.title=စာá€á€™á€ºá€¸ မူကြမ်း ကိုပြပါ
+outline_label=စာá€á€™á€ºá€¸ မူကြမ်း
+attachments.title=á€á€½á€²á€á€»á€€á€ºá€™á€»á€¬á€¸ ပြပါ
+attachments_label=á€á€½á€²á€‘ားá€á€»á€€á€ºá€™á€»á€¬á€¸
+thumbs.title=ပုံရိပ်ငယ်များကို ပြပါ
+thumbs_label=ပုံရိပ်ငယ်များ
+findbar.title=Find in Document
+findbar_label=ရှာဖွေပါ
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=စာမျက်နှာ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=စာမျက်နှာရဲ့ ပုံရိပ်ငယ် {{page}}
+
+# Find panel button title and messages
+find_label=ရှာဖွေပါ -
+find_previous.title=စကားစုရဲ့ အရင် ​ဖြစ်ပွားမှုကို ရှာဖွေပါ
+find_previous_label=နောက်သို့
+find_next.title=စကားစုရဲ့ နောက်ထပ် ​ဖြစ်ပွားမှုကို ရှာဖွေပါ
+find_next_label=ရှေ့သို့
+find_highlight=အားလုံးကို မျဉ်းသားပါ
+find_match_case_label=စာလုံး á€á€­á€¯á€€á€ºá€†á€­á€¯á€„်ပါ
+find_reached_top=စာမျက်နှာထိပ် ရောက်နေပြီአအဆုံးကနေ ပြန်စပါ
+find_reached_bottom=စာမျက်နှာအဆုံး ရောက်နေပြီአထိပ်ကနေ ပြန်စပါ
+find_not_found=စကားစု မá€á€½á€±á€·á€›á€˜á€°á€¸
+
+# Error panel labels
+error_more_info=နောက်ထပ်အá€á€»á€€á€ºá€¡á€œá€€á€ºá€™á€»á€¬á€¸
+error_less_info=အနည်းငယ်မျှသော သá€á€„်းအá€á€»á€€á€ºá€¡á€œá€€á€º
+error_close=ပိá€á€º
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=မက်ဆေ့ - {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=အထပ် - {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ဖိုင် {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=လိုင်း - {{line}}
+rendering_error=စာမျက်နှာကို ပုံဖော်နေá€á€»á€­á€”်မှာ အမှားá€á€…်á€á€¯á€á€½á€±á€·á€›á€•á€«á€á€šá€ºá‹
+
+# Predefined zoom values
+page_scale_width=စာမျက်နှာ အကျယ်
+page_scale_fit=စာမျက်နှာ ကွက်á€á€­
+page_scale_auto=အလိုအလျောက် á€á€»á€¯á€¶á€·á€á€»á€²á€·
+page_scale_actual=အမှန်á€á€€á€šá€ºá€›á€¾á€­á€á€²á€· အရွယ်
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+
+# Loading indicator messages
+loading_error_indicator=အမှား
+loading_error=PDF ဖိုင် ကိုဆွဲá€á€„်နေá€á€»á€­á€”်မှာ အမှားá€á€…်á€á€¯á€á€½á€±á€·á€›á€•á€«á€á€šá€ºá‹
+invalid_file_error=မရသော သို့ ပျက်နေသော PDF ဖိုင်
+missing_file_error=PDF ပျောက်ဆုံး
+unexpected_response_error=မမျှော်လင့်ထားသော ဆာဗာမှ ပြန်ကြားá€á€»á€€á€º
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} အဓိပ္ပာယ်ဖွင့်ဆိုá€á€»á€€á€º]
+password_label=PDF အားဖွင့်ရန် ပá€á€ºá€…်á€á€á€ºá€¡á€¬á€¸á€‘ည့်ပါ
+password_invalid=စာá€á€¾á€€á€º မှားသည်ዠထပ်ကြိုးစားကြည့်ပါá‹
+password_ok=OK
+password_cancel=ပယ်​ဖျက်ပါ
+
+printing_not_supported=သá€á€­á€•á€±á€¸á€á€»á€€á€ºáŠá€•á€›á€„့်ထုá€á€ºá€á€¼á€„်းကိုဤဘယောက်ဆာသည် ပြည့်á€á€…ွာထောက်ပံ့မထားပါ á‹
+printing_not_ready=သá€á€­á€•á€±á€¸á€á€»á€€á€º: ယá€á€¯ PDF ဖိုင်သည် ပုံနှိပ်ရန် မပြည့်စုံပါ
+web_fonts_disabled=Web fonts are disabled: unable to use embedded PDF fonts.
+document_colors_disabled=PDF ဖိုင်အား áŽá€„်းဤ ကိုယ်ပိုင်အရောင်များကို အသုံးပြုá€á€½á€„့်မပေးထားပါ á‹ 'စာမျက်နှာအားလုံးအားအရောင်ရွေးá€á€»á€šá€ºá€á€½á€„့်' အား ယá€á€¯ ဘယောက်ဆာá€á€½á€„် ပိá€á€ºá€‘ားá€á€¼á€„်းကြောင့်ဖြစ် သှ်
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nb-NO/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nb-NO/viewer.properties
new file mode 100644
index 00000000..9b3839fa
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nb-NO/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Forrige side
+previous_label=Forrige
+next.title=Neste side
+next_label=Neste
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Side:
+page_of=av {{pageCount}}
+
+zoom_out.title=Zoom ut
+zoom_out_label=Zoom ut
+zoom_in.title=Zoom inn
+zoom_in_label=Zoom inn
+zoom.title=Zoom
+presentation_mode.title=Bytt til presentasjonsmodus
+presentation_mode_label=Presentasjonsmodus
+open_file.title=Ã…pne fil
+open_file_label=Ã…pne
+print.title=Skriv ut
+print_label=Skriv ut
+download.title=Last ned
+download_label=Last ned
+bookmark.title=Nåværende visning (kopier eller åpne i et nytt vindu)
+bookmark_label=Nåværende visning
+
+# Secondary toolbar and context menu
+tools.title=Verktøy
+tools_label=Verktøy
+first_page.title=Gå til første side
+first_page.label=Gå til første side
+first_page_label=Gå til første side
+last_page.title=GÃ¥ til siste side
+last_page.label=GÃ¥ til siste side
+last_page_label=GÃ¥ til siste side
+page_rotate_cw.title=Roter med klokken
+page_rotate_cw.label=Roter med klokken
+page_rotate_cw_label=Roter med klokken
+page_rotate_ccw.title=Roter mot klokken
+page_rotate_ccw.label=Roter mot klokken
+page_rotate_ccw_label=Roter mot klokken
+
+hand_tool_enable.title=Slå på hånd-verktøy
+hand_tool_enable_label=Slå på hånd-verktøy
+hand_tool_disable.title=Slå av hånd-verktøy
+hand_tool_disable_label=Slå av hånd-verktøy
+
+# Document properties dialog box
+document_properties.title=Dokumentegenskaper …
+document_properties_label=Dokumentegenskaper …
+document_properties_file_name=Filnavn:
+document_properties_file_size=Filstørrelse:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Tittel:
+document_properties_author=Forfatter:
+document_properties_subject=Emne:
+document_properties_keywords=Nøkkelord:
+document_properties_creation_date=Opprettet dato:
+document_properties_modification_date=Endret dato:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Opprettet av:
+document_properties_producer=PDF-verktøy:
+document_properties_version=PDF-versjon:
+document_properties_page_count=Sideantall:
+document_properties_close=Lukk
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Slå av/på sidestolpe
+toggle_sidebar_label=Slå av/på sidestolpe
+outline.title=Vis dokumentdisposisjon
+outline_label=Dokumentdisposisjon
+attachments.title=Vis vedlegg
+attachments_label=Vedlegg
+thumbs.title=Vis miniatyrbilde
+thumbs_label=Miniatyrbilde
+findbar.title=Finn i dokumentet
+findbar_label=Finn
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Side {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatyrbilde av side {{page}}
+
+# Find panel button title and messages
+find_label=Finn:
+find_previous.title=Finn forrige forekomst av frasen
+find_previous_label=Forrige
+find_next.title=Finn neste forekomst av frasen
+find_next_label=Neste
+find_highlight=Uthev alle
+find_match_case_label=Skill store/små bokstaver
+find_reached_top=NÃ¥dde toppen av dokumentet, fortsetter fra bunnen
+find_reached_bottom=NÃ¥dde bunnen av dokumentet, fortsetter fra toppen
+find_not_found=Fant ikke teksten
+
+# Error panel labels
+error_more_info=Mer info
+error_less_info=Mindre info
+error_close=Lukk
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (bygg: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Melding: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stakk: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fil: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linje: {{line}}
+rendering_error=En feil oppstod ved opptegning av siden.
+
+# Predefined zoom values
+page_scale_width=Sidebredde
+page_scale_fit=Tilpass til siden
+page_scale_auto=Automatisk zoom
+page_scale_actual=Virkelig størrelse
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}} %
+
+# Loading indicator messages
+loading_error_indicator=Feil
+loading_error=En feil oppstod ved lasting av PDF.
+invalid_file_error=Ugyldig eller skadet PDF-fil.
+missing_file_error=Manglende PDF-fil.
+unexpected_response_error=Uventet serverrespons.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} annotasjon]
+password_label=Skriv inn passordet for å åpne denne PDF-filen.
+password_invalid=Ugyldig passord. Prøv igjen.
+password_ok=OK
+password_cancel=Avbryt
+
+printing_not_supported=Advarsel: Utskrift er ikke fullstendig støttet av denne nettleseren.
+printing_not_ready=Advarsel: PDF er ikke fullstendig innlastet for utskrift.
+web_fonts_disabled=Web-fonter er avslått: Kan ikke bruke innbundne PDF-fonter.
+document_colors_disabled=PDF-dokumenter tillates ikke å bruke deres egne farger: 'Tillat sider å velge egne farger' er deaktivert i nettleseren.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nl/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nl/viewer.properties
new file mode 100644
index 00000000..50e4d138
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nl/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Vorige pagina
+previous_label=Vorige
+next.title=Volgende pagina
+next_label=Volgende
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Pagina:
+page_of=van {{pageCount}}
+
+zoom_out.title=Uitzoomen
+zoom_out_label=Uitzoomen
+zoom_in.title=Inzoomen
+zoom_in_label=Inzoomen
+zoom.title=Zoomen
+presentation_mode.title=Wisselen naar presentatiemodus
+presentation_mode_label=Presentatiemodus
+open_file.title=Bestand openen
+open_file_label=Openen
+print.title=Afdrukken
+print_label=Afdrukken
+download.title=Downloaden
+download_label=Downloaden
+bookmark.title=Huidige weergave (kopiëren of openen in nieuw venster)
+bookmark_label=Huidige weergave
+
+# Secondary toolbar and context menu
+tools.title=Hulpmiddelen
+tools_label=Hulpmiddelen
+first_page.title=Naar eerste pagina gaan
+first_page.label=Naar eerste pagina gaan
+first_page_label=Naar eerste pagina gaan
+last_page.title=Naar laatste pagina gaan
+last_page.label=Naar laatste pagina gaan
+last_page_label=Naar laatste pagina gaan
+page_rotate_cw.title=Rechtsom draaien
+page_rotate_cw.label=Rechtsom draaien
+page_rotate_cw_label=Rechtsom draaien
+page_rotate_ccw.title=Linksom draaien
+page_rotate_ccw.label=Linksom draaien
+page_rotate_ccw_label=Linksom draaien
+
+hand_tool_enable.title=Handhulpmiddel inschakelen
+hand_tool_enable_label=Handhulpmiddel inschakelen
+hand_tool_disable.title=Handhulpmiddel uitschakelen
+hand_tool_disable_label=Handhulpmiddel uitschakelen
+
+# Document properties dialog box
+document_properties.title=Documenteigenschappen…
+document_properties_label=Documenteigenschappen…
+document_properties_file_name=Bestandsnaam:
+document_properties_file_size=Bestandsgrootte:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Titel:
+document_properties_author=Auteur:
+document_properties_subject=Onderwerp:
+document_properties_keywords=Trefwoorden:
+document_properties_creation_date=Aanmaakdatum:
+document_properties_modification_date=Wijzigingsdatum:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Auteur:
+document_properties_producer=PDF-producent:
+document_properties_version=PDF-versie:
+document_properties_page_count=Aantal pagina’s:
+document_properties_close=Sluiten
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Zijbalk in-/uitschakelen
+toggle_sidebar_label=Zijbalk in-/uitschakelen
+outline.title=Documentoverzicht tonen
+outline_label=Documentoverzicht
+attachments.title=Bijlagen tonen
+attachments_label=Bijlagen
+thumbs.title=Miniaturen tonen
+thumbs_label=Miniaturen
+findbar.title=Zoeken in document
+findbar_label=Zoeken
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Pagina {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatuur van pagina {{page}}
+
+# Find panel button title and messages
+find_label=Zoeken:
+find_previous.title=Het vorige voorkomen van de tekst zoeken
+find_previous_label=Vorige
+find_next.title=Het volgende voorkomen van de tekst zoeken
+find_next_label=Volgende
+find_highlight=Alles markeren
+find_match_case_label=Hoofdlettergevoelig
+find_reached_top=Bovenkant van het document bereikt, doorgegaan vanaf de onderkant
+find_reached_bottom=Onderkant van het document bereikt, doorgegaan vanaf de bovenkant
+find_not_found=Tekst niet gevonden
+
+# Error panel labels
+error_more_info=Meer informatie
+error_less_info=Minder informatie
+error_close=Sluiten
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Bericht: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Bestand: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Regel: {{line}}
+rendering_error=Er is een fout opgetreden bij het weergeven van de pagina.
+
+# Predefined zoom values
+page_scale_width=Paginabreedte
+page_scale_fit=Hele pagina
+page_scale_auto=Automatisch zoomen
+page_scale_actual=Werkelijke grootte
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Fout
+loading_error=Er is een fout opgetreden bij het laden van de PDF.
+invalid_file_error=Ongeldig of beschadigd PDF-bestand.
+missing_file_error=PDF-bestand ontbreekt.
+unexpected_response_error=Onverwacht serverantwoord.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}}-aantekening]
+password_label=Voer het wachtwoord in om dit PDF-bestand te openen.
+password_invalid=Ongeldig wachtwoord. Probeer het opnieuw.
+password_ok=OK
+password_cancel=Annuleren
+
+printing_not_supported=Waarschuwing: afdrukken wordt niet volledig ondersteund door deze browser.
+printing_not_ready=Waarschuwing: de PDF is niet volledig geladen voor afdrukken.
+web_fonts_disabled=Weblettertypen zijn uitgeschakeld: gebruik van ingebedde PDF-lettertypen is niet mogelijk.
+document_colors_disabled=PDF-documenten mogen hun eigen kleuren niet gebruiken: ‘Pagina’s toestaan om hun eigen kleuren te kiezen’ is uitgeschakeld in de browser.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nn-NO/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nn-NO/viewer.properties
new file mode 100644
index 00000000..098e8228
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nn-NO/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Førre side
+previous_label=Førre
+next.title=Neste side
+next_label=Neste
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Side:
+page_of=av {{pageCount}}
+
+zoom_out.title=Mindre
+zoom_out_label=Mindre
+zoom_in.title=Større
+zoom_in_label=Større
+zoom.title=Skalering
+presentation_mode.title=Byt til presentasjonsmodus
+presentation_mode_label=Presentasjonsmodus
+open_file.title=Opna fil
+open_file_label=Opna
+print.title=Skriv ut
+print_label=Skriv ut
+download.title=Last ned
+download_label=Last ned
+bookmark.title=Gjeldande vising (kopier eller opna i nytt vindauge)
+bookmark_label=Gjeldande vising
+
+# Secondary toolbar and context menu
+tools.title=Verktøy
+tools_label=Verktøy
+first_page.title=GÃ¥ til fyrstesida
+first_page.label=GÃ¥ til fyrstesida
+first_page_label=GÃ¥ til fyrstesida
+last_page.title=GÃ¥ til siste side
+last_page.label=GÃ¥ til siste side
+last_page_label=GÃ¥ til siste side
+page_rotate_cw.title=Roter med klokka
+page_rotate_cw.label=Roter med klokka
+page_rotate_cw_label=Roter med klokka
+page_rotate_ccw.title=Roter mot klokka
+page_rotate_ccw.label=Roter mot klokka
+page_rotate_ccw_label=Roter mot klokka
+
+hand_tool_enable.title=Slå på handverktøy
+hand_tool_enable_label=Slå på handverktøy
+hand_tool_disable.title=Så av handverktøy
+hand_tool_disable_label=Slå av handverktøy
+
+# Document properties dialog box
+document_properties.title=Dokumenteigenskapar …
+document_properties_label=Dokumenteigenskapar …
+document_properties_file_name=Filnamn:
+document_properties_file_size=Filstorleik:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Dokumenteigenskapar …
+document_properties_author=Forfattar:
+document_properties_subject=Emne:
+document_properties_keywords=Nykelord:
+document_properties_creation_date=Dato oppretta:
+document_properties_modification_date=Dato endra:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Oppretta av:
+document_properties_producer=PDF-verktøy:
+document_properties_version=PDF-versjon:
+document_properties_page_count=Sidetal:
+document_properties_close=Lukk
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Slå av/på sidestolpe
+toggle_sidebar_label=Slå av/på sidestolpe
+outline.title=Vis dokumentdisposisjon
+outline_label=Dokumentdisposisjon
+attachments.title=Vis vedlegg
+attachments_label=Vedlegg
+thumbs.title=Vis miniatyrbilde
+thumbs_label=Miniatyrbilde
+findbar.title=Finn i dokumentet
+findbar_label=Finn
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Side {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatyrbilde av side {{page}}
+
+# Find panel button title and messages
+find_label=Finn:
+find_previous.title=Finn tidlegare førekomst av frasen
+find_previous_label=Førre
+find_next.title=Finn neste førekomst av frasen
+find_next_label=Neste
+find_highlight=Uthev alle
+find_match_case_label=Skil store/små bokstavar
+find_reached_top=Nådde toppen av dokumentet, held fram frå botnen
+find_reached_bottom=Nådde botnen av dokumentet, held fram frå toppen
+find_not_found=Fann ikkje teksten
+
+# Error panel labels
+error_more_info=Meir info
+error_less_info=Mindre info
+error_close=Lukk
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (bygg: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Melding: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stakk: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fil: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linje: {{line}}
+rendering_error=Ein feil oppstod ved oppteikning av sida.
+
+# Predefined zoom values
+page_scale_width=Sidebreidde
+page_scale_fit=Tilpass til sida
+page_scale_auto=Automatisk skalering
+page_scale_actual=Verkeleg storleik
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Feil
+loading_error=Ein feil oppstod ved lasting av PDF.
+invalid_file_error=Ugyldig eller korrupt PDF-fil.
+missing_file_error=Manglande PDF-fil.
+unexpected_response_error=Uventa tenarrespons.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} annotasjon]
+password_label=Skriv inn passordet for å opna denne PDF-fila.
+password_invalid=Ugyldig passord. Prøv igjen.
+password_ok=OK
+password_cancel=Avbryt
+
+printing_not_supported=Åtvaring: Utskrift er ikkje fullstendig støtta av denne nettlesaren.
+printing_not_ready=Ã…tvaring: PDF ikkje fullstendig innlasta for utskrift.
+web_fonts_disabled=Vev-skrifter er slått av: Kan ikkje bruka innbundne PDF-skrifter.
+document_colors_disabled=PDF-dokument har ikkje løyve til å bruka eigne fargar: 'Tillat sider å velja eigne fargar' er slått av i nettlesaren.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nso/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nso/viewer.properties
new file mode 100644
index 00000000..09923f59
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/nso/viewer.properties
@@ -0,0 +1,123 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Letlakala le fetilego
+previous_label=Fetilego
+next.title=Letlakala le latelago
+next_label=Latelago
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Letlakala:
+page_of=la {{pageCount}}
+
+zoom_out.title=Bušetša ka gare
+zoom_out_label=Bušetša ka gare
+zoom_in.title=Godišetša ka ntle
+zoom_in_label=Godišetša ka ntle
+zoom.title=Godiša
+print.title=Gatiša
+print_label=Gatiša
+presentation_mode.title=Fetogela go mokgwa wa tlhagišo
+presentation_mode_label=Mokgwa wa tlhagišo
+open_file.title=Bula faele
+open_file_label=Bula
+download.title=Laolla
+download_label=Laolla
+bookmark.title=Pono ya bjale (kopiša le go bula lefasetereng le leswa)
+bookmark_label=Tebelelo ya gona bjale
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Å ielanya para ya ka thoko
+toggle_sidebar_label=Å ielanya para ya ka thoko
+outline.title=Laetša kakaretšo ya tokumente
+outline_label=Kakaretšo ya tokumente
+thumbs.title=Laetša dikhutšofatšo
+thumbs_label=Dikhutšofatšo
+findbar.title=Hwetša go tokumente
+findbar_label=Hwetša
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Letlakala {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Khutšofatšo ya letlakala {{page}}
+
+# Context menu
+first_page.label=Eya letlakaleng la mathomo
+last_page.label=Eya letlakaleng la mafelelo
+page_rotate_cw.label=Dikološa go ya ka go la go ja
+page_rotate_ccw.label=Dikološa go ya go la ntsogošo
+
+# Find panel button title and messages
+find_label=Hwetša:
+find_previous.title=Hwetša tiragalo e fetilego ya sekafoko
+find_previous_label=Fetilego
+find_next.title=Hwetša tiragalo e latelago ya sekafoko
+find_next_label=Latelago
+find_highlight=Bonagatša tšohle
+find_match_case_label=Swantšha kheisi
+find_reached_top=Fihlile godimo ga tokumente, go tšwetšwe pele go tloga tlase
+find_reached_bottom=Fihlile mafelelong a tokumente, go tšwetšwe pele go tloga godimo
+find_not_found=Sekafoko ga sa hwetšwa
+
+# Error panel labels
+error_more_info=Tshedimošo e oketšegilego
+error_less_info=Tshedimošo ya tlasana
+error_close=Tswalela
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Molaetša: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Mokgobo: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Faele: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Mothaladi: {{line}}
+rendering_error=Go diregile phošo ge go be go gafelwa letlakala.
+
+# Predefined zoom values
+page_scale_width=Bophara bja letlakala
+page_scale_fit=Go lekana ga letlakala
+page_scale_auto=Kgodišo ya maitirišo
+page_scale_actual=Bogolo bja kgonthe
+
+# Loading indicator messages
+loading_error_indicator=Phošo
+loading_error=Go diregile phošo ge go hlahlelwa PDF.
+invalid_file_error=Faele ye e sa Å¡omego goba e senyegilego ya PDF.
+missing_file_error=Faele yeo e sego gona ya PDF.
+
+# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type=[{{type}} Tlhaloso]
+request_password=PDF e šireleditšwe ka lentšuphetišo:
+
+printing_not_supported=Temošo: Go gatiša ga go thekgwe ke praosara ye ka botlalo.
+printing_not_ready=Temošo: PDF ga ya hlahlelwa ka botlalo bakeng sa go gatišwa.
+web_fonts_disabled=Difonte tša wepe di šitišitšwe: ga e kgone go diriša difonte tša PDF tše khutišitšwego.
+web_colors_disabled=Mebala ya wepe e šitišitšwe.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/oc/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/oc/viewer.properties
new file mode 100644
index 00000000..a6863733
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/oc/viewer.properties
@@ -0,0 +1,165 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Pagina precedenta
+previous_label=Precedent
+next.title=Pagina seguenta
+next_label=Seguent
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Pagina :
+page_of=sus {{pageCount}}
+
+zoom_out.title=Zoom arrièr
+zoom_out_label=Zoom arrièr
+zoom_in.title=Zoom avant
+zoom_in_label=Zoom avant
+zoom.title=Zoom
+presentation_mode.title=Bascuolar en mòde presentacion
+presentation_mode_label=Mòde Presentacion
+open_file.title=Dobrir lo fichièr
+open_file_label=Dobrir
+print.title=Imprimir
+print_label=Imprimir
+download.title=Telecargar
+download_label=Telecargar
+bookmark.title=Afichatge corrent (copiar o dobrir dins una fenèstra novèla)
+bookmark_label=Afichatge actual
+
+# Secondary toolbar and context menu
+tools.title=Aisinas
+tools_label=Aisinas
+first_page.title=Anar a la primièra pagina
+first_page.label=Anar a la primièra pagina
+first_page_label=Anar a la primièra pagina
+last_page.title=Anar a la darrièra pagina
+last_page.label=Anar a la darrièra pagina
+last_page_label=Anar a la darrièra pagina
+page_rotate_cw.title=Rotacion orària
+page_rotate_cw.label=Rotacion orària
+page_rotate_cw_label=Rotacion orària
+page_rotate_ccw.title=Rotacion antiorària
+page_rotate_ccw.label=Rotacion antiorària
+page_rotate_ccw_label=Rotacion antiorària
+
+hand_tool_enable.title=Activar l'aisina man
+hand_tool_enable_label=Activar l'aisina man
+hand_tool_disable.title=Desactivar l'aisina man
+hand_tool_disable_label=Desactivar l'aisina man
+
+# Document properties dialog box
+document_properties.title=Proprietats del document...
+document_properties_label=Proprietats del document...
+document_properties_file_name=Nom del fichièr :
+document_properties_file_size=Talha del fichièr :
+document_properties_kb={{size_kb}} Ko ({{size_b}} octets)
+document_properties_mb={{size_mb}} Mo ({{size_b}} octets)
+document_properties_title=Títol :
+document_properties_author=Autor :
+document_properties_subject=Subjècte :
+document_properties_keywords=Mots claus :
+document_properties_creation_date=Data de creacion :
+document_properties_modification_date=Data de modificacion :
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Creator :
+document_properties_producer=Aisina de conversion PDF :
+document_properties_version=Version PDF :
+document_properties_page_count=Nombre de paginas :
+document_properties_close=Tampar
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Afichar/amagar lo panèl lateral
+toggle_sidebar_label=Afichar/amagar lo panèl lateral
+outline.title=Afichar los marcapaginas
+outline_label=Marcapaginas del document
+attachments.title=Visualizar las pèças juntas
+attachments_label=Pèças juntas
+thumbs.title=Afichar las vinhetas
+thumbs_label=Vinhetas
+findbar.title=Trobar dins lo document
+findbar_label=Recercar
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Pagina {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Vinheta de la pagina {{page}}
+
+# Find panel button title and messages
+find_label=Recercar
+find_previous.title=Tròba l'ocurréncia precedenta de la frasa
+find_previous_label=Precedent
+find_next.title=Tròba l'ocurréncia venenta de la frasa
+find_next_label=Seguent
+find_highlight=Suslinhar tot
+find_match_case_label=Respectar la cassa
+find_reached_top=Naut de la pagina atench, perseguida dempuèi lo bas
+find_reached_bottom=Bas de la pagina atench, perseguida al començament
+find_not_found=Frasa pas trobada
+
+# Error panel labels
+error_more_info=Mai de detalhs
+error_less_info=Mens d'informacions
+error_close=Tampar
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (identificant de compilacion : {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Messatge : {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Pila : {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fichièr : {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linha : {{line}}
+rendering_error=Una error s'es producha pendent l'afichatge de la pagina.
+
+# Predefined zoom values
+page_scale_width=Largor plena
+page_scale_fit=Pagina entièra
+page_scale_auto=Zoom automatic
+page_scale_actual=Talha vertadièra
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+
+# Loading indicator messages
+loading_error_indicator=Error
+loading_error=Una error s'es producha pendent lo cargament del fichièr PDF.
+invalid_file_error=Fichièr PDF invalid o corromput.
+missing_file_error=Fichièr PDF mancant.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anotacion {{type}}]
+password_label=Picatz lo senhal per dobrir aqueste fichièr PDF.
+password_invalid=Senhal incorrècte. Tornatz ensajar.
+password_ok=D'acòrdi
+password_cancel=Anullar
+
+printing_not_supported=Atencion : l'estampatge es pas completament gerit per aqueste navigador.
+printing_not_ready=Atencion : lo PDF es pas entièrament cargat per lo poder imprimir.
+web_fonts_disabled=Las poliças web son desactivadas : impossible d'utilizar las poliças integradas al PDF.
+document_colors_disabled=Los documents PDF pòdon pas utilizar lors pròprias colors : « Autorizar las paginas web d'utilizar lors pròprias colors » es desactivat dins lo navigador.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/or/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/or/viewer.properties
new file mode 100644
index 00000000..39d29627
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/or/viewer.properties
@@ -0,0 +1,164 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=ପୂରà­à¬¬ ପୃଷà­à¬ à¬¾
+previous_label=ପୂରà­à¬¬
+next.title=ପର ପୃଷà­à¬ à¬¾
+next_label=ପର
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=ପୃଷà­à¬ à¬¾:
+page_of={{pageCount}} ର
+
+zoom_out.title=ଛୋଟ କରନà­à¬¤à­
+zoom_out_label=ଛୋଟ କରନà­à¬¤à­
+zoom_in.title=ବଡ଼ କରନà­à¬¤à­
+zoom_in_label=ବଡ଼ କରନà­à¬¤à­
+zoom.title=ଛୋଟ ବଡ଼ କରନà­à¬¤à­
+presentation_mode.title=ଉପସà­à¬¥à¬¾à¬ªà¬¨ ଧାରାକୠବଦଳାନà­à¬¤à­
+presentation_mode_label=ଉପସà­à¬¥à¬¾à¬ªà¬¨ ଧାରା
+open_file.title=ଫାଇଲ ଖୋଲନà­à¬¤à­
+open_file_label=ଖୋଲନà­à¬¤à­
+print.title=ମà­à¬¦à­à¬°à¬£
+print_label=ମà­à¬¦à­à¬°à¬£
+download.title=ଆହରଣ
+download_label=ଆହରଣ
+bookmark.title=ପà­à¬°à¬šà¬³à¬¿à¬¤ ଦୃଶà­à­Ÿ (ନକଲ କରନà­à¬¤à­ କିମà­à¬¬à¬¾ à¬à¬• ନୂତନ ୱିଣà­à¬¡à­‹à¬°à­‡ ଖୋଲନà­à¬¤à­)
+bookmark_label=ପà­à¬°à¬šà¬³à¬¿à¬¤ ଦୃଶà­à­Ÿ
+
+# Secondary toolbar and context menu
+tools.title=ସାଧନଗà­à¬¡à¬¼à¬¿à¬•
+tools_label=ସାଧନଗà­à¬¡à¬¼à¬¿à¬•
+first_page.title=ପà­à¬°à¬¥à¬® ପୃଷà­à¬ à¬¾à¬•à­ ଯାଆନà­à¬¤à­
+first_page.label=ପà­à¬°à¬¥à¬® ପୃଷà­à¬ à¬¾à¬•à­ ଯାଆନà­à¬¤à­
+first_page_label=ପà­à¬°à¬¥à¬® ପୃଷà­à¬ à¬¾à¬•à­ ଯାଆନà­à¬¤à­
+last_page.title=ଶେଷ ପୃଷà­à¬ à¬¾à¬•à­ ଯାଆନà­à¬¤à­
+last_page.label=ଶେଷ ପୃଷà­à¬ à¬¾à¬•à­ ଯାଆନà­à¬¤à­
+last_page_label=ଶେଷ ପୃଷà­à¬ à¬¾à¬•à­ ଯାଆନà­à¬¤à­
+page_rotate_cw.title=ଦକà­à¬·à¬¿à¬£à¬¾à¬¬à¬°à­à¬¤à­à¬¤à­€ ଘà­à¬°à¬¾à¬¨à­à¬¤à­
+page_rotate_cw.label=ଦକà­à¬·à¬¿à¬£à¬¾à¬¬à¬°à­à¬¤à­à¬¤à­€ ଘà­à¬°à¬¾à¬¨à­à¬¤à­
+page_rotate_cw_label=ଦକà­à¬·à¬¿à¬£à¬¾à¬¬à¬°à­à¬¤à­à¬¤à­€ ଘà­à¬°à¬¾à¬¨à­à¬¤à­
+page_rotate_ccw.title=ବାମାବରà­à¬¤à­à¬¤à­€ ଘà­à¬°à¬¾à¬¨à­à¬¤à­
+page_rotate_ccw.label=ବାମାବରà­à¬¤à­à¬¤à­€ ଘà­à¬°à¬¾à¬¨à­à¬¤à­
+page_rotate_ccw_label=ବାମାବରà­à¬¤à­à¬¤à­€ ଘà­à¬°à¬¾à¬¨à­à¬¤à­
+
+hand_tool_enable.title=ହସà­à¬¤à¬•à­ƒà¬¤ ସାଧନକୠସକà­à¬°à¬¿à­Ÿ କରନà­à¬¤à­
+hand_tool_enable_label=ହସà­à¬¤à¬•à­ƒà¬¤ ସାଧନକୠସକà­à¬°à¬¿à­Ÿ କରନà­à¬¤à­
+hand_tool_disable.title=ହସà­à¬¤à¬•à­ƒà¬¤ ସାଧନକୠନିଷà­à¬•à­à¬°à¬¿à­Ÿ କରନà­à¬¤à­
+hand_tool_disable_label=ହସà­à¬¤à¬•à­ƒà¬¤ ସାଧନକୠନିଷà­à¬•à­à¬°à¬¿à­Ÿ କରନà­à¬¤à­
+
+# Document properties dialog box
+document_properties.title=ଦଲିଲ ଗà­à¬£à¬§à¬°à­à¬®â€¦
+document_properties_label=ଦଲିଲ ଗà­à¬£à¬§à¬°à­à¬®â€¦
+document_properties_file_name=ଫାଇଲ ନାମ:
+document_properties_file_size=ଫାଇଲ ଆକାର:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=ଶୀରà­à¬·à¬•:
+document_properties_author=ଲେଖକ:
+document_properties_subject=ବିଷୟ:
+document_properties_keywords=ସୂଚକ ଶବà­à¬¦:
+document_properties_creation_date=ନିରà­à¬®à¬¾à¬£ ତାରିଖ:
+document_properties_modification_date=ପରିବରà­à¬¤à­à¬¤à¬¨ ତାରିଖ:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=ନିରà­à¬®à¬¾à¬¤à¬¾:
+document_properties_producer=PDF ପà­à¬°à¬¯à­‹à¬œà¬•:
+document_properties_version=PDF ସଂସà­à¬•à¬°à¬£:
+document_properties_page_count=ପୃଷà­à¬ à¬¾ ଗଣନା:
+document_properties_close=ବନà­à¬¦ କରନà­à¬¤à­
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=ପାରà­à¬¶à­à­±à¬ªà¬Ÿà¬¿à¬•à­ ଆଗପଛ କରନà­à¬¤à­
+toggle_sidebar_label=ପାରà­à¬¶à­à­±à¬ªà¬Ÿà¬¿à¬•à­ ଆଗପଛ କରନà­à¬¤à­
+outline.title=ଦଲିଲ ସାରାଂଶ ଦରà­à¬¶à¬¾à¬¨à­à¬¤à­
+outline_label=ଦଲିଲ ସାରାଂଶ
+attachments.title=ସଂଲଗà­à¬¨à¬•à¬—à­à¬¡à¬¼à¬¿à¬•à­ ଦରà­à¬¶à¬¾à¬¨à­à¬¤à­
+attachments_label=ସଲଗà­à¬¨à¬•à¬—à­à¬¡à¬¿à¬•
+thumbs.title=ସଂକà­à¬·à¬¿à¬ªà­à¬¤ ବିବରଣୀ ଦରà­à¬¶à¬¾à¬¨à­à¬¤à­
+thumbs_label=ସଂକà­à¬·à¬¿à¬ªà­à¬¤ ବିବରଣୀ
+findbar.title=ଦଲିଲରେ ଖୋଜନà­à¬¤à­
+findbar_label=ଖୋଜନà­à¬¤à­
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=ପୃଷà­à¬ à¬¾ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=ପୃଷà­à¬ à¬¾à¬° ସଂକà­à¬·à¬¿à¬ªà­à¬¤ ବିବରଣୀ {{page}}
+
+# Find panel button title and messages
+find_label=ଖୋଜନà­à¬¤à­:
+find_previous.title=à¬à¬¹à¬¿ ବାକà­à­Ÿà¬¾à¬‚ଶର ପୂରà­à¬¬ ଉପସà­à¬¥à¬¿à¬¤à¬¿à¬•à­ ଖୋଜନà­à¬¤à­
+find_previous_label=ପୂରà­à¬¬à¬¬à¬°à­à¬¤à­à¬¤à­€
+find_next.title=à¬à¬¹à¬¿ ବାକà­à­Ÿà¬¾à¬‚ଶର ପରବରà­à¬¤à­à¬¤à­€ ଉପସà­à¬¥à¬¿à¬¤à¬¿à¬•à­ ଖୋଜନà­à¬¤à­
+find_next_label=ପରବରà­à¬¤à­à¬¤à­€\u0020
+find_highlight=ସମସà­à¬¤à¬™à­à¬•à­ ଆଲୋକିତ କରନà­à¬¤à­
+find_match_case_label=ଅକà­à¬·à¬° ମେଳାନà­à¬¤à­
+find_reached_top=ତଳୠଉପରକୠଗତି କରି ଦଲିଲର ଉପର ଭାଗରେ ପହଞà­à¬šà¬¿ ଯାଇଛି
+find_reached_bottom=ଉପରୠତଳକୠଗତି କରି ଦଲିଲର ଶେଷ ଭାଗରେ ପହଞà­à¬šà¬¿ ଯାଇଛି
+find_not_found=ବାକà­à­Ÿà¬¾à¬‚ଶ ମିଳିଲା ନାହିà¬
+
+# Error panel labels
+error_more_info=ଅଧିକ ସୂଚନା
+error_less_info=ସà­à­±à¬³à­à¬ª ସୂଚନା
+error_close=ବନà­à¬¦ କରନà­à¬¤à­
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=ସନà­à¬¦à­‡à¬¶: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=ଷà­à¬Ÿà¬¾à¬•: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ଫାଇଲ: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=ଧାଡ଼ି: {{line}}
+rendering_error=ପୃଷà­à¬ à¬¾ ଚିତà­à¬°à¬£ କରିବା ସମୟରେ ତà­à¬°à­à¬Ÿà¬¿ ଘଟିଲା।
+
+# Predefined zoom values
+page_scale_width=ପୃଷà­à¬ à¬¾ ଓସାର
+page_scale_fit=ପୃଷà­à¬ à¬¾ ମେଳନ
+page_scale_auto=ସà­à­±à­Ÿà¬‚ଚାଳିତ ଭାବରେ ଛୋଟବଡ଼ କରିବା
+page_scale_actual=ପà­à¬°à¬•à­ƒà¬¤ ଆକାର
+
+# Loading indicator messages
+loading_error_indicator=ତà­à¬°à­à¬Ÿà¬¿
+loading_error=PDF ଧାରଣ କରିବା ସମୟରେ à¬à¬• ତà­à¬°à­à¬Ÿà¬¿ ଘଟିଲା।
+invalid_file_error=ଅବୈଧ କିମà­à¬¬à¬¾ ତà­à¬°à­à¬Ÿà¬¿à¬¯à­à¬•à­à¬¤ PDF ଫାଇଲ।
+missing_file_error=ହଜିଯାଇଥିବା PDF ଫାଇଲ।
+unexpected_response_error=ଅପà­à¬°à¬¤à­à­Ÿà¬¾à¬¶à¬¿à¬¤ ସରà­à¬­à¬° ଉତà­à¬¤à¬°à¥¤
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Annotation]
+password_label=à¬à¬¹à¬¿ PDF ଫାଇଲକୠଖୋଲିବା ପାଇଠପà­à¬°à¬¬à­‡à¬¶ ସଂକେତ ଭରଣ କରନà­à¬¤à­à¥¤
+password_invalid=ଭà­à¬² ପà­à¬°à¬¬à­‡à¬¶ ସଂକେତ। ଦୟାକରି ପà­à¬£à¬¿ ଚେଷà­à¬Ÿà¬¾ କରନà­à¬¤à­à¥¤
+password_ok=ଠିକ ଅଛି
+password_cancel=ବାତିଲ କରନà­à¬¤à­
+
+printing_not_supported=ଚେତାବନୀ: à¬à¬¹à¬¿ ବà­à¬°à¬¾à¬‰à¬œà¬° ଦà­à­±à¬¾à¬°à¬¾ ମà­à¬¦à­à¬°à¬£ କà­à¬°à¬¿à­Ÿà¬¾ ସମà­à¬ªà­‚ରà­à¬£à­à¬£ ଭାବରେ ସହାୟତା ପà­à¬°à¬¾à¬ªà­à¬¤ ନà­à¬¹à¬à¥¤
+printing_not_ready=ଚେତାବନୀ: PDF ଟି ମà­à¬¦à­à¬°à¬£ ପାଇଠସମà­à¬ªà­‚ରà­à¬£à­à¬£ ଭାବରେ ଧାରଣ ହୋଇ ନାହିà¬à¥¤
+web_fonts_disabled=ୱେବ ଅକà­à¬·à¬°à¬°à­‚ପଗà­à¬¡à¬¼à¬¿à¬•à­ ନିଷà­à¬•à­à¬°à¬¿à­Ÿ କରାଯାଇଛି: ସନà­à¬¨à¬¿à¬¹à¬¿à¬¤ PDF ଅକà­à¬·à¬°à¬°à­‚ପଗà­à¬¡à¬¼à¬¿à¬•à­ ବà­à­Ÿà¬¬à¬¹à¬¾à¬° କରିବାରେ ଅସମରà­à¬¥à¥¤
+document_colors_disabled=PDF ଦଲିଲଗà­à¬¡à¬¼à¬¿à¬• ସେମାନଙà­à¬•à¬° ନିଜର ରଙà­à¬— ବà­à­Ÿà¬¬à¬¹à¬¾à¬° କରିବା ପାଇଠଅନà­à¬®à¬¤à¬¿ ପà­à¬°à¬¾à¬ªà­à¬¤ ନà­à¬¹à¬: 'ସେମାନଙà­à¬•à¬° ନିଜ ରଙà­à¬— ବାଛିବା ପାଇଠପୃଷà­à¬ à¬¾à¬—à­à¬¡à¬¼à¬¿à¬•à­ ଅନà­à¬®à¬¤à¬¿ ଦିଅନà­à¬¤à­' କୠବà­à¬°à¬¾à¬‰à¬œà¬°à¬°à­‡ ନିଷà­à¬•à­à¬°à¬¿à­Ÿ କରାଯାଇଛି।
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pa-IN/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pa-IN/viewer.properties
new file mode 100644
index 00000000..fb26fc31
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pa-IN/viewer.properties
@@ -0,0 +1,181 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=ਸਫ਼ਾ ਪਿੱਛੇ
+previous_label=ਪਿੱਛੇ
+next.title=ਸਫ਼ਾ ਅੱਗੇ
+next_label=ਅੱਗੇ
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=ਸਫ਼ਾ:
+page_of={{pageCount}} ਵਿੱਚੋਂ
+
+zoom_out.title=ਜ਼ੂਮ ਆਉਟ
+zoom_out_label=ਜ਼ੂਮ ਆਉਟ
+zoom_in.title=ਜ਼ੂਮ ਇਨ
+zoom_in_label=ਜ਼ੂਮ ਇਨ
+zoom.title=ਜ਼ੂਨ
+print.title=ਪਰਿੰਟ
+print_label=ਪਰਿੰਟ
+presentation_mode.title=ਪਰਿਜੈਂਟੇਸ਼ਨ ਮੋਡ ਵਿੱਚ ਜਾਓ
+presentation_mode_label=ਪਰਿਜੈਂਟੇਸ਼ਨ ਮੋਡ
+
+open_file.title=ਫਾਈਲ ਖੋਲà©à¨¹à©‹
+open_file_label=ਖੋਲà©à¨¹à©‹
+download.title=ਡਾਊਨਲੋਡ
+download_label=ਡਾਊਨਲੋਡ
+bookmark.title=ਮੌਜੂਦਾ à¨à¨²à¨• (ਨਵੀਂ ਵਿੰਡੋ ਵਿੱਚ ਕਾਪੀ ਕਰੋ ਜਾਂ ਖੋਲà©à¨¹à©‹)
+bookmark_label=ਮੌਜੂਦਾ à¨à¨²à¨•
+
+# Secondary toolbar and context menu
+tools.title=ਟੂਲ
+tools_label=ਟੂਲ
+first_page.title=ਪਹਿਲੇ ਸਫ਼ੇ ਉੱਤੇ ਜਾਓ
+first_page.label=ਪਹਿਲੇ ਸਫ਼ੇ ਉੱਤੇ ਜਾਓ
+first_page_label=ਪਹਿਲੇ ਸਫ਼ੇ ਉੱਤੇ ਜਾਓ
+
+last_page.title=ਆਖਰੀ ਸਫ਼ੇ ਉੱਤੇ ਜਾਓ
+last_page_label=ਆਖਰੀ ਸਫ਼ੇ ਉੱਤੇ ਜਾਓ
+page_rotate_cw.title=ਸੱਜੇ ਦਾਅ ਘà©à©°à¨®à¨¾à¨“
+page_rotate_cw.label=ਸੱਜੇ ਦਾਅ ਘà©à©°à¨®à¨¾à¨“
+page_rotate_cw_label=ਸੱਜੇ ਦਾਅ ਘà©à©°à¨®à¨¾à¨“
+page_rotate_ccw.title=ਖੱਬੇ ਦਾਅ ਘà©à©°à¨®à¨¾à¨“
+page_rotate_ccw_label=ਖੱਬੇ ਦਾਅ ਘà©à©°à¨®à¨¾à¨“
+
+hand_tool_enable.title=ਹੱਥ ਟੂਲ ਚਾਲੂ
+hand_tool_enable_label=ਹੱਥ ਟੂਲ ਚਾਲੂ
+hand_tool_disable.title=ਹੱਥ ਟੂਲ ਬੰਦ
+hand_tool_disable_label=ਹੱਥ ਟੂਲ ਬੰਦ
+
+# Document properties dialog box
+document_properties.title=…ਦਸਤਾਵੇਜ਼ ਵਿਸ਼ੇਸ਼ਤਾ
+document_properties_label=…ਦਸਤਾਵੇਜ਼ ਵਿਸ਼ੇਸ਼ਤਾ
+document_properties_file_name=ਫਾਈਲ ਨਾਂ:
+document_properties_file_size=ਫਾਈਲ ਆਕਾਰ:
+document_properties_kb={{size_kb}} KB ({{size_b}} ਬਾਈਟ)
+document_properties_mb={{size_mb}} MB ({{size_b}} ਬਾਈਟ)
+document_properties_title=ਟਾਈਟਲ:
+document_properties_author=ਲੇਖਕ:
+document_properties_subject=ਵਿਸ਼ਾ:
+document_properties_keywords=ਸ਼ਬਦ:
+document_properties_creation_date=ਬਣਾਉਣ ਮਿਤੀ:
+document_properties_modification_date=ਸੋਧ ਮਿਤੀ:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=ਨਿਰਮਾਤਾ:
+document_properties_producer=PDF ਪà©à¨°à©‹à¨¡à¨¿à¨Šà¨¸à¨°:
+document_properties_version=PDF ਵਰਜਨ:
+document_properties_page_count=ਸਫ਼ਾ ਗਿਣਤੀ:
+document_properties_close=ਬੰਦ ਕਰੋ
+
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=ਬਾਹੀ ਬਦਲੋ
+toggle_sidebar_label=ਬਾਹੀ ਬਦਲੋ
+
+outline.title=ਦਸਤਾਵੇਜ਼ ਆਉਟਲਾਈਨ ਵੇਖਾਓ
+outline_label=ਦਸਤਾਵੇਜ਼ ਆਉਟਲਾਈਨ
+attachments.title=ਅਟੈਚਮੈਂਟ ਵੇਖਾਓ
+attachments_label=ਅਟੈਚਮੈਂਟ
+thumbs.title=ਥੰਮਨੇਲ ਵੇਖਾਓ
+thumbs_label=ਥੰਮਨੇਲ
+findbar.title=ਦਸਤਾਵੇਜ਼ ਵਿੱਚ ਲੱਭੋ
+findbar_label=ਲੱਭੋ
+
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=ਸਫ਼ਾ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}} ਸਫ਼ੇ ਦਾ ਥੰਮਨੇਲ
+
+
+# Context menu
+first_page.label=ਪਹਿਲੇ ਸਫ਼ੇ ਉੱਤੇ ਜਾਓ
+last_page.label=ਆਖਰੀ ਸਫ਼ੇ ਉੱਤੇ ਜਾਓ
+page_rotate_cw.label=ਸੱਜੇ ਦਾਅ ਘà©à©°à¨®à¨¾à¨‰
+page_rotate_ccw.label=ਖੱਬੇ ਦਾਅ ਘà©à©°à¨®à¨¾à¨‰
+
+# Find panel button title and messages
+find_label=ਲੱਭੋ:
+find_previous.title=ਵਾਕ ਦੀ ਪਿਛਲੀ ਮੌਜੂਦਗੀ ਲੱਭੋ
+find_previous_label=ਪਿੱਛੇ
+find_next.title=ਵਾਕ ਦੀ ਅਗਲੀ ਮੌਜੂਦਗੀ ਲੱਭੋ
+find_next_label=ਅੱਗੇ
+find_highlight=ਸਭ ਉਭਾਰੋ
+find_match_case_label=ਅੱਖਰ ਆਕਾਰ ਮਿਲਾਉ
+find_reached_top=ਦਸਤਾਵੇਜ਼ ਦੇ ਉੱਤੇ ਆ ਗਠਹਾਂ, ਥੱਲੇ ਤੋਂ ਜਾਰੀ ਰੱਖਿਆ ਹੈ
+find_reached_bottom=ਦਸਤਾਵੇਜ਼ ਦੇ ਅੰਤ ਉੱਤੇ ਆ ਗਠਹਾਂ, ਉੱਤੇ ਤੋਂ ਜਾਰੀ ਰੱਖਿਆ ਹੈ
+find_not_found=ਵਾਕ ਨਹੀਂ ਲੱਭਿਆ
+
+
+# Error panel labels
+error_more_info=ਹੋਰ ਜਾਣਕਾਰੀ
+error_less_info=ਘੱਟ ਜਾਣਕਾਰੀ
+error_close=ਬੰਦ ਕਰੋ
+
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (ਬਿਲਡ: {{build}}
+
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=ਸà©à¨¨à©‡à¨¹à¨¾: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=ਸਟੈਕ: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ਫਾਈਲ: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=ਲਾਈਨ: {{line}}
+rendering_error=ਸਫ਼ਾ ਰੈਡਰ ਕਰਨ ਦੇ ਦੌਰਾਨ ਗਲਤੀ ਆਈ ਹੈ।
+
+# Predefined zoom values
+page_scale_width=ਸਫ਼ਾ ਚੌੜਾਈ
+page_scale_fit=ਸਫ਼ਾ ਫਿੱਟ
+page_scale_auto=ਆਟੋਮੈਟਿਕ ਜ਼ੂਮ
+page_scale_actual=ਆਟੋਮੈਟਿਕ ਆਕਾਰ
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+# LOCALIZATION NOTE (error_line): "{{[percent}}" will be replaced with a percentage
+loading_error_indicator=ਗਲਤੀ
+loading_error=PDF ਲੋਡ ਕਰਨ ਦੇ ਦੌਰਾਨ ਗਲਤੀ ਆਈ ਹੈ।
+invalid_file_error=ਗਲਤ ਜਾਂ ਨਿਕਾਰਾ PDF ਫਾਈਲ ਹੈ।
+missing_file_error=ਨਾ-ਮੌਜੂਦ PDF ਫਾਈਲ।
+unexpected_response_error=ਅਣਜਾਣ ਸਰਵਰ ਜਵਾਬ।
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} ਵਿਆਖਿਆ]
+password_label=ਇਹ PDF ਫਾਈਲ ਖੋਲà©à¨¹à¨£ ਲਈ ਪਾਸਵਰਡ ਦਿਉ।
+password_invalid=ਗਲਤ ਪਾਸਵਰਡ। ਫੇਰ ਕੋਸ਼ਿਸ਼ ਕਰੋ ਜੀ।
+password_ok=ਠੀਕ ਹੈ
+password_cancel=ਰੱਦ ਕਰੋ
+
+printing_not_supported=ਸਾਵਧਾਨ: ਇਹ ਬਰਾਊਜ਼ਰ ਪਰਿੰਟ ਕਰਨ ਲਈ ਪੂਰੀ ਤਰà©à¨¹à¨¾à¨‚ ਸਹਾਇਕ ਨਹੀਂ ਹੈ।
+printing_not_ready=ਸਾਵਧਾਨ: PDF ਪਰਿੰਟ ਕਰਨ ਲਈ ਪੂਰੀ ਤਰà©à¨¹à¨¾à¨‚ ਲੋਡ ਨਹੀਂ ਹੈ।
+web_fonts_disabled=ਵੈਬ ਫੋਂਟ ਬੰਦ ਹਨ: ਇੰਬੈਡ PDF ਫੋਂਟ ਵਰਤਨ ਲਈ ਅਸਮਰੱਥ ਹੈ।
+document_colors_disabled=PDF ਡੌਕੂਮੈਂਟ ਨੂੰ ਆਪਣੇ ਰੰਗ ਵਰਤਣ ਦੀ ਇਜ਼ਾਜ਼ਤ ਨਹੀਂ ਹੈ।: ਬਰਾਊਜ਼ਰ ਵਿੱਚ \u0022ਸਫ਼ਿਆਂ ਨੂੰ ਆਪਣੇ ਰੰਗ ਵਰਤਣ ਦਿਉ\u0022 ਨੂੰ ਬੰਦ ਕੀਤਾ ਹੋਇਆ ਹੈ। \ No newline at end of file
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pl/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pl/viewer.properties
new file mode 100644
index 00000000..143c52ae
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pl/viewer.properties
@@ -0,0 +1,152 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Poprzednia strona
+previous_label=Poprzednia
+next.title=Następna strona
+next_label=Następna
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Strona:
+page_of=z {{pageCount}}
+
+zoom_out.title=Pomniejszenie
+zoom_out_label=Pomniejsz
+zoom_in.title=Powiększenie
+zoom_in_label=Powiększ
+zoom.title=Skala
+presentation_mode.title=Przełącz na tryb prezentacji
+presentation_mode_label=Tryb prezentacji
+open_file.title=Otwieranie pliku
+open_file_label=Otwórz
+print.title=Drukowanie
+print_label=Drukuj
+download.title=Pobieranie
+download_label=Pobierz
+bookmark.title=Bieżąca pozycja (skopiuj lub otwórz jako odnośnik w nowym oknie)
+bookmark_label=Bieżąca pozycja
+
+tools.title=Tools
+tools_label=Tools
+first_page.title=Przechodzenie do pierwszej strony
+first_page.label=Przejdź do pierwszej strony
+first_page_label=Przejdź do pierwszej strony
+last_page.title=Przechodzenie do ostatniej strony
+last_page.label=Przejdź do ostatniej strony
+last_page_label=Przejdź do ostatniej strony
+page_rotate_cw.title=Obracanie zgodnie z ruchem wskazówek zegara
+page_rotate_cw.label=Obróć zgodnie z ruchem wskazówek zegara
+page_rotate_cw_label=Obróć zgodnie z ruchem wskazówek zegara
+page_rotate_ccw.title=Obracanie przeciwnie do ruchu wskazówek zegara
+page_rotate_ccw.label=Obróć przeciwnie do ruchu wskazówek zegara
+page_rotate_ccw_label=Obróć przeciwnie do ruchu wskazówek zegara
+
+hand_tool_enable.title=Włączanie narzędzia rączka
+hand_tool_enable_label=Włącz narzędzie rączka
+hand_tool_disable.title=Wyłączanie narzędzia rączka
+hand_tool_disable_label=Wyłącz narzędzie rączka
+
+document_properties.title=Właściwości dokumentu…
+document_properties_label=Właściwości dokumentu…
+document_properties_file_name=Nazwa pliku:
+document_properties_file_size=Rozmiar pliku:
+document_properties_kb={{size_kb}} KB ({{size_b}} b)
+document_properties_mb={{size_mb}} MB ({{size_b}} b)
+document_properties_title=Tytuł:
+document_properties_author=Autor:
+document_properties_subject=Temat:
+document_properties_keywords=SÅ‚owa kluczowe:
+document_properties_creation_date=Data utworzenia:
+document_properties_modification_date=Data modyfikacji:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Utworzony przez:
+document_properties_producer=PDF wyprodukowany przez:
+document_properties_version=Wersja PDF:
+document_properties_page_count=Liczba stron:
+document_properties_close=Zamknij
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Przełączanie panelu bocznego
+toggle_sidebar_label=Przełącz panel boczny
+outline.title=Wyświetlanie zarysu dokumentu
+outline_label=Zarys dokumentu
+attachments.title=Wyświetlanie załączników
+attachments_label=Załączniki
+thumbs.title=Wyświetlanie miniaturek
+thumbs_label=Miniaturki
+findbar.title=Znajdź w dokumencie
+findbar_label=Znajdź
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Strona {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniaturka strony {{page}}
+
+# Find panel button title and messages
+find_label=Znajdź:
+find_previous.title=Znajdź poprzednie wystąpienie tekstu
+find_previous_label=Poprzednie
+find_next.title=Znajdź następne wystąpienie tekstu
+find_next_label=Następne
+find_highlight=Podświetl wszystkie
+find_match_case_label=Rozróżniaj wielkość znaków
+find_reached_top=Osiągnięto początek dokumentu, kontynuacja od końca
+find_reached_bottom=Osiągnięto koniec dokumentu, kontynuacja od początku
+find_not_found=Tekst nieznaleziony
+
+# Error panel labels
+error_more_info=Więcej informacji
+error_less_info=Mniej informacji
+error_close=Zamknij
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (kompilacja: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Wiadomość: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stos: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Plik: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Wiersz: {{line}}
+rendering_error=Podczas renderowania strony wystąpił błąd.
+
+# Predefined zoom values
+page_scale_width=Szerokość strony
+page_scale_fit=Dopasowanie strony
+page_scale_auto=Skala automatyczna
+page_scale_actual=Rozmiar rzeczywisty
+page_scale_percent={{scale}}%
+
+loading_error_indicator=BÅ‚Ä…d
+loading_error=Podczas wczytywania dokumentu PDF wystąpił błąd.
+invalid_file_error=Nieprawidłowy lub uszkodzony plik PDF.
+missing_file_error=Brak pliku PDF.
+unexpected_response_error=Nieoczekiwana odpowiedź serwera.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Adnotacja: {{type}}]
+password_label=Wprowadź hasło, aby otworzyć ten dokument PDF.
+password_invalid=Nieprawidłowe hasło. Proszę spróbować ponownie.
+password_ok=OK
+password_cancel=Anuluj
+
+printing_not_supported=Ostrzeżenie: Drukowanie nie jest w pełni wspierane przez przeglądarkę.
+printing_not_ready=Ostrzeżenie: Dokument PDF nie jest całkowicie wczytany, więc nie można go wydrukować.
+web_fonts_disabled=Czcionki sieciowe są wyłączone: nie można użyć osadzonych czcionek PDF.
+document_colors_disabled=Dokumenty PDF nie mogą używać własnych kolorów: Opcja „Pozwalaj stronom stosować inne kolory†w przeglądarce jest nieaktywna.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pt-BR/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pt-BR/viewer.properties
new file mode 100644
index 00000000..0de5b03c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pt-BR/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Página anterior
+previous_label=Anterior
+next.title=Próxima página
+next_label=Próxima
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Página:
+page_of=de {{pageCount}}
+
+zoom_out.title=Diminuir zoom
+zoom_out_label=Diminuir zoom
+zoom_in.title=Aumentar zoom
+zoom_in_label=Aumentar zoom
+zoom.title=Zoom
+presentation_mode.title=Alternar para modo de apresentação
+presentation_mode_label=Modo de apresentação
+open_file.title=Abrir arquivo
+open_file_label=Abrir
+print.title=Imprimir
+print_label=Imprimir
+download.title=Download
+download_label=Download
+bookmark.title=Visualização atual (copie ou abra em nova janela)
+bookmark_label=Visualização atual
+
+# Secondary toolbar and context menu
+tools.title=Ferramentas
+tools_label=Ferramentas
+first_page.title=Ir para a primeira página
+first_page.label=Ir para a primeira página
+first_page_label=Ir para a primeira página
+last_page.title=Ir para a última página
+last_page.label=Ir para a última página
+last_page_label=Ir para a última página
+page_rotate_cw.title=Girar no sentido horário
+page_rotate_cw.label=Girar no sentido horário
+page_rotate_cw_label=Girar no sentido horário
+page_rotate_ccw.title=Girar no sentido anti-horário
+page_rotate_ccw.label=Girar no sentido anti-horário
+page_rotate_ccw_label=Girar no sentido anti-horário
+
+hand_tool_enable.title=Ativar ferramenta da mão
+hand_tool_enable_label=Ativar ferramenta da mão
+hand_tool_disable.title=Desativar ferramenta da mão
+hand_tool_disable_label=Desativar ferramenta da mão
+
+# Document properties dialog box
+document_properties.title=Propriedades do documento…
+document_properties_label=Propriedades do documento…
+document_properties_file_name=Nome do arquivo:
+document_properties_file_size=Tamanho do arquivo:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Título:
+document_properties_author=Autor:
+document_properties_subject=Assunto:
+document_properties_keywords=Palavras-chave:
+document_properties_creation_date=Data da criação:
+document_properties_modification_date=Data da modificação:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Criação:
+document_properties_producer=Criador do PDF:
+document_properties_version=Versão do PDF:
+document_properties_page_count=Contagem de páginas:
+document_properties_close=Fechar
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Exibir/ocultar painel
+toggle_sidebar_label=Exibir/ocultar painel
+outline.title=Exibir estrutura de tópicos
+outline_label=Estrutura de tópicos do documento
+attachments.title=Exibir anexos
+attachments_label=Anexos
+thumbs.title=Exibir miniaturas das páginas
+thumbs_label=Miniaturas
+findbar.title=Localizar no documento
+findbar_label=Localizar
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Página {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatura da página {{page}}
+
+# Find panel button title and messages
+find_label=Localizar:
+find_previous.title=Localizar a ocorrência anterior do texto
+find_previous_label=Anterior
+find_next.title=Localizar a próxima ocorrência do texto
+find_next_label=Próxima
+find_highlight=Realçar tudo
+find_match_case_label=Diferenciar maiúsculas/minúsculas
+find_reached_top=Atingido o início do documento, continuando do fim
+find_reached_bottom=Atingido o fim do documento, continuando do início
+find_not_found=Texto não encontrado
+
+# Error panel labels
+error_more_info=Mais informações
+error_less_info=Menos informações
+error_close=Fechar
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mensagem: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Arquivo: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linha: {{line}}
+rendering_error=Ocorreu um erro ao renderizar a página.
+
+# Predefined zoom values
+page_scale_width=Largura da página
+page_scale_fit=Ajustar à janela
+page_scale_auto=Zoom automático
+page_scale_actual=Tamanho real
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Erro
+loading_error=Ocorreu um erro ao carregar o PDF.
+invalid_file_error=Arquivo PDF corrompido ou inválido.
+missing_file_error=Arquivo PDF ausente.
+unexpected_response_error=Resposta inesperada do servidor.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anotação {{type}}]
+password_label=Forneça a senha para abrir este arquivo PDF.
+password_invalid=Senha inválida. Por favor, tente de novo.
+password_ok=OK
+password_cancel=Cancelar
+
+printing_not_supported=Alerta: a impressão não é totalmente suportada neste navegador.
+printing_not_ready=Alerta: o PDF não está totalmente carregado para impressão.
+web_fonts_disabled=Fontes da web estão desativadas: não é possível usar fontes incorporadas do PDF.
+document_colors_disabled=Documentos PDF não estão permitidos a usar suas próprias cores: “Páginas podem usar outras cores†está desativado no navegador.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pt-PT/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pt-PT/viewer.properties
new file mode 100644
index 00000000..7a83edfa
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/pt-PT/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Página anterior
+previous_label=Anterior
+next.title=Página seguinte
+next_label=Seguinte
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Página:
+page_of=de {{pageCount}}
+
+zoom_out.title=Reduzir
+zoom_out_label=Reduzir
+zoom_in.title=Ampliar
+zoom_in_label=Ampliar
+zoom.title=Ampliação
+presentation_mode.title=Mudar para modo de apresentação
+presentation_mode_label=Modo de apresentação
+open_file.title=Abrir ficheiro
+open_file_label=Abrir
+print.title=Imprimir
+print_label=Imprimir
+download.title=Transferir
+download_label=Transferir
+bookmark.title=Vista atual (copiar ou abrir em nova janela)
+bookmark_label=Vista atual
+
+# Secondary toolbar and context menu
+tools.title=Ferramentas
+tools_label=Ferramentas
+first_page.title=Ir para a primeira página
+first_page.label=Ir para a primeira página
+first_page_label=Ir para a primeira página
+last_page.title=Ir para a última página
+last_page.label=Ir para a última página
+last_page_label=Ir para a última página
+page_rotate_cw.title=Rodar à direita
+page_rotate_cw.label=Rodar à direita
+page_rotate_cw_label=Rodar à direita
+page_rotate_ccw.title=Rodar à esquerda
+page_rotate_ccw.label=Rodar à esquerda
+page_rotate_ccw_label=Rodar à esquerda
+
+hand_tool_enable.title=Ativar ferramenta de mão
+hand_tool_enable_label=Ativar ferramenta de mão
+hand_tool_disable.title=Desativar ferramenta de mão
+hand_tool_disable_label=Desativar ferramenta de mão
+
+# Document properties dialog box
+document_properties.title=Propriedades do documento...
+document_properties_label=Propriedades do documento...
+document_properties_file_name=Nome do ficheiro:
+document_properties_file_size=Tamanho do ficheiro:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Título:
+document_properties_author=Autor:
+document_properties_subject=Assunto:
+document_properties_keywords=Palavras-chave:
+document_properties_creation_date=Data de criação:
+document_properties_modification_date=Data de modificação:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Criador:
+document_properties_producer=Produtor de PDF:
+document_properties_version=versão do PDF:
+document_properties_page_count=N.º de páginas:
+document_properties_close=Fechar
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Comutar barra lateral
+toggle_sidebar_label=Comutar barra lateral
+outline.title=Mostrar estrutura do documento
+outline_label=Estrutura do documento
+attachments.title=Mostrar anexos
+attachments_label=Anexos
+thumbs.title=Mostrar miniaturas
+thumbs_label=Miniaturas
+findbar.title=Localizar no documento
+findbar_label=Localizar
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Página {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatura da página {{page}}
+
+# Find panel button title and messages
+find_label=Localizar:
+find_previous.title=Localizar a ocorrência anterior
+find_previous_label=Anterior
+find_next.title=Localizar a ocorrência seguinte
+find_next_label=Seguinte
+find_highlight=Destacar tudo
+find_match_case_label=Correspondência
+find_reached_top=Início de documento atingido, a continuar do fim
+find_reached_bottom=Fim da página atingido, a continuar do início
+find_not_found=Frase não encontrada
+
+# Error panel labels
+error_more_info=Mais informação
+error_less_info=Menos informação
+error_close=Fechar
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (compilação: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mensagem: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Pilha: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Ficheiro: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linha: {{line}}
+rendering_error=Ocorreu um erro ao processar a página.
+
+# Predefined zoom values
+page_scale_width=Ajustar à largura
+page_scale_fit=Ajustar à página
+page_scale_auto=Tamanho automático
+page_scale_actual=Tamanho real
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Erro
+loading_error=Ocorreu um erro ao carregar o PDF.
+invalid_file_error=Ficheiro PDF inválido ou danificado.
+missing_file_error=Ficheiro PDF inexistente.
+unexpected_response_error=Resposta inesperada do servidor.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anotação {{type}}]
+password_label=Introduza a senha para abrir este PDF.
+password_invalid=Senha inválida. Tente novamente.
+password_ok=OK
+password_cancel=Cancelar
+
+printing_not_supported=Aviso: a impressão não é totalmente suportada por este navegador.
+printing_not_ready=Aviso: o PDF ainda não está totalmente carregado.
+web_fonts_disabled=Os tipos de letra web estão desativados: não é possível utilizar os tipos de letra PDF incorporados.
+document_colors_disabled=Os documentos PDF não permitem a utilização das suas próprias cores: Autorizar as páginas a escolher as suas próprias cores está desativado no navegador.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/rm/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/rm/viewer.properties
new file mode 100644
index 00000000..69a20d93
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/rm/viewer.properties
@@ -0,0 +1,157 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Pagina precedenta
+previous_label=Enavos
+next.title=Proxima pagina
+next_label=Enavant
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Pagina:
+page_of=da {{pageCount}}
+
+zoom_out.title=Empitschnir
+zoom_out_label=Empitschnir
+zoom_in.title=Engrondir
+zoom_in_label=Engrondir
+zoom.title=Zoom
+presentation_mode.title=Midar en il modus da preschentaziun
+presentation_mode_label=Modus da preschentaziun
+open_file.title=Avrir datoteca
+open_file_label=Avrir
+print.title=Stampar
+print_label=Stampar
+download.title=Telechargiar
+download_label=Telechargiar
+bookmark.title=Vista actuala (copiar u avrir en ina nova fanestra)
+bookmark_label=Vista actuala
+
+# Secondary toolbar and context menu
+tools.title=Utensils
+tools_label=Utensils
+first_page.title=Siglir a l'emprima pagina
+first_page.label=Siglir a l'emprima pagina
+first_page_label=Siglir a l'emprima pagina
+last_page.title=Siglir a la davosa pagina
+last_page.label=Siglir a la davosa pagina
+last_page_label=Siglir a la davosa pagina
+page_rotate_cw.title=Rotar en direcziun da l'ura
+page_rotate_cw.label=Rotar en direcziun da l'ura
+page_rotate_cw_label=Rotar en direcziun da l'ura
+page_rotate_ccw.title=Rotar en direcziun cuntraria a l'ura
+page_rotate_ccw.label=Rotar en direcziun cuntraria a l'ura
+page_rotate_ccw_label=Rotar en direcziun cuntraria a l'ura
+
+hand_tool_enable.title=Activar l'utensil da maun
+hand_tool_enable_label=Activar l'utensil da maun
+hand_tool_disable.title=Deactivar l'utensil da maun
+hand_tool_disable_label=Deactivar l'utensil da maun
+
+# Document properties dialog box
+document_properties.title=Caracteristicas dal document…
+document_properties_label=Caracteristicas dal document…
+document_properties_file_name=Num da la datoteca:
+document_properties_file_size=Grondezza da la datoteca:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=Titel:
+document_properties_author=Autur:
+document_properties_subject=Tema:
+document_properties_keywords=Chavazzins:
+document_properties_creation_date=Data da creaziun:
+document_properties_modification_date=Data da modificaziun:
+document_properties_date_string={{date}} {{time}}
+document_properties_creator=Creà da:
+document_properties_producer=Creà il PDF cun:
+document_properties_version=Versiun da PDF:
+document_properties_page_count=Dumber da paginas:
+document_properties_close=Serrar
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Activar/deactivar la trav laterala
+toggle_sidebar_label=Activar/deactivar la trav laterala
+outline.title=Mussar la structura da la pagina
+outline_label=Structura da la pagina
+attachments.title=Mussar agiuntas
+attachments_label=Agiuntas
+thumbs.title=Mussar las miniaturas
+thumbs_label=Miniaturas
+findbar.title=Tschertgar en il document
+findbar_label=Tschertgar
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Pagina {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatura da la pagina {{page}}
+
+# Find panel button title and messages
+find_label=Tschertgar:
+find_previous.title=Tschertgar la posiziun precedenta da l'expressiun
+find_previous_label=Enavos
+find_next.title=Tschertgar la proxima posiziun da l'expressiun
+find_next_label=Enavant
+find_highlight=Relevar tuts
+find_match_case_label=Resguardar maiusclas/minusclas
+find_reached_top=Il cumenzament dal document è cuntanschì, la tschertga cuntinuescha a la fin dal document
+find_reached_bottom=La fin dal document è cuntanschì, la tschertga cuntinuescha al cumenzament dal document
+find_not_found=Impussibel da chattar l'expressiun
+
+# Error panel labels
+error_more_info=Dapli infurmaziuns
+error_less_info=Damain infurmaziuns
+error_close=Serrar
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Messadi: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Datoteca: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Lingia: {{line}}
+rendering_error=Ina errur è cumparida cun visualisar questa pagina.
+
+# Predefined zoom values
+page_scale_width=Ladezza da la pagina
+page_scale_fit=Entira pagina
+page_scale_auto=Zoom automatic
+page_scale_actual=Grondezza actuala
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Errur
+loading_error=Ina errur è cumparida cun chargiar il PDF.
+invalid_file_error=Datoteca PDF nunvalida u donnegiada.
+missing_file_error=Datoteca PDF manconta.
+unexpected_response_error=Resposta nunspetgada dal server.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Annotaziun da {{type}}]
+password_label=Endatescha il pled-clav per avrir questa datoteca da PDF.
+password_invalid=Pled-clav nunvalid. Emprova anc ina giada.
+password_ok=OK
+password_cancel=Interrumper
+
+printing_not_supported=Attenziun: Il stampar na funcziunescha anc betg dal tut en quest navigatur.
+printing_not_ready=Attenziun: Il PDF n'è betg chargià cumplettamain per stampar.
+web_fonts_disabled=Scrittiras dal web èn deactivadas: impussibel dad utilisar las scrittiras integradas en il PDF.
+document_colors_disabled=Documents da PDF na pon betg utilisar lur atgnas colurs: \'Permetter a las paginas d'utilisar lur atgnas colurs empè da las colurs tschernidas survart\' è deactivà en il navigatur.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ro/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ro/viewer.properties
new file mode 100644
index 00000000..ecd37eb0
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ro/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Pagina precedentă
+previous_label=ÃŽnapoi
+next.title=Pagina următoare
+next_label=ÃŽnainte
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Pagină:
+page_of=din {{pageCount}}
+
+zoom_out.title=Micșorează
+zoom_out_label=Micșorează
+zoom_in.title=Mărește
+zoom_in_label=Mărește
+zoom.title=Scalare
+presentation_mode.title=Schimbă la modul de prezentare
+presentation_mode_label=Mod de prezentare
+open_file.title=Deschide un fișier
+open_file_label=Deschide
+print.title=Tipărește
+print_label=Tipărește
+download.title=Descarcă
+download_label=Descarcă
+bookmark.title=Vizualizare curentă (copiați sau deschideți într-o fereastră nouă)
+bookmark_label=Vizualizare curentă
+
+# Secondary toolbar and context menu
+tools.title=Unelte
+tools_label=Unelte
+first_page.title=Mergi la prima pagină
+first_page.label=Mergeți la prima pagină
+first_page_label=Mergi la prima pagină
+last_page.title=Mergi la ultima pagină
+last_page.label=Mergi la ultima pagină
+last_page_label=Mergi la ultima pagină
+page_rotate_cw.title=Rotește în sensul acelor de ceasornic
+page_rotate_cw.label=Rotește în sensul acelor de ceasornic
+page_rotate_cw_label=Rotește în sensul acelor de ceasornic
+page_rotate_ccw.title=Rotește în sens invers al acelor de ceasornic
+page_rotate_ccw.label=Rotate Counter-Clockwise
+page_rotate_ccw_label=Rotește în sens invers acelor de ceasornic
+
+hand_tool_enable.title=Activează instrumentul mână
+hand_tool_enable_label=Activează instrumentul mână
+hand_tool_disable.title=Dezactivează instrumentul mână
+hand_tool_disable_label=Dezactivează instrumentul mână
+
+# Document properties dialog box
+document_properties.title=Proprietățile documentului…
+document_properties_label=Proprietățile documentului…
+document_properties_file_name=Nume fișier:
+document_properties_file_size=Dimensiune fișier:
+document_properties_kb={{size_kb}} KB ({{size_b}} biți)
+document_properties_mb={{size_mb}} MB ({{size_b}} biți)
+document_properties_title=Titlu:
+document_properties_author=Autor:
+document_properties_subject=Subiect:
+document_properties_keywords=Cuvinte cheie:
+document_properties_creation_date=Data creării:
+document_properties_modification_date=Data modificării:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Autor:
+document_properties_producer=Producător PDF:
+document_properties_version=Versiune PDF:
+document_properties_page_count=Număr de pagini:
+document_properties_close=ÃŽnchide
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Comută bara laterală
+toggle_sidebar_label=Comută bara laterală
+outline.title=Arată schița documentului
+outline_label=Schiță document
+attachments.title=Afișează atașamentele
+attachments_label=Atașamente
+thumbs.title=Arată miniaturi
+thumbs_label=Miniaturi
+findbar.title=Caută în document
+findbar_label=Căutați
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Pagina {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatura paginii {{page}}
+
+# Find panel button title and messages
+find_label=Caută:
+find_previous.title=Găsește instanța anterioară în frază
+find_previous_label=Anterior
+find_next.title=Găstește următoarea instanță în frază
+find_next_label=Următor
+find_highlight=Evidențiază aparițiile
+find_match_case_label=Potrivire litere
+find_reached_top=Am ajuns la începutul documentului, continuă de la sfârșit
+find_reached_bottom=Am ajuns la sfârșitul documentului, continuă de la început
+find_not_found=Nu s-a găsit textul
+
+# Error panel labels
+error_more_info=Mai multe informații
+error_less_info=Mai puțină informație
+error_close=ÃŽnchide
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (varianta: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mesaj: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stivă: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fișier: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linie: {{line}}
+rendering_error=A intervenit o eroare la afișarea paginii.
+
+# Predefined zoom values
+page_scale_width=Lățime pagină
+page_scale_fit=Potrivire la pagină
+page_scale_auto=Dimensiune automată
+page_scale_actual=Dimensiune reală
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Eroare
+loading_error=A intervenit o eroare la încărcarea fișierului PDF.
+invalid_file_error=Fișier PDF invalid sau deteriorat.
+missing_file_error=Fișier PDF lipsă.
+unexpected_response_error=Răspuns neașteptat de la server.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Adnotare]
+password_label=Introduceți parola pentru a deschide acest fişier PDF.
+password_invalid=Parolă greșită. Vă rugăm încercați din nou.
+password_ok=Ok
+password_cancel=Renunță
+
+printing_not_supported=Atenție: Tipărirea nu este suportată în totalitate de acest navigator.
+printing_not_ready=Atenție: Fișierul PDF nu este încărcat complet pentru tipărire.
+web_fonts_disabled=Fonturile web sunt dezactivate: nu pot utiliza fonturile PDF încorporate.
+document_colors_disabled=Documentele PDF nu sunt autorizate să folosească propriile culori: 'Permite paginilor să aleagă propriile culori' este dezactivată în navigator.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ru/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ru/viewer.properties
new file mode 100644
index 00000000..349f2cbe
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ru/viewer.properties
@@ -0,0 +1,111 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+previous.title = ÐŸÑ€ÐµÐ´Ñ‹Ð´ÑƒÑ‰Ð°Ñ Ñтраница
+previous_label = ПредыдущаÑ
+next.title = Ð¡Ð»ÐµÐ´ÑƒÑŽÑ‰Ð°Ñ Ñтраница
+next_label = СледующаÑ
+page_label = Страница:
+page_of = из {{pageCount}}
+zoom_out.title = Уменьшить
+zoom_out_label = Уменьшить
+zoom_in.title = Увеличить
+zoom_in_label = Увеличить
+zoom.title = МаÑштаб
+presentation_mode.title = Перейти в режим презентации
+presentation_mode_label = Режим презентации
+open_file.title = Открыть файл
+open_file_label = Открыть
+print.title = Печать
+print_label = Печать
+download.title = Загрузить
+download_label = Загрузить
+bookmark.title = СÑылка на текущий вид (Ñкопировать или открыть в новом окне)
+bookmark_label = Текущий вид
+tools.title = ИнÑтрументы
+tools_label = ИнÑтрументы
+first_page.title = Перейти на первую Ñтраницу
+first_page.label = Перейти на первую Ñтраницу
+first_page_label = Перейти на первую Ñтраницу
+last_page.title = Перейти на поÑледнюю Ñтраницу
+last_page.label = Перейти на поÑледнюю Ñтраницу
+last_page_label = Перейти на поÑледнюю Ñтраницу
+page_rotate_cw.title = Повернуть по чаÑовой Ñтрелке
+page_rotate_cw.label = Повернуть по чаÑовой Ñтрелке
+page_rotate_cw_label = Повернуть по чаÑовой Ñтрелке
+page_rotate_ccw.title = Повернуть против чаÑовой Ñтрелки
+page_rotate_ccw.label = Повернуть против чаÑовой Ñтрелки
+page_rotate_ccw_label = Повернуть против чаÑовой Ñтрелки
+hand_tool_enable.title = Включить ИнÑтрумент «Рука»
+hand_tool_enable_label = Включить ИнÑтрумент «Рука»
+hand_tool_disable.title = Отключить ИнÑтрумент «Рука»
+hand_tool_disable_label = Отключить ИнÑтрумент «Рука»
+document_properties.title = СвойÑтва документа…
+document_properties_label = СвойÑтва документа…
+document_properties_file_name = Ð˜Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð°:
+document_properties_file_size = Размер файла:
+document_properties_kb = {{size_kb}} КБ ({{size_b}} байт)
+document_properties_mb = {{size_mb}} МБ ({{size_b}} байт)
+document_properties_title = Заголовок:
+document_properties_author = Ðвтор:
+document_properties_subject = Тема:
+document_properties_keywords = Ключевые Ñлова:
+document_properties_creation_date = Дата ÑозданиÑ:
+document_properties_modification_date = Дата изменениÑ:
+document_properties_date_string = {{date}}, {{time}}
+document_properties_creator = Приложение:
+document_properties_producer = Производитель PDF:
+document_properties_version = ВерÑÐ¸Ñ PDF:
+document_properties_page_count = ЧиÑло Ñтраниц:
+document_properties_close = Закрыть
+toggle_sidebar.title = Открыть/закрыть боковую панель
+toggle_sidebar_label = Открыть/закрыть боковую панель
+outline.title = Показать Ñодержание документа
+outline_label = Содержание документа
+attachments.title = Показать вложениÑ
+attachments_label = ВложениÑ
+thumbs.title = Показать миниатюры
+thumbs_label = Миниатюры
+findbar.title = Ðайти в документе
+findbar_label = Ðайти
+thumb_page_title = Страница {{page}}
+thumb_page_canvas = Миниатюра Ñтраницы {{page}}
+find_label = Ðайти:
+find_previous.title = Ðайти предыдущее вхождение фразы в текÑÑ‚
+find_previous_label = Ðазад
+find_next.title = Ðайти Ñледующее вхождение фразы в текÑÑ‚
+find_next_label = Далее
+find_highlight = ПодÑветить вÑе
+find_match_case_label = С учётом региÑтра
+find_reached_top = ДоÑтигнут верх документа, продолжено Ñнизу
+find_reached_bottom = ДоÑтигнут конец документа, продолжено Ñверху
+find_not_found = Фраза не найдена
+error_more_info = Детали
+error_less_info = Скрыть детали
+error_close = Закрыть
+error_version_info = PDF.js v{{version}} (Ñборка: {{build}})
+error_message = Сообщение: {{message}}
+error_stack = Стeк: {{stack}}
+error_file = Файл: {{file}}
+error_line = Строка: {{line}}
+rendering_error = При Ñоздании Ñтраницы произошла ошибка.
+page_scale_width = По ширине Ñтраницы
+page_scale_fit = По размеру Ñтраницы
+page_scale_auto = ÐвтоматичеÑки
+page_scale_actual = Реальный размер
+page_scale_percent = {{scale}}%
+loading_error_indicator = Ошибка
+loading_error = При загрузке PDF произошла ошибка.
+invalid_file_error = Ðекорректный или повреждённый PDF-файл.
+missing_file_error = PDF-файл отÑутÑтвует.
+unexpected_response_error = Ðеожиданный ответ Ñервера.
+text_annotation_type.alt = [ÐÐ½Ð½Ð¾Ñ‚Ð°Ñ†Ð¸Ñ {{type}}]
+password_label = Введите пароль, чтобы открыть Ñтот PDF-файл.
+password_invalid = Ðеверный пароль. ПожалуйÑта, попробуйте Ñнова.
+password_ok = OK
+password_cancel = Отмена
+printing_not_supported = Предупреждение: Ð’ Ñтом браузере не полноÑтью поддерживаетÑÑ Ð¿ÐµÑ‡Ð°Ñ‚ÑŒ.
+printing_not_ready = Предупреждение: PDF не полноÑтью загружен Ð´Ð»Ñ Ð¿ÐµÑ‡Ð°Ñ‚Ð¸.
+web_fonts_disabled = Веб-шрифты отключены: невозможно иÑпользовать вÑтроенные PDF-шрифты.
+document_colors_disabled = PDF-документам не разрешено иÑпользовать Ñвои цвета: в браузере отключён параметр «Разрешить веб-Ñайтам иÑпользовать Ñвои цвета».
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/rw/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/rw/viewer.properties
new file mode 100644
index 00000000..97681016
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/rw/viewer.properties
@@ -0,0 +1,73 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+
+zoom.title=Ihindurangano
+open_file.title=Gufungura Dosiye
+open_file_label=Gufungura
+
+# Secondary toolbar and context menu
+
+
+# Document properties dialog box
+document_properties_title=Umutwe:
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+findbar_label=Gushakisha
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+
+# Find panel button title and messages
+find_label="Gushaka:"
+find_previous.title=Gushaka aho uyu murongo ugaruka mbere y'aha
+find_next.title=Gushaka aho uyu murongo wongera kugaruka
+find_not_found=Umurongo ntubonetse
+
+# Error panel labels
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+
+# Predefined zoom values
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+
+# Loading indicator messages
+loading_error_indicator=Ikosa
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+password_invalid=Ijambo ry'ibanga ridahari. Wakongera ukagerageza
+password_ok=YEGO
+password_cancel=Kureka
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sah/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sah/viewer.properties
new file mode 100644
index 00000000..1b844d68
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sah/viewer.properties
@@ -0,0 +1,163 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Инники ÑирÑй
+previous_label=ИннинÑÑҕи
+next.title=ÐныгыÑкы ÑирÑй
+next_label=ÐныгыÑкы
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=СирÑй:
+page_of=мантан {{pageCount}}
+
+zoom_out.title=Куччат
+zoom_out_label=Куччат
+zoom_in.title=Улаатыннар
+zoom_in_label=Улаатыннар
+zoom.title=Улаатыннар
+presentation_mode.title=Көрдөрөр ÑÑ€ÑÑиимҥÑ
+presentation_mode_label=Көрдөрөр ÑÑ€ÑÑиим
+open_file.title=БилÑни арый
+open_file_label=ÐÑ
+print.title=БÑчÑÑÑ‚
+print_label=БÑчÑÑÑ‚
+download.title=Хачайдааһын
+download_label=Хачайдааһын
+bookmark.title=Билиҥҥи көÑÑ‚Ò¯Ò¯Ñ‚Ñ (хатылаа ÑбÑÑ‚ÑÑ€ Ñаҥа Ñ‚Ò¯Ð½Ð½Ò¯ÐºÐºÑ Ð°Ñ€Ñ‹Ð¹)
+bookmark_label=Билиҥҥи көÑтүүтÑ
+
+# Secondary toolbar and context menu
+tools.title=ТÑриллÑÑ€
+tools_label=ТÑриллÑÑ€
+first_page.title=БаÑтакы ÑирÑÐ¹Ð³Ñ ÐºÓ©Ñ
+first_page.label=БаÑтакы ÑирÑÐ¹Ð³Ñ ÐºÓ©Ñ
+first_page_label=БаÑтакы ÑирÑÐ¹Ð³Ñ ÐºÓ©Ñ
+last_page.title=ТиһÑÑ… ÑирÑÐ¹Ð³Ñ ÐºÓ©Ñ
+last_page.label=ТиһÑÑ… ÑирÑÐ¹Ð³Ñ ÐºÓ©Ñ
+last_page_label=ТиһÑÑ… ÑирÑÐ¹Ð³Ñ ÐºÓ©Ñ
+page_rotate_cw.title=Чаһы хоту Ñргит
+page_rotate_cw.label=Чаһы хоту Ñргит
+page_rotate_cw_label=Чаһы хоту Ñргит
+page_rotate_ccw.title=Чаһы утары Ñргит
+page_rotate_ccw.label=Чаһы утары Ñргит
+page_rotate_ccw_label=Чаһы утары Ñргит
+
+hand_tool_enable.title=«Илии» диÑн Ñ‚Ñрили холбоо
+hand_tool_enable_label=«Илии» диÑн Ñ‚Ñрили холбоо
+hand_tool_disable.title=«Илии» диÑн Ñ‚Ñрили араар
+hand_tool_disable_label=«Илии» диÑн Ñ‚Ñрили араар
+
+# Document properties dialog box
+document_properties.title=Докумуон туруоруулара...
+document_properties_label=Докумуон туруоруулара...\u0020
+document_properties_file_name=Ð‘Ð¸Ð»Ñ Ð°Ð°Ñ‚Ð°:
+document_properties_file_size=Ð‘Ð¸Ð»Ñ ÐºÑÑмÑйÑ:
+document_properties_kb={{size_kb}} КБ ({{size_b}} баайт)
+document_properties_mb={{size_mb}} МБ ({{size_b}} баайт)
+document_properties_title=Баһа:
+document_properties_author=Ðаптар:
+document_properties_subject=ТиÑмÑ:
+document_properties_keywords=ÐšÒ¯Ð»Ò¯Ò¯Ñ Ñ‚Ñ‹Ð»:
+document_properties_creation_date=Оҥоһуллубут кÑмÑ:
+document_properties_modification_date=Уларытыллыбыт кÑмÑ:
+document_properties_date_string={{date}}, {{time}}
+document_properties_producer=PDF оҥорооччу:
+document_properties_version=PDF барыла:
+document_properties_page_count=СирÑй ахÑаана:
+document_properties_close=Сап
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=ÐžÐ¹Ð¾Ò•Ð¾Ñ Ñ…Ð°Ð¿Ñ‚Ð°Ð»Ñ‹ арый/Ñап
+toggle_sidebar_label=ÐžÐ¹Ð¾Ò•Ð¾Ñ Ñ…Ð°Ð¿Ñ‚Ð°Ð»Ñ‹ арый/Ñап
+outline.title=Дөкүмүөн иһинÑÑҕитин көрдөр
+outline_label=Дөкүмүөн иһинÑÑҕитÑ
+attachments.title=Кыбытыктары көрдөр
+attachments_label=Кыбытык
+thumbs.title=Ойуучааннары көрдөр
+thumbs_label=Ойуучааннар
+findbar.title=ДөкүмүөнтÑн бул
+findbar_label=Бул
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=СирÑй {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=СирÑй ойуучаана {{page}}
+
+# Find panel button title and messages
+find_label=Бул:
+find_previous.title=Этии тиÑкиÑÐºÑ Ð±Ñƒ иннинÑÑҕи киириитин бул
+find_previous_label=ИннинÑÑҕи
+find_next.title=Этии тиÑкиÑÐºÑ Ð±Ñƒ кÑннинÑÑҕи киириитин бул
+find_next_label=ÐныгыÑкы
+find_highlight=Барытын Ñырдатан көрдөр
+find_match_case_label=Буукуба улаханын-кыратын араар
+find_reached_top=СирÑй үрдүгÑÑ€ тиийдиҥ, Ñалгыыта аллара
+find_reached_bottom=СирÑй бүттÑ, Ò¯Ó©Ò»Ñ Ñалҕанна
+find_not_found=Этии көÑтүбÑÑ‚Ñ
+
+# Error panel labels
+error_more_info=Сиһилии
+error_less_info=Сиһилиитин киÑÑ‚ÑÑ
+error_close=Сап
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (хомуйуута: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Этии: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Стeк: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=БилÑ: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=УÑтуруока: {{line}}
+rendering_error=СирÑйи айарга Ð°Ð»Ò•Ð°Ñ Ñ‚Ð°Ò•Ñ‹Ñта.
+
+# Predefined zoom values
+page_scale_width=СирÑй кÑтитинÑн
+page_scale_fit=СирÑй кÑÑмÑйинÑн
+page_scale_auto=Ðптамаатынан
+page_scale_actual=ДьиҥнÑÑÑ… кÑÑмÑйÑ
+
+# Loading indicator messages
+loading_error_indicator=ÐлҕаÑ
+loading_error=PDF-билÑни хачайдыырга Ð°Ð»Ò•Ð°Ñ Ñ‚Ð°Ò•Ñ‹Ñта.
+invalid_file_error=Туох ÑÑ€Ñ Ð°Ð»Ò•Ð°Ñтаах ÑбÑÑ‚ÑÑ€ алдьаммыт PDF-билÑ.
+missing_file_error=PDF-Ð±Ð¸Ð»Ñ Ñуох.
+unexpected_response_error=СиÑрбÑÑ€ хоруйдаабат.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} туһунан]
+password_label=Бу PDF-билÑни арыйарга көмүÑкÑл тылы киллÑриÑÑ…Ñ‚ÑÑхин.
+password_invalid=Киирии тыл алҕаÑтаах. Бука диÑн, хатылаан көр.
+password_ok=СӨП
+password_cancel=Салҕаама
+
+printing_not_supported=СÑÑ€Ñтии: Бу браузер бÑчÑÑттиири толору өйөөбөт.
+printing_not_ready=СÑÑ€Ñтии: PDF бÑчÑÑÑ‚Ñ‚Ð¸Ð¸Ñ€Ð³Ñ Ñ‚Ð¾Ð»Ð¾Ñ€Ñƒ хачайдана илик.
+web_fonts_disabled=Ситим-бичиктÑÑ€ араарыллыахтара: PDF бичиктÑÑ€Ñ ÐºÑ‹Ð°Ð¹Ð°Ð½ көÑтүбÑÑ‚Ñ‚ÑÑ€.
+document_colors_disabled=PDF-дөкүмүөүннÑÑ€Ð³Ñ Ð±ÑйÑлÑрин өҥнөрүн туттар көҥүллÑммÑÑ‚Ñ: "Ситим-ÑирдÑÑ€ бÑйÑлÑрин өҥнөрүн тутталларын көҥүллүүргÑ" диÑн браузерга арахÑа Ñылдьар Ñбит.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/si/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/si/viewer.properties
new file mode 100644
index 00000000..060c12db
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/si/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=මීට පෙර පිටුව
+previous_label=පෙර
+next.title=මීළඟ පිටුව
+next_label=මීළඟ
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=පිටුව:
+page_of={{pageCount}} කින්
+
+zoom_out.title=කුඩ෠කරන්න
+zoom_out_label=කුඩ෠කරන්න
+zoom_in.title=විà·à·à¶½ කරන්න
+zoom_in_label=විà·à·à¶½ කරන්න
+zoom.title=විà·à·à¶½à¶«à¶º
+presentation_mode.title=ඉදිරිපත්කිරීම් ප්â€à¶»à¶šà·à¶»à¶º වෙත මà·à¶»à·”වන්න
+presentation_mode_label=ඉදිරිපත්කිරීම් ප්â€à¶»à¶šà·à¶»à¶º
+open_file.title=ගොනුව විවෘත කරන්න
+open_file_label=විවෘත කරන්න
+print.title=මුද්â€à¶»à¶«à¶º
+print_label=මුද්â€à¶»à¶«à¶º
+download.title=බà·à¶œà¶±à·Šà¶±
+download_label=බà·à¶œà¶±à·Šà¶±
+bookmark.title=දà·à¶±à¶§ ඇති දසුන (පිටපත් කරන්න හ෠නව කවුළුවක විවෘත කරන්න)
+bookmark_label=දà·à¶±à¶§ ඇති දසුන
+
+# Secondary toolbar and context menu
+tools.title=මෙවලම්
+tools_label=මෙවලම්
+first_page.title=මුල් පිටුවට යන්න
+first_page.label=මුල් පිටුවට යන්න
+first_page_label=මුල් පිටුවට යන්න
+last_page.title=අවසන් පිටුවට යන්න
+last_page.label=අවසන් පිටුවට යන්න
+last_page_label=අවසන් පිටුවට යන්න
+page_rotate_cw.title=දක්à·à·’ණà·à·€à¶»à·Šà¶­à·€ භ්â€à¶»à¶¸à¶«à¶º
+page_rotate_cw.label=දක්à·à·’ණà·à·€à¶»à·Šà¶­à·€ භ්â€à¶»à¶¸à¶«à¶º
+page_rotate_cw_label=දක්à·à·’ණà·à·€à¶»à·Šà¶­à·€ භ්â€à¶»à¶¸à¶«à¶º
+page_rotate_ccw.title=à·€à·à¶¸à·à·€à¶»à·Šà¶­à·€ භ්â€à¶»à¶¸à¶«à¶º
+page_rotate_ccw.label=à·€à·à¶¸à·à·€à¶»à·Šà¶­à·€ භ්â€à¶»à¶¸à¶«à¶º
+page_rotate_ccw_label=à·€à·à¶¸à·à·€à¶»à·Šà¶­à·€ භ්â€à¶»à¶¸à¶«à¶º
+
+hand_tool_enable.title=හස්ත මෙවලම සක්â€à¶»à·“ය
+hand_tool_enable_label=හස්ත මෙවලම සක්â€à¶»à·“ය
+hand_tool_disable.title=හස්ත මෙවලම අක්â€à¶»à·“ය
+hand_tool_disable_label=හස්ත මෙවලම අක්â€à¶»à·“ය
+
+# Document properties dialog box
+document_properties.title=ලේඛන වත්කම්...
+document_properties_label=ලේඛන වත්කම්...
+document_properties_file_name=ගොනු නම:
+document_properties_file_size=ගොනු ප්â€à¶»à¶¸à·à¶«à¶º:
+document_properties_kb={{size_kb}} KB ({{size_b}} බයිට)
+document_properties_mb={{size_mb}} MB ({{size_b}} බයිට)
+document_properties_title=සිරස්තලය:
+document_properties_author=කතෲ
+document_properties_subject=මà·à¶­à·˜à¶šà·à·€:
+document_properties_keywords=යතුරු වදන්:
+document_properties_creation_date=නිර්මිත දිනය:
+document_properties_modification_date=වෙනස්කල දිනය:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=නිර්මà·à¶´à¶š:
+document_properties_producer=PDF නිà·à·Šà¶´à·à¶¯à¶š:
+document_properties_version=PDF නිකුතුව:
+document_properties_page_count=පිටු ගණන:
+document_properties_close=වසන්න
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=පà·à¶­à·’ තීරුවට මà·à¶»à·”වන්න
+toggle_sidebar_label=පà·à¶­à·’ තීරුවට මà·à¶»à·”වන්න
+outline.title=ලේඛනයේ පිට මà·à¶ºà·’ම පෙන්වන්න
+outline_label=ලේඛනයේ පිට මà·à¶ºà·’ම
+attachments.title=ඇමිණුම් පෙන්වන්න
+attachments_label=ඇමිණුම්
+thumbs.title=සිඟිති රූ පෙන්වන්න
+thumbs_label=සිඟිති රූ
+findbar.title=ලේඛනය තුළ සොයන්න
+findbar_label=සොයන්න
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=පිටුව {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=පිටුවෙ සිඟිත රූව {{page}}
+
+# Find panel button title and messages
+find_label=සොයන්න:
+find_previous.title=මේ à·€à·à¶šà·Šâ€à¶º ඛණ්ඩය මීට පෙර යෙදුණු ස්ථà·à¶±à¶º සොයන්න
+find_previous_label=පෙර:
+find_next.title=මේ à·€à·à¶šà·Šâ€à¶º ඛණ්ඩය මීළඟට යෙදෙන ස්ථà·à¶±à¶º සොයන්න
+find_next_label=මීළඟ
+find_highlight=සියල්ල උද්දීපනය
+find_match_case_label=අකුරු ගළපන්න
+find_reached_top=පිටුවේ ඉහළ කෙළවරට ලගà·à·€à·’ය, පහළ සිට ඉදිරියට යමින්
+find_reached_bottom=පිටුවේ පහළ කෙළවරට ලගà·à·€à·’ය, ඉහළ සිට ඉදිරියට යමින්
+find_not_found=ඔබ සෙව් වචන හමු නොවීය
+
+# Error panel labels
+error_more_info=බොහ෠තොරතුරු
+error_less_info=අවම තොරතුරු
+error_close=වසන්න
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (නිකුතුව: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=පණිවිඩය: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ගොනුව: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=පේළිය: {{line}}
+rendering_error=පිටුව රෙන්ඩර් විමේදි ගà·à¶§à¶½à·”වක් හට ගà·à¶±à·”ණි.
+
+# Predefined zoom values
+page_scale_width=පිටුවේ පළල
+page_scale_fit=පිටුවට සුදුසු ලෙස
+page_scale_auto=ස්වයංක්â€à¶»à·“ය විà·à·à¶½à¶«à¶º
+page_scale_actual=නියමිත ප්â€à¶»à¶¸à·à¶«à¶º
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=දà·à·‚ය
+loading_error=PDF පූරණය විමේදි දà·à·‚යක් හට ගà·à¶±à·”ණි.
+invalid_file_error=දූà·à·’ත à·„à· à·ƒà·à·€à¶¯à·Šâ€à¶º PDF ගොනුව.
+missing_file_error=නà·à¶­à·’වූ PDF ගොනුව.
+unexpected_response_error=බලà·à¶´à·œà¶»à·œà¶­à·Šà¶­à·” නොවූ සේවà·à¶¯à·à¶ºà¶š ප්â€à¶»à¶­à·’චà·à¶»à¶º.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} විස්තරය]
+password_label=මෙම PDF ගොනුව විවෘත කිරීමට මුරපදය ඇතුළත් කරන්න.
+password_invalid=à·€à·à¶»à¶¯à·’ මුරපදයක්. කරුණà·à¶šà¶» නà·à·€à¶­ උත්සහ කරන්න.
+password_ok=හරි
+password_cancel=එපà·
+
+printing_not_supported=අවවà·à¶¯à¶ºà¶ºà·’: මෙම ගවේà·à¶šà¶º මුද්â€à¶»à¶«à¶º සඳහ෠සම්පූර්ණයෙන් සහය නොදක්වයි.
+printing_not_ready=අවවà·à¶¯à¶ºà¶ºà·’: මුද්â€à¶»à¶«à¶º සඳහ෠PDF සම්පූර්ණයෙන් පූර්ණය වී නොමà·à¶­.
+web_fonts_disabled=ජà·à¶½ අකුරු අක්â€à¶»à·“යයි: තිළà·à¶½à·’ PDF අකුරු භà·à·€à·’ත කළ නොහà·à¶š.
+document_colors_disabled=PDF ලේඛනයට ඔවුන්ගේම වර්ණ භà·à·€à·’තයට ඉඩ නොලà·à¶¶à·š: 'පිටු වෙත ඔවුන්ගේම වර්ණ භà·à·€à·’තයට ඉඩදෙන්න' ගවේà·à¶šà¶º මත අක්â€à¶»à·“ය කර ඇත.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sk/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sk/viewer.properties
new file mode 100644
index 00000000..5a9d1a8a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sk/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Predchádzajúca strana
+previous_label=Predchádzajúca
+next.title=Nasledujúca strana
+next_label=Nasledujúca
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Strana:
+page_of=z {{pageCount}}
+
+zoom_out.title=Vzdialiť
+zoom_out_label=Vzdialiť
+zoom_in.title=Priblížiť
+zoom_in_label=Priblížiť
+zoom.title=Lupa
+presentation_mode.title=Prepnúť na režim Prezentácia
+presentation_mode_label=Režim Prezentácia
+open_file.title=Otvoriť súbor
+open_file_label=Otvoriť
+print.title=TlaÄiÅ¥
+print_label=TlaÄiÅ¥
+download.title=Prevziať
+download_label=Prevziať
+bookmark.title=Aktuálne zobrazenie (kopírovať alebo otvoriť v novom okne)
+bookmark_label=Aktuálne zobrazenie
+
+# Secondary toolbar and context menu
+tools.title=Nástroje
+tools_label=Nástroje
+first_page.title=Prejsť na prvú stranu
+first_page.label=Prejsť na prvú stranu
+first_page_label=Prejsť na prvú stranu
+last_page.title=Prejsť na poslednú stranu
+last_page.label=Prejsť na poslednú stranu
+last_page_label=Prejsť na poslednú stranu
+page_rotate_cw.title=OtoÄiÅ¥ v smere hodinových ruÄiÄiek
+page_rotate_cw.label=OtoÄiÅ¥ v smere hodinových ruÄiÄiek
+page_rotate_cw_label=OtoÄiÅ¥ v smere hodinových ruÄiÄiek
+page_rotate_ccw.title=OtoÄiÅ¥ proti smeru hodinových ruÄiÄiek
+page_rotate_ccw.label=OtoÄiÅ¥ proti smeru hodinových ruÄiÄiek
+page_rotate_ccw_label=OtoÄiÅ¥ proti smeru hodinových ruÄiÄiek
+
+hand_tool_enable.title=Zapnúť nástroj Ruka
+hand_tool_enable_label=Zapnúť nástroj Ruka
+hand_tool_disable.title=Vypnúť nástroj Ruka
+hand_tool_disable_label=Vypnúť nástroj Ruka
+
+# Document properties dialog box
+document_properties.title=Vlastnosti dokumentu…
+document_properties_label=Vlastnosti dokumentu…
+document_properties_file_name=Názov súboru:
+document_properties_file_size=Veľkosť súboru:
+document_properties_kb={{size_kb}} kB ({{size_b}} bajtov)
+document_properties_mb={{size_mb}} MB ({{size_b}} bajtov)
+document_properties_title=Názov:
+document_properties_author=Autor:
+document_properties_subject=Predmet:
+document_properties_keywords=KľúÄové slová:
+document_properties_creation_date=Dátum vytvorenia:
+document_properties_modification_date=Dátum úpravy:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Vytvoril:
+document_properties_producer=Tvorca PDF:
+document_properties_version=Verzia PDF:
+document_properties_page_count=PoÄet strán:
+document_properties_close=Zavrieť
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Prepnúť boÄný panel
+toggle_sidebar_label=Prepnúť boÄný panel
+outline.title=Zobraziť prehľad dokumentu
+outline_label=Prehľad dokumentu
+attachments.title=Zobraziť prílohy
+attachments_label=Prílohy
+thumbs.title=Zobraziť miniatúry
+thumbs_label=Miniatúry
+findbar.title=Hľadať v dokumente
+findbar_label=Hľadať
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Strana {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatúra strany {{page}}
+
+# Find panel button title and messages
+find_label=Hľadať:
+find_previous.title=Vyhľadať predchádzajúci výskyt reťazca
+find_previous_label=Predchádzajúce
+find_next.title=VyhľadaÅ¥ Äalší výskyt reÅ¥azca
+find_next_label=Ďalšie
+find_highlight=Zvýrazniť všetky
+find_match_case_label=Rozlišovať malé/veľké písmená
+find_reached_top=Bol dosiahnutý zaÄiatok stránky, pokraÄuje sa od konca
+find_reached_bottom=Bol dosiahnutý koniec stránky, pokraÄuje sa od zaÄiatku
+find_not_found=Výraz nebol nájdený
+
+# Error panel labels
+error_more_info=Viac informácií
+error_less_info=Menej informácií
+error_close=Zavrieť
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (zostavenie: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Správa: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Zásobník: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Súbor: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Riadok: {{line}}
+rendering_error=Pri vykresľovaní stránky sa vyskytla chyba.
+
+# Predefined zoom values
+page_scale_width=Na šírku strany
+page_scale_fit=Na veľkosť strany
+page_scale_auto=Automatická veľkosť
+page_scale_actual=SkutoÄná veľkosÅ¥
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Chyba
+loading_error=PoÄas naÄítavania dokumentu PDF sa vyskytla chyba.
+invalid_file_error=Neplatný alebo poškodený súbor PDF.
+missing_file_error=Chýbajúci súbor PDF.
+unexpected_response_error=NeoÄakávaná odpoveÄ zo servera.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Anotácia typu {{type}}]
+password_label=Ak chcete otvoriť tento súbor PDF, zadajte jeho heslo.
+password_invalid=Heslo nie je platné. Skúste to znova.
+password_ok=OK
+password_cancel=Zrušiť
+
+printing_not_supported=Upozornenie: tlaÄ nie je v tomto prehliadaÄi plne podporovaná.
+printing_not_ready=Upozornenie: súbor PDF nie je plne naÄítaný pre tlaÄ.
+web_fonts_disabled=Webové písma sú vypnuté: nie je možné použiť písma vložené do súboru PDF.
+document_colors_disabled=Dokumenty PDF nemajú povolené používaÅ¥ vlastné farby, pretože voľba "PovoliÅ¥ stránkam používaÅ¥ vlastné farby" je v nastaveniach prehliadaÄa vypnutá.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sl/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sl/viewer.properties
new file mode 100644
index 00000000..bdc7fff8
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sl/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Prejšnja stran
+previous_label=Nazaj
+next.title=Naslednja stran
+next_label=Naprej
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Stran:
+page_of=od {{pageCount}}
+
+zoom_out.title=Pomanjšaj
+zoom_out_label=Pomanjšaj
+zoom_in.title=PoveÄaj
+zoom_in_label=PoveÄaj
+zoom.title=PoveÄava
+presentation_mode.title=Preklopi v naÄin predstavitve
+presentation_mode_label=NaÄin predstavitve
+open_file.title=Odpri datoteko
+open_file_label=Odpri
+print.title=Natisni
+print_label=Natisni
+download.title=Prenesi
+download_label=Prenesi
+bookmark.title=Trenutni pogled (kopiraj ali odpri v novem oknu)
+bookmark_label=Trenutni pogled
+
+# Secondary toolbar and context menu
+tools.title=Orodja
+tools_label=Orodja
+first_page.title=Pojdi na prvo stran
+first_page.label=Pojdi na prvo stran
+first_page_label=Pojdi na prvo stran
+last_page.title=Pojdi na zadnjo stran
+last_page.label=Pojdi na zadnjo stran
+last_page_label=Pojdi na zadnjo stran
+page_rotate_cw.title=Zavrti v smeri urninega kazalca
+page_rotate_cw.label=Zavrti v smeri urninega kazalca
+page_rotate_cw_label=Zavrti v smeri urninega kazalca
+page_rotate_ccw.title=Zavrti v nasprotni smeri urninega kazalca
+page_rotate_ccw.label=Zavrti v nasprotni smeri urninega kazalca
+page_rotate_ccw_label=Zavrti v nasprotni smeri urninega kazalca
+
+hand_tool_enable.title=OmogoÄi roko
+hand_tool_enable_label=OmogoÄi roko
+hand_tool_disable.title=OnemogoÄi roko
+hand_tool_disable_label=OnemogoÄi roko
+
+# Document properties dialog box
+document_properties.title=Lastnosti dokumenta …
+document_properties_label=Lastnosti dokumenta …
+document_properties_file_name=Ime datoteke:
+document_properties_file_size=Velikost datoteke:
+document_properties_kb={{size_kb}} KB ({{size_b}} bajtov)
+document_properties_mb={{size_mb}} MB ({{size_b}} bajtov)
+document_properties_title=Ime:
+document_properties_author=Avtor:
+document_properties_subject=Tema:
+document_properties_keywords=KljuÄne besede:
+document_properties_creation_date=Datum nastanka:
+document_properties_modification_date=Datum spremembe:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Ustvaril:
+document_properties_producer=Izdelovalec PDF:
+document_properties_version=RazliÄica PDF:
+document_properties_page_count=Å tevilo strani:
+document_properties_close=Zapri
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Preklopi stransko vrstico
+toggle_sidebar_label=Preklopi stransko vrstico
+outline.title=Prikaži oris dokumenta
+outline_label=Oris dokumenta
+attachments.title=Prikaži priponke
+attachments_label=Priponke
+thumbs.title=Prikaži sliÄice
+thumbs_label=SliÄice
+findbar.title=Iskanje po dokumentu
+findbar_label=Iskanje
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Stran {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=SliÄica strani {{page}}
+
+# Find panel button title and messages
+find_label=Najdi:
+find_previous.title=Najdi prejšnjo ponovitev iskanega
+find_previous_label=Najdi nazaj
+find_next.title=Najdi naslednjo ponovitev iskanega
+find_next_label=Najdi naprej
+find_highlight=OznaÄi vse
+find_match_case_label=Razlikuj velike/male Ärke
+find_reached_top=Dosežen zaÄetek dokumenta iz smeri konca
+find_reached_bottom=Doseženo konec dokumenta iz smeri zaÄetka
+find_not_found=Iskanega ni mogoÄe najti
+
+# Error panel labels
+error_more_info=VeÄ informacij
+error_less_info=Manj informacij
+error_close=Zapri
+# LOCALIZATION NOTE (error_build): "{{build}}" will be replaced by the PDF.JS
+# build ID.
+error_version_info=PDF.js r{{version}} (graditev: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=SporoÄilo: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Sklad: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Datoteka: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Vrstica: {{line}}
+rendering_error=Med pripravljanjem strani je prišlo do napake!
+
+# Predefined zoom values
+page_scale_width=Å irina strani
+page_scale_fit=Prilagodi stran
+page_scale_auto=Samodejno
+page_scale_actual=Dejanska velikost
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}} %
+
+# Loading indicator messages
+loading_error_indicator=Napaka
+loading_error=Med nalaganjem datoteke PDF je prišlo do napake.
+invalid_file_error=Neveljavna ali pokvarjena datoteka PDF.
+missing_file_error=Ni datoteke PDF.
+unexpected_response_error=NepriÄakovan odgovor strežnika.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Opomba vrste {{type}}]
+password_label=Vnesite geslo za odpiranje te datoteke PDF.
+password_invalid=Neveljavno geslo. Poskusite znova.
+password_ok=V redu
+password_cancel=PrekliÄi
+
+printing_not_supported=Opozorilo: ta brskalnik ne podpira vseh možnosti tiskanja.
+printing_not_ready=Opozorilo: PDF ni v celoti naložen za tiskanje.
+web_fonts_disabled=Spletne pisave so onemogoÄene: vgradnih pisav za PDF ni mogoÄe uporabiti.
+document_colors_disabled=Dokumenti PDF ne smejo uporabljati svojih lastnih barv: možnost 'Dovoli stranem uporabo lastnih barv' je v brskalniku onemogoÄena.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/son/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/son/viewer.properties
new file mode 100644
index 00000000..23f23bfb
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/son/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Moo bisante
+previous_label=Bisante
+next.title=Jinehere moo
+next_label=Jine
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=&Moo:
+page_of={{pageCount}} ga
+
+zoom_out.title=Nakasandi
+zoom_out_label=Nakasandi
+zoom_in.title=Bebbeerandi
+zoom_in_label=Bebbeerandi
+zoom.title=Bebbeerandi
+presentation_mode.title=Bere cebeyan alhaali
+presentation_mode_label=Cebeyan alhaali
+open_file.title=Tuku feeri
+open_file_label=Feeri
+print.title=Kar
+print_label=Kar
+download.title=Zumandi
+download_label=Zumandi
+bookmark.title=Sohõ gunarro (bere wala feeri zanfun taaga ra)
+bookmark_label=Sohõ gunaroo
+
+# Secondary toolbar and context menu
+tools.title=Goyjinawey
+tools_label=Goyjinawey
+first_page.title=Koy moo jinaa ga
+first_page.label=Koy moo jinaa ga
+first_page_label=Koy moo jinaa ga
+last_page.title=Koy moo koraa ga
+last_page.label=Koy moo koraa ga
+last_page_label=Koy moo koraa ga
+page_rotate_cw.title=Kuubi kanbe guma here
+page_rotate_cw.label=Kuubi kanbe guma here
+page_rotate_cw_label=Kuubi kanbe guma here
+page_rotate_ccw.title=Kuubi kanbe wowa here
+page_rotate_ccw.label=Kuubi kanbe wowa here
+page_rotate_ccw_label=Kuubi kanbe wowa here
+
+hand_tool_enable.title=Kanbe goyjinay tunandi
+hand_tool_enable_label=Kanbe goyjinay tunandi
+hand_tool_disable.title=Kanbe joyjinay kaa
+hand_tool_disable_label=Kanbe goyjinay kaa
+
+# Document properties dialog box
+document_properties.title=Takadda mayrawey…
+document_properties_label=Takadda mayrawey…
+document_properties_file_name=Tuku maa:
+document_properties_file_size=Tuku adadu:
+document_properties_kb=KB {{size_kb}} (cebsu-ize {{size_b}})
+document_properties_mb=MB {{size_kb}} (cebsu-ize {{size_b}})
+document_properties_title=Tiiramaa:
+document_properties_author=Hantumkaw:
+document_properties_subject=Dalil:
+document_properties_keywords=Kufalkalimawey:
+document_properties_creation_date=Teeyan han:
+document_properties_modification_date=Barmayan han:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Teekaw:
+document_properties_producer=PDF berandikaw:
+document_properties_version=PDF dumi:
+document_properties_page_count=Moo hinna:
+document_properties_close=Daabu
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Kanjari ceraw zuu
+toggle_sidebar_label=Kanjari ceraw zuu
+outline.title=Takadda filla-boŋ cebe
+outline_label=Takadda filla-boŋ
+attachments.title=Hangarey cebe
+attachments_label=Hangarey
+thumbs.title=Kabeboy biyey cebe
+thumbs_label=Kabeboy biyey
+findbar.title=Ceeci takaddaa ra
+findbar_label=Ceeci
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title={{page}} moo
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Kabeboy bii {{page}} moo Å¡e
+
+# Find panel button title and messages
+find_label=Ceeci:
+find_previous.title=Kalimaɲaŋoo bangayri bisantaa ceeci
+find_previous_label=Bisante
+find_next.title=Kalimaɲaŋoo hiino bangayroo ceeci
+find_next_label=Jine
+find_highlight=Ikul Å¡ilbay
+find_match_case_label=Harfu-beeriyan hawgay
+find_reached_top=A too moŋoo boŋoo, koy jine ka šinitin nda cewoo
+find_reached_bottom=A too moɲoo cewoo, koy jine šintioo ga
+find_not_found=Kalimaɲaa mana duwandi
+
+# Error panel labels
+error_more_info=Alhabar tontoni
+error_less_info=Alhabar tontoni
+error_close=Daabu
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Alhabar: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Dekeri: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Tuku: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Žeeri: {{line}}
+rendering_error=Firka bangay kaŋ moɲoo goo ma willandi.
+
+# Predefined zoom values
+page_scale_width=Mooo hayyan
+page_scale_fit=Moo sawayan
+page_scale_auto=Boŋše azzaati barmayyan
+page_scale_actual=Adadu cimi
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Firka
+loading_error=Firka bangay kaŋ PDF goo ma zumandi.
+invalid_file_error=PDF tuku laala wala laybante.
+missing_file_error=PDF tuku kumante.
+unexpected_response_error=Manti feršikaw tuuruyan maatante.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt={{type}} maasa-caw]
+password_label=Å ennikufal dam ka PDF tukoo woo feeri.
+password_invalid=Å ennikufal laalo. Ceeci koyne taare.
+password_ok=Ayyo
+password_cancel=Naŋ
+
+printing_not_supported=Yaamar: Karyan Å¡i tee ka timme nda ceecikaa woo.
+printing_not_ready=Yaamar: PDF Å¡i zunbu ka timme karyan Å¡e.
+web_fonts_disabled=Interneti Å¡igirawey kay: Å¡i hin ka goy nda PDF Å¡igira hurantey.
+document_colors_disabled=PDF takaddawey ši duu fondo ka ngey boŋ noonawey zaa: 'Naŋ moɲey ma ngey boŋ noonawey suuba' ši dira ceecikaa ga.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sq/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sq/viewer.properties
new file mode 100644
index 00000000..8d17d777
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sq/viewer.properties
@@ -0,0 +1,165 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Faqja e Mëparshme
+previous_label=E mëparshmja
+next.title=Faqja Pasuese
+next_label=Pasuesja
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Faqja:
+page_of=nga {{pageCount}}
+
+zoom_out.title=Zoom Out
+zoom_out_label=Zoom Out
+zoom_in.title=Zoom In
+zoom_in_label=Zoom In
+zoom.title=Zoom
+print.title=Shtype
+print_label=Shtypeni
+presentation_mode.title=Kalo te Mënyra Paraqitje
+presentation_mode_label=Mënyra Paraqitje
+open_file.title=Hapni Kartelë
+open_file_label=Hapeni
+download.title=Shkarkim
+download_label=Shkarkojeni
+bookmark.title=Pamja e tanishme (kopjojeni ose hapeni në dritare të re)
+bookmark_label=Pamja e Tanishme
+
+# Secondary toolbar and context menu
+tools.title=Mjete
+tools_label=Mjete
+first_page.title=Shkoni te Faqja e Parë
+first_page.label=Shkoni te Faqja e Parë
+first_page_label=Shkoni te Faqja e Parë
+last_page.title=Shkoni te Faqja e Fundit
+last_page.label=Shkoni te Faqja e Fundit
+last_page_label=Shkoni te Faqja e Fundit
+page_rotate_cw.title=Rrotullojeni Në Kahun Orar
+page_rotate_cw.label=Rrotullojeni Në Kahun Orar
+page_rotate_cw_label=Rrotullojeni Në Kahun Orar
+page_rotate_ccw.title=Rrotullojeni Në Kahun Kundërorar
+page_rotate_ccw.label=Rrotullojeni Në Kahun Kundërorar
+page_rotate_ccw_label=Rrotullojeni Në Kahun Kundërorar
+
+hand_tool_enable.title=Aktivizoni mjet dore
+hand_tool_enable_label=Aktivizoni mjet dore
+hand_tool_disable.title=Çaktivizoni mjet dore
+hand_tool_disable_label=Çaktivizoni mjet dore
+
+# Document properties dialog box
+document_properties.title=Veti Dokumenti…
+document_properties_label=Veti Dokumenti…
+document_properties_file_name=Emër kartele:
+document_properties_file_size=Madhësi kartele:
+document_properties_kb={{size_kb}} KB ({{size_b}} bajte)
+document_properties_mb={{size_mb}} MB ({{size_b}} bajte)
+document_properties_title=Titull:
+document_properties_author=Autor:
+document_properties_subject=Subjekt:
+document_properties_keywords=Fjalëkyçe:
+document_properties_creation_date=Datë Krijimi:
+document_properties_modification_date=Datë Ndryshimi:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Krijues:
+document_properties_producer=Prodhues PDF-je:
+document_properties_version=Version PDF-je:
+document_properties_page_count=Numër Faqesh:
+document_properties_close=Mbylle
+
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Shfaqni/Fshihni Anështyllën
+toggle_sidebar_label=Shfaqni/Fshihni Anështyllën
+outline.title=Shfaq Përvijim Dokumenti
+outline_label=Shfaq Përvijim Dokumenti
+attachments.title=Shfaq Bashkëngjitje
+attachments_label=Bashkëngjitje
+thumbs.title=Shfaq Miniatura
+thumbs_label=Miniatura
+findbar.title=Gjej në Dokument
+findbar_label=Gjej
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Faqja {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniaturë e Faqes {{page}}
+
+# Context menu
+first_page.label=Kalo te Faqja e Parë
+last_page.label=Kalo te Faqja e Fundit
+page_rotate_cw.label=Rrotulloje Në Kahun Orar
+page_rotate_ccw.label=Rrotulloje Në Kahun Antiorar
+
+# Find panel button title and messages
+find_label=Gjej:
+find_previous.title=Gjeni hasjen e mëparshme të togfjalëshit
+find_previous_label=E mëparshmja
+find_next.title=Gjeni hasjen pasuese të togfjalëshit
+find_next_label=Pasuesja
+find_highlight=Theksoji të gjitha
+find_match_case_label=Siç është shkruar
+find_reached_top=U mbërrit në krye të dokumentit, vazhduar prej fundit
+find_reached_bottom=U mbërrit në fund të dokumentit, vazhduar prej kreut
+find_not_found=Nuk u gjet togfjalëshi
+
+# Error panel labels
+error_more_info=Më Tepër të Dhëna
+error_less_info=Më Pak të Dhëna
+error_close=Mbylle
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mesazh: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Kartelë: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Rresht: {{line}}
+rendering_error=Ndodhi një gabim gjatë riprodhimit të faqes.
+
+# Predefined zoom values
+page_scale_width=Gjerësi Faqeje
+page_scale_fit=Sa Nxë Faqja
+page_scale_auto=Zoom i Vetvetishëm
+page_scale_actual=Madhësia Faktike
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+# LOCALIZATION NOTE (error_line): "{{[percent}}" will be replaced with a percentage
+loading_error_indicator=Gabim
+loading_error=Ndodhi një gabim gjatë ngarkimit të PDF-së.
+invalid_file_error=Kartelë PDF e pavlefshme ose e dëmtuar.
+missing_file_error=Kartelë PDF që mungon.
+unexpected_response_error=Përgjigje shërbyesi e papritur.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Nënvizim {{type}}]
+password_label=Jepni fjalëkalimin që të hapet kjo kartelë PDF.
+password_invalid=Fjalëkalim i pavlefshëm. Ju lutemi, riprovoni.
+password_ok=OK
+password_cancel=Anuloje
+
+printing_not_supported=Kujdes: Shtypja nuk mbulohet plotësisht nga ky shfletues.
+printing_not_ready=Kujdes: PDF-ja nuk është ngarkuar plotësisht që ta shtypni.
+web_fonts_disabled=Shkronjat Web janë të çaktivizuara: i pazoti të përdorë shkronja të trupëzuara në PDF.
+document_colors_disabled=Dokumenteve PDF nuk u është lejuar të përdorin ngjyrat e veta: &apos;Lejoji faqet t&apos;i zgjedhin vetë ngjyrat&apos;, te shfletuesi, është e çaktivizuar.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sr/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sr/viewer.properties
new file mode 100644
index 00000000..0603d887
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sr/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Претходна Ñтраница
+previous_label=Претходна
+next.title=Следећа Ñтраница
+next_label=Следећа
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Страница:
+page_of=од {{pageCount}}
+
+zoom_out.title=Умањи
+zoom_out_label=Умањи
+zoom_in.title=Увеличај
+zoom_in_label=Увеличај
+zoom.title=Зумирање
+presentation_mode.title=Промени на приказ у режиму презентације
+presentation_mode_label=Режим презентације
+open_file.title=Отвори датотеку
+open_file_label=Отвори
+print.title=Штампај
+print_label=Штампај
+download.title=Преузми
+download_label=Преузми
+bookmark.title=Тренутни приказ (копирај или отвори нови прозор)
+bookmark_label=Тренутни приказ
+
+# Secondary toolbar and context menu
+tools.title=Ðлатке
+tools_label=Ðлатке
+first_page.title=Иди на прву Ñтраницу
+first_page.label=Иди на прву Ñтраницу
+first_page_label=Иди на прву Ñтраницу
+last_page.title=Иди на поÑледњу Ñтраницу
+last_page.label=Иди на поÑледњу Ñтраницу
+last_page_label=Иди на поÑледњу Ñтраницу
+page_rotate_cw.title=Ротирај у Ñмеру казаљке на Ñату
+page_rotate_cw.label=Ротирај у Ñмеру казаљке на Ñату
+page_rotate_cw_label=Ротирај у Ñмеру казаљке на Ñату
+page_rotate_ccw.title=Ротирај у Ñмеру Ñупротном од казаљке на Ñату
+page_rotate_ccw.label=Ротирај у Ñмеру Ñупротном од казаљке на Ñату
+page_rotate_ccw_label=Ротирај у Ñмеру Ñупротном од казаљке на Ñату
+
+hand_tool_enable.title=Омогући алатку за померање
+hand_tool_enable_label=Омогући алатку за померање
+hand_tool_disable.title=Онемогући алатку за померање
+hand_tool_disable_label=Онемогући алатку за померање
+
+# Document properties dialog box
+document_properties.title=Параметри документа…
+document_properties_label=Параметри документа…
+document_properties_file_name=Име датотеке:
+document_properties_file_size=Величина датотеке:
+document_properties_kb={{size_kb}} KB ({{size_b}} B)
+document_properties_mb={{size_mb}} MB ({{size_b}} B)
+document_properties_title=ÐаÑлов:
+document_properties_author=Ðутор:
+document_properties_subject=Тема:
+document_properties_keywords=Кључне речи:
+document_properties_creation_date=Датум креирања:
+document_properties_modification_date=Датум модификације:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Стваралац:
+document_properties_producer=PDF произвођач:
+document_properties_version=PDF верзија:
+document_properties_page_count=Број Ñтраница:
+document_properties_close=Затвори
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Прикажи додатну палету
+toggle_sidebar_label=Прикажи додатну палету
+outline.title=Прикажи контуру документа
+outline_label=Контура документа
+attachments.title=Прикажи прилоге
+attachments_label=Прилози
+thumbs.title=Прикажи Ñличице
+thumbs_label=Сличице
+findbar.title=Пронађи у документу
+findbar_label=Пронађи
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Страница {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Сличица од Ñтранице {{page}}
+
+# Find panel button title and messages
+find_label=Пронађи:
+find_previous.title=Пронађи претходну појаву фразе
+find_previous_label=Претходна
+find_next.title=Пронађи Ñледећу појаву фразе
+find_next_label=Следећа
+find_highlight=ИÑтакнути Ñве
+find_match_case_label=Подударања
+find_reached_top=ДоÑтигнут врх документа, наÑтавио Ñа дна
+find_reached_bottom=ДоÑтигнуто дно документа, наÑтавио Ñа врха
+find_not_found=Фраза није пронађена
+
+# Error panel labels
+error_more_info=Више информација
+error_less_info=Мање информација
+error_close=Затвори
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Порука: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Стек: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Датотека: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Линија: {{line}}
+rendering_error=Дошло је до грешке приликом рендеровања ове Ñтранице.
+
+# Predefined zoom values
+page_scale_width=Ширина Ñтранице
+page_scale_fit=Уклапање Ñтранице
+page_scale_auto=ÐутоматÑко увеличавање
+page_scale_actual=Стварна величина
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Грешка
+loading_error=Дошло је до грешке приликом учитавања PDF-а.
+invalid_file_error=PDF датотека је оштећена или је неиÑправна.
+missing_file_error=PDF датотека није пронађена.
+unexpected_response_error=Ðеочекиван одговор од Ñервера.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} коментар]
+password_label=УнеÑите лозинку да биÑте отворили овај PDF докуменат.
+password_invalid=ÐеиÑправна лозинка. Покушајте поново.
+password_ok=У реду
+password_cancel=Откажи
+
+printing_not_supported=Упозорење: Штампање није у потпуноÑти подржано у овом прегледачу.
+printing_not_ready=Упозорење: PDF није у потпуноÑти учитан за штампу.
+web_fonts_disabled=Веб фонтови Ñу онемогућени: не могу кориÑтити уграђене PDF фонтове.
+document_colors_disabled=PDF документи не могу да кориÑте ÑопÑтвене боје: “Дозволи Ñтраницама да изаберу Ñвоје боје†је деактивирано у прегледачу.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sv-SE/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sv-SE/viewer.properties
new file mode 100644
index 00000000..4c9d0401
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sv-SE/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Föregående sida
+previous_label=Föregående
+next.title=Nästa sida
+next_label=Nästa
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Sida:
+page_of=av {{pageCount}}
+
+zoom_out.title=Zooma ut
+zoom_out_label=Zooma ut
+zoom_in.title=Zooma in
+zoom_in_label=Zooma in
+zoom.title=Zoom
+presentation_mode.title=Byt till presentationsläge
+presentation_mode_label=Presentationsläge
+open_file.title=Öppna fil
+open_file_label=Öppna
+print.title=Skriv ut
+print_label=Skriv ut
+download.title=Hämta
+download_label=Hämta
+bookmark.title=Aktuell vy (kopiera eller öppna i nytt fönster)
+bookmark_label=Aktuell vy
+
+# Secondary toolbar and context menu
+tools.title=Verktyg
+tools_label=Verktyg
+first_page.title=Gå till första sidan
+first_page.label=Gå till första sidan
+first_page_label=Gå till första sidan
+last_page.title=GÃ¥ till sista sidan
+last_page.label=GÃ¥ till sista sidan
+last_page_label=GÃ¥ till sista sidan
+page_rotate_cw.title=Rotera medurs
+page_rotate_cw.label=Rotera medurs
+page_rotate_cw_label=Rotera medurs
+page_rotate_ccw.title=Rotera moturs
+page_rotate_ccw.label=Rotera moturs
+page_rotate_ccw_label=Rotera moturs
+
+hand_tool_enable.title=Aktivera handverktyg
+hand_tool_enable_label=Aktivera handverktyg
+hand_tool_disable.title=Inaktivera handverktyg
+hand_tool_disable_label=Inaktivera handverktyg
+
+# Document properties dialog box
+document_properties.title=Dokumentegenskaper…
+document_properties_label=Dokumentegenskaper…
+document_properties_file_name=Filnamn:
+document_properties_file_size=Filstorlek:
+document_properties_kb={{size_kb}} kB ({{size_b}} byte)
+document_properties_mb={{size_mb}} MB ({{size_b}} byte)
+document_properties_title=Titel:
+document_properties_author=Författare:
+document_properties_subject=Ämne:
+document_properties_keywords=Nyckelord:
+document_properties_creation_date=Skapades:
+document_properties_modification_date=Ändrades:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Skapare:
+document_properties_producer=PDF-producent:
+document_properties_version=PDF-version:
+document_properties_page_count=Sidantal:
+document_properties_close=Stäng
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Visa/dölj sidofält
+toggle_sidebar_label=Visa/dölj sidofält
+outline.title=Visa dokumentöversikt
+outline_label=Dokumentöversikt
+attachments.title=Visa Bilagor
+attachments_label=Bilagor
+thumbs.title=Visa miniatyrer
+thumbs_label=Miniatyrer
+findbar.title=Sök i dokument
+findbar_label=Sök
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Sida {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Miniatyr av sida {{page}}
+
+# Find panel button title and messages
+find_label=Sök:
+find_previous.title=Hitta föregående förekomst av frasen
+find_previous_label=Föregående
+find_next.title=Hitta nästa förekomst av frasen
+find_next_label=Nästa
+find_highlight=Markera alla
+find_match_case_label=Matcha versal/gemen
+find_reached_top=Nådde början av dokumentet, började från slutet
+find_reached_bottom=Nådde slutet på dokumentet, började från början
+find_not_found=Frasen hittades inte
+
+# Error panel labels
+error_more_info=Mer information
+error_less_info=Mindre information
+error_close=Stäng
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Meddelande: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Fil: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Rad: {{line}}
+rendering_error=Ett fel uppstod vid visning av sidan.
+
+# Predefined zoom values
+page_scale_width=Sidbredd
+page_scale_fit=Anpassa sida
+page_scale_auto=Automatisk zoom
+page_scale_actual=Verklig storlek
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Fel
+loading_error=Ett fel uppstod vid laddning av PDF-filen.
+invalid_file_error=Ogiltig eller korrupt PDF-fil.
+missing_file_error=Saknad PDF-fil.
+unexpected_response_error=Oväntat svar från servern.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}}-annotering]
+password_label=Skriv in lösenordet för att öppna PDF-filen.
+password_invalid=Ogiltigt lösenord. Försök igen.
+password_ok=OK
+password_cancel=Avbryt
+
+printing_not_supported=Varning: Utskrifter stöds inte helt av den här webbläsaren.
+printing_not_ready=Varning: PDF:en är inte klar för utskrift.
+web_fonts_disabled=Webbtypsnitt är inaktiverade: kan inte använda inbäddade PDF-typsnitt.
+document_colors_disabled=PDF-dokument tillåts inte använda egna färger: 'Låt sidor använda egna färger' är inaktiverat i webbläsaren.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sw/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sw/viewer.properties
new file mode 100644
index 00000000..88d0d359
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/sw/viewer.properties
@@ -0,0 +1,123 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Ukurasa Uliotangulia
+previous_label=Iliyotangulia
+next.title=Ukurasa Ufuatao
+next_label=Ifuatayo
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Ukurasa:
+page_of=ya {{Hesabu ya ukurasa}}
+
+zoom_out.title=Kuza Nje
+zoom_out_label=Kuza Nje
+zoom_in.title=Kuza Ndani
+zoom_in_label=Kuza Ndani
+zoom.title=Kuza
+presentation_mode.title=Badili kwa Hali ya Uwasilishaji
+presentation_mode_label=Hali ya Uwasilishaji
+open_file.title=Fungua Faili
+open_file_label=Fungua
+print.title=Chapisha
+print_label=Chapisha
+download.title=Pakua
+download_label=Pakua
+bookmark.title=Mwonekano wa sasa (nakili au ufungue katika dirisha mpya)
+bookmark_label=Mwonekano wa Sasa
+
+# Secondary toolbar and context menu
+
+
+# Document properties dialog box
+document_properties_title=Kichwa:
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Kibiano cha Upau wa Kando
+toggle_sidebar_label=Kibiano cha Upau wa Kando
+outline.title=Onyesha Ufupisho wa Waraka
+outline_label=Ufupisho wa Waraka
+thumbs.title=Onyesha Kijipicha
+thumbs_label=Vijipicha
+findbar.title=Pata katika Waraka
+findbar_label=Tafuta
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Ukurasa {{ukurasa}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Kijipicha cha ukurasa {{ukurasa}}
+
+# Find panel button title and messages
+find_label=Tafuta:
+find_previous.title=Tafuta tukio kabla ya msemo huu
+find_previous_label=Iliyotangulia
+find_next.title=Tafuta tukio linalofuata la msemo
+find_next_label=Ifuatayo
+find_highlight=Angazia yote
+find_match_case_label=Linganisha herufi
+find_reached_top=Imefika juu ya waraka, imeendelea kutoka chini
+find_reached_bottom=Imefika mwisho wa waraka, imeendelea kutoka juu
+find_not_found=Msemo hukupatikana
+
+# Error panel labels
+error_more_info=Maelezo Zaidi
+error_less_info=Maelezo Kidogo
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (jenga: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Ujumbe: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Panganya: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Faili: {{faili}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Laini: {{laini}}
+rendering_error=Hitilafu lilitokea wajati wa kutoa ukurasa
+
+# Predefined zoom values
+page_scale_width=Upana wa Ukurasa
+page_scale_fit=Usawa wa Ukurasa
+page_scale_auto=Ukuzaji wa Kiotomatiki
+page_scale_actual=Ukubwa Halisi
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+
+# Loading indicator messages
+loading_error_indicator=Hitilafu
+loading_error=Hitilafu lilitokea wakati wa kupakia PDF.
+invalid_file_error=Faili ya PDF isiyohalali au potofu.
+missing_file_error=Faili ya PDF isiyopo.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Ufafanuzi]
+password_ok=SAWA
+password_cancel=Ghairi
+
+printing_not_supported=Onyo: Uchapishaji hauauniwi kabisa kwa kivinjari hiki.
+web_fonts_disabled=Fonti za tovuti zimelemazwa: haziwezi kutumia fonti za PDF zilizopachikwa.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ta-LK/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ta-LK/viewer.properties
new file mode 100644
index 00000000..77c9f4f2
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ta-LK/viewer.properties
@@ -0,0 +1,64 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+
+zoom.title=அளவà¯
+open_file.title=கோபà¯à®ªà®¿à®©à¯ˆà®¤à¯ திறகà¯à®•
+open_file_label=திறகà¯à®•
+
+# Secondary toolbar and context menu
+
+
+# Document properties dialog box
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+
+# Find panel button title and messages
+find_previous.title=இநà¯à®¤ சொறà¯à®±à¯Šà®Ÿà®°à®¿à®©à¯ à®®à¯à®©à¯à®©à¯ˆà®¯ நிகழà¯à®µà¯ˆ தேடà¯
+find_next.title=இநà¯à®¤ சொறà¯à®±à¯Šà®Ÿà®°à®¿à®©à¯ அடà¯à®¤à¯à®¤ நிகழà¯à®µà¯ˆà®¤à¯ தேடà¯
+
+# Error panel labels
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+
+# Predefined zoom values
+
+# Loading indicator messages
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+password_ok=ஆமà¯
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ta/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ta/viewer.properties
new file mode 100644
index 00000000..787e278e
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ta/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=à®®à¯à®¨à¯à®¤à¯ˆà®¯ பகà¯à®•à®®à¯
+previous_label=à®®à¯à®¨à¯à®¤à¯ˆà®¯à®¤à¯
+next.title=அடà¯à®¤à¯à®¤ பகà¯à®•à®®à¯
+next_label=அடà¯à®¤à¯à®¤à¯
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=பகà¯à®•à®®à¯:
+page_of=இல௠{{pageCount}}
+
+zoom_out.title=சிறிதாகà¯à®•à¯
+zoom_out_label=சிறிதாகà¯à®•à¯
+zoom_in.title=பெரிதாகà¯à®•à¯
+zoom_in_label=பெரிதாகà¯à®•à¯
+zoom.title=பெரிதாகà¯à®•à¯
+presentation_mode.title=விளகà¯à®•à®•à®¾à®Ÿà¯à®šà®¿ பயனà¯à®®à¯à®±à¯ˆà®•à¯à®•à¯ மாறà¯
+presentation_mode_label=விளகà¯à®•à®•à®¾à®Ÿà¯à®šà®¿ பயனà¯à®®à¯à®±à¯ˆ
+open_file.title=கோபà¯à®ªà®¿à®©à¯ˆ திற
+open_file_label=திற
+print.title=அசà¯à®šà®¿à®Ÿà¯
+print_label=அசà¯à®šà®¿à®Ÿà¯
+download.title=பதிவிறகà¯à®•à¯
+download_label=பதிவிறகà¯à®•à¯
+bookmark.title=தறà¯à®ªà¯‹à®¤à¯ˆà®¯ காடà¯à®šà®¿ (பà¯à®¤à®¿à®¯ சாளரதà¯à®¤à®¿à®±à¯à®•à¯ நகலெட௠அலà¯à®²à®¤à¯ பà¯à®¤à®¿à®¯ சாளரதà¯à®¤à®¿à®²à¯ திற)
+bookmark_label=தறà¯à®ªà¯‹à®¤à¯ˆà®¯ காடà¯à®šà®¿
+
+# Secondary toolbar and context menu
+tools.title=கரà¯à®µà®¿à®•à®³à¯
+tools_label=கரà¯à®µà®¿à®•à®³à¯
+first_page.title=à®®à¯à®¤à®²à¯ பகà¯à®•à®¤à¯à®¤à®¿à®±à¯à®•à¯ செலà¯à®²à®µà¯à®®à¯
+first_page.label=à®®à¯à®¤à®²à¯ பகà¯à®•à®¤à¯à®¤à®¿à®±à¯à®•à¯ செலà¯à®²à®µà¯à®®à¯
+first_page_label=à®®à¯à®¤à®²à¯ பகà¯à®•à®¤à¯à®¤à®¿à®±à¯à®•à¯ செலà¯à®²à®µà¯à®®à¯
+last_page.title=கடைசி பகà¯à®•à®¤à¯à®¤à®¿à®±à¯à®•à¯ செலà¯à®²à®µà¯à®®à¯
+last_page.label=கடைசி பகà¯à®•à®¤à¯à®¤à®¿à®±à¯à®•à¯ செலà¯à®²à®µà¯à®®à¯
+last_page_label=கடைசி பகà¯à®•à®¤à¯à®¤à®¿à®±à¯à®•à¯ செலà¯à®²à®µà¯à®®à¯
+page_rotate_cw.title=வலஞà¯à®šà¯à®´à®¿à®¯à®¾à®• சà¯à®´à®±à¯à®±à¯
+page_rotate_cw.label=வலஞà¯à®šà¯à®´à®¿à®¯à®¾à®• சà¯à®´à®±à¯à®±à¯
+page_rotate_cw_label=வலஞà¯à®šà¯à®´à®¿à®¯à®¾à®• சà¯à®´à®±à¯à®±à¯
+page_rotate_ccw.title=இடஞà¯à®šà¯à®´à®¿à®¯à®¾à®• சà¯à®´à®±à¯à®±à¯
+page_rotate_ccw.label=இடஞà¯à®šà¯à®´à®¿à®¯à®¾à®• சà¯à®´à®±à¯à®±à¯
+page_rotate_ccw_label=இடஞà¯à®šà¯à®´à®¿à®¯à®¾à®• சà¯à®´à®±à¯à®±à¯
+
+hand_tool_enable.title=கை கரà¯à®µà®¿à®¯à¯ˆ செயலாகà¯à®•à¯
+hand_tool_enable_label=கை கரà¯à®µà®¿à®¯à¯ˆ செயலாகà¯à®•à¯
+hand_tool_disable.title=கை கரà¯à®µà®¿à®¯à¯ˆ à®®à¯à®Ÿà®•à¯à®•à¯
+hand_tool_disable_label=கை கரà¯à®µà®¿à®¯à¯ˆ à®®à¯à®Ÿà®•à¯à®•à¯
+
+# Document properties dialog box
+document_properties.title=ஆவண பணà¯à®ªà¯à®•à®³à¯...
+document_properties_label=ஆவண பணà¯à®ªà¯à®•à®³à¯...
+document_properties_file_name=கோபà¯à®ªà¯ பெயரà¯:
+document_properties_file_size=கோபà¯à®ªà®¿à®©à¯ அளவà¯:
+document_properties_kb={{size_kb}} கிபை ({{size_b}} பைடà¯à®Ÿà¯à®•à®³à¯)
+document_properties_mb={{size_mb}} மெபை ({{size_b}} பைடà¯à®Ÿà¯à®•à®³à¯)
+document_properties_title=தலைபà¯à®ªà¯:
+document_properties_author=எழà¯à®¤à®¿à®¯à®µà®°à¯
+document_properties_subject=பொரà¯à®³à¯:
+document_properties_keywords=à®®à¯à®•à¯à®•à®¿à®¯ வாரà¯à®¤à¯à®¤à¯ˆà®•à®³à¯:
+document_properties_creation_date=படைதà¯à®¤ தேதி :
+document_properties_modification_date=திரà¯à®¤à¯à®¤à®¿à®¯ தேதி:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=உரà¯à®µà®¾à®•à¯à®•à¯à®ªà®µà®°à¯:
+document_properties_producer=பிடிஎஃப௠தயாரிபà¯à®ªà®¾à®³à®°à¯:
+document_properties_version=PDF பதிபà¯à®ªà¯:
+document_properties_page_count=பகà¯à®• எணà¯à®£à®¿à®•à¯à®•à¯ˆ:
+document_properties_close=மூடà¯à®•
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=பகà¯à®•à®ªà¯ படà¯à®Ÿà®¿à®¯à¯ˆ நிலைமாறà¯à®±à¯
+toggle_sidebar_label=பகà¯à®•à®ªà¯ படà¯à®Ÿà®¿à®¯à¯ˆ நிலைமாறà¯à®±à¯
+outline.title=ஆவண வெளிவரையைக௠காணà¯à®ªà®¿
+outline_label=ஆவண வெளிவரை
+attachments.title=இணைபà¯à®ªà¯à®•à®³à¯ˆ காணà¯à®ªà®¿
+attachments_label=இணைபà¯à®ªà¯à®•à®³à¯
+thumbs.title=சிறà¯à®ªà®Ÿà®™à¯à®•à®³à¯ˆà®•à¯ காணà¯à®ªà®¿
+thumbs_label=சிறà¯à®ªà®Ÿà®™à¯à®•à®³à¯
+findbar.title=ஆவணதà¯à®¤à®¿à®²à¯ கணà¯à®Ÿà®±à®¿
+findbar_label=கணà¯à®Ÿà¯à®ªà®¿à®Ÿà®¿
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=பகà¯à®•à®®à¯ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=பகà¯à®•à®¤à¯à®¤à®¿à®©à¯ சிறà¯à®ªà®Ÿà®®à¯ {{page}}
+
+# Find panel button title and messages
+find_label=கணà¯à®Ÿà®±à®¿:
+find_previous.title=இநà¯à®¤ சொறà¯à®±à¯Šà®Ÿà®°à®¿à®©à¯ à®®à¯à®¨à¯à®¤à¯ˆà®¯ நிகழà¯à®µà¯ˆ தேடà¯
+find_previous_label=à®®à¯à®¨à¯à®¤à¯ˆà®¯à®¤à¯
+find_next.title=இநà¯à®¤ சொறà¯à®±à¯Šà®Ÿà®°à®¿à®©à¯ அடà¯à®¤à¯à®¤ நிகழà¯à®µà¯ˆ தேடà¯
+find_next_label=அடà¯à®¤à¯à®¤à¯
+find_highlight=அனைதà¯à®¤à¯ˆà®¯à¯à®®à¯ தனிபà¯à®ªà®Ÿà¯à®¤à¯à®¤à¯
+find_match_case_label=பேரெழà¯à®¤à¯à®¤à®¾à®•à¯à®•à®¤à¯à®¤à¯ˆ உணரà¯
+find_reached_top=ஆவணதà¯à®¤à®¿à®©à¯ மேல௠பகà¯à®¤à®¿à®¯à¯ˆ அடைநà¯à®¤à®¤à¯, அடிபà¯à®ªà®•à¯à®•à®¤à¯à®¤à®¿à®²à®¿à®°à¯à®¨à¯à®¤à¯ தொடரà¯à®¨à¯à®¤à®¤à¯
+find_reached_bottom=ஆவணதà¯à®¤à®¿à®©à¯ à®®à¯à®Ÿà®¿à®µà¯ˆ அடைநà¯à®¤à®¤à¯, மேலிரà¯à®¨à¯à®¤à¯ தொடரà¯à®¨à¯à®¤à®¤à¯
+find_not_found=சொறà¯à®±à¯Šà®Ÿà®°à¯ காணவிலà¯à®²à¯ˆ
+
+# Error panel labels
+error_more_info=கூடà¯à®¤à®²à¯ தகவலà¯
+error_less_info=கà¯à®±à¯ˆà®¨à¯à®¤ தகவலà¯
+error_close=மூடà¯à®•
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=செயà¯à®¤à®¿: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=ஸà¯à®Ÿà¯‡à®•à¯: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=கோபà¯à®ªà¯: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=வரி: {{line}}
+rendering_error=இநà¯à®¤à®ªà¯ பகà¯à®•à®¤à¯à®¤à¯ˆ காடà¯à®šà®¿à®ªà¯à®ªà®Ÿà¯à®¤à¯à®¤à¯à®®à¯ போத௠ஒர௠பிழை à®à®±à¯à®ªà®Ÿà¯à®Ÿà®¤à¯.
+
+# Predefined zoom values
+page_scale_width=பகà¯à®• அகலமà¯
+page_scale_fit=பகà¯à®•à®ªà¯ பொரà¯à®¤à¯à®¤à®®à¯
+page_scale_auto=தானியகà¯à®• பெரிதாகà¯à®•à®²à¯
+page_scale_actual=உணà¯à®®à¯ˆà®¯à®¾à®© அளவà¯
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=பிழை
+loading_error=PDF à® à®à®±à¯à®±à¯à®®à¯ போத௠ஒர௠பிழை à®à®±à¯à®ªà®Ÿà¯à®Ÿà®¤à¯.
+invalid_file_error=செலà¯à®²à¯à®ªà®Ÿà®¿à®¯à®¾à®•à®¾à®¤ அலà¯à®²à®¤à¯ சிதைநà¯à®¤ PDF கோபà¯à®ªà¯.
+missing_file_error=PDF கோபà¯à®ªà¯ காணவிலà¯à®²à¯ˆ.
+unexpected_response_error=சேவகன௠பதில௠எதிரà¯à®ªà®¾à®°à®¤à®¤à¯.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} விளகà¯à®•à®®à¯]
+password_label=இநà¯à®¤ PDF கோபà¯à®ªà¯ˆ திறகà¯à®• கடவà¯à®šà¯à®šà¯†à®¾à®²à¯à®²à¯ˆ உளà¯à®³à®¿à®Ÿà®µà¯à®®à¯.
+password_invalid=செலà¯à®²à¯à®ªà®Ÿà®¿à®¯à®¾à®•à®¾à®¤ கடவà¯à®šà¯à®šà¯Šà®²à¯, தயை செயà¯à®¤à¯ மீணà¯à®Ÿà¯à®®à¯ à®®à¯à®¯à®±à¯à®šà®¿ செயà¯à®•.
+password_ok=சரி
+password_cancel=இரதà¯à®¤à¯
+
+printing_not_supported=எசà¯à®šà®°à®¿à®•à¯à®•à¯ˆ: இநà¯à®¤ உலாவி அசà¯à®šà®¿à®Ÿà¯à®¤à®²à¯ˆ à®®à¯à®´à¯à®®à¯ˆà®¯à®¾à®• ஆதரிகà¯à®•à®µà®¿à®²à¯à®²à¯ˆ.
+printing_not_ready=எசà¯à®šà®°à®¿à®•à¯à®•à¯ˆ: PDF அசà¯à®šà®¿à®Ÿ à®®à¯à®´à¯à®µà®¤à¯à®®à®¾à®• à®à®±à¯à®±à®ªà¯à®ªà®Ÿà®µà®¿à®²à¯à®²à¯ˆ.
+web_fonts_disabled=வலை எழà¯à®¤à¯à®¤à¯à®°à¯à®•à¯à®•à®³à¯ à®®à¯à®Ÿà®•à¯à®•à®ªà¯à®ªà®Ÿà¯à®Ÿà¯à®³à¯à®³à®©: உடà¯à®ªà¯Šà®¤à®¿à®•à¯à®•à®ªà¯à®ªà®Ÿà¯à®Ÿ PDF எழà¯à®¤à¯à®¤à¯à®°à¯à®•à¯à®•à®³à¯ˆà®ªà¯ பயனà¯à®ªà®Ÿà¯à®¤à¯à®¤ à®®à¯à®Ÿà®¿à®¯à®µà®¿à®²à¯à®²à¯ˆ.
+document_colors_disabled=PDF ஆவணஙà¯à®•à®³à¯à®•à¯à®•à¯ அவறà¯à®±à®¿à®©à¯ சொநà¯à®¤ நிறஙà¯à®•à®³à¯ˆà®ªà¯ பயனà¯à®ªà®Ÿà¯à®¤à¯à®¤ அனà¯à®®à®¤à®¿à®¯à®¿à®²à¯à®²à¯ˆ: உலாவியில௠'பகà¯à®•à®™à¯à®•à®³à¯ தஙà¯à®•à®³à¯ சொநà¯à®¤ நிறஙà¯à®•à®³à¯ˆà®¤à¯ தேரà¯à®µà¯ செயà¯à®¤à¯à®•à¯Šà®³à¯à®³ அனà¯à®®à®¤à®¿' எனà¯à®©à¯à®®à¯ விரà¯à®ªà¯à®ªà®®à¯ à®®à¯à®Ÿà®•à¯à®•à®ªà¯à®ªà®Ÿà¯à®Ÿà¯à®³à¯à®³à®¤à¯.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/te/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/te/viewer.properties
new file mode 100644
index 00000000..bd1ecac4
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/te/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=à°•à±à°°à°¿à°¤à°‚ పేజీ
+previous_label=à°•à±à°°à°¿à°¤à°‚
+next.title=తరà±à°µà°¾à°¤ పేజీ
+next_label=తరà±à°µà°¾à°¤
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=పేజీ:
+page_of=మొతà±à°¤à°‚ {{pageCount}} లో
+
+zoom_out.title=జూమౠతగà±à°—à°¿à°‚à°šà±
+zoom_out_label=జూమౠతగà±à°—à°¿à°‚à°šà±
+zoom_in.title=జూమౠచేయి
+zoom_in_label=జూమౠచేయి
+zoom.title=జూమà±
+presentation_mode.title=à°ªà±à°°à°¦à°°à±à°¶à°¨à°¾ రీతికి మారà±
+presentation_mode_label=à°ªà±à°°à°¦à°°à±à°¶à°¨à°¾ రీతి
+open_file.title=ఫైలౠతెరà±à°µà±
+open_file_label=తెరà±à°µà±
+print.title=à°®à±à°¦à±à°°à°¿à°‚à°šà±
+print_label=à°®à±à°¦à±à°°à°¿à°‚à°šà±
+download.title=డౌనà±à°²à±‹à°¡à±
+download_label=డౌనà±à°²à±‹à°¡à±
+bookmark.title=à°ªà±à°°à°¸à±à°¤à±à°¤ దరà±à°¶à°¨à°‚ (నకలà±à°¤à±€à°¯à°¿ లేదా కొతà±à°¤ విండోనందౠతెరà±à°µà±à°®à±)
+bookmark_label=à°ªà±à°°à°¸à±à°¤à±à°¤ దరà±à°¶à°¨à°‚
+
+# Secondary toolbar and context menu
+tools.title=పనిమà±à°Ÿà±à°²à±
+tools_label=పనిమà±à°Ÿà±à°²à±
+first_page.title=మొదటి పేజీకి వెళà±à°³à±
+first_page.label=మొదటి పేజీకి వెళà±à°³à±
+first_page_label=మొదటి పేజీకి వెళà±à°³à±
+last_page.title=చివరి పేజీకి వెళà±à°³à±
+last_page.label=చివరి పేజీకి వెళà±à°³à±
+last_page_label=చివరి పేజీకి వెళà±à°³à±
+page_rotate_cw.title=సవà±à°¯à°¦à°¿à°¶à°²à±‹ తిపà±à°ªà±à°®à±
+page_rotate_cw.label=సవà±à°¯à°¦à°¿à°¶à°²à±‹ తిపà±à°ªà±à°®à±
+page_rotate_cw_label=సవà±à°¯à°¦à°¿à°¶à°²à±‹ తిపà±à°ªà±à°®à±
+page_rotate_ccw.title=అపసవà±à°¯à°¦à°¿à°¶à°²à±‹ తిపà±à°ªà±à°®à±
+page_rotate_ccw.label=అపసవà±à°¯à°¦à°¿à°¶à°²à±‹ తిపà±à°ªà±à°®à±
+page_rotate_ccw_label=అపసవà±à°¯à°¦à°¿à°¶à°²à±‹ తిపà±à°ªà±à°®à±
+
+hand_tool_enable.title=చేతి సాధనం చేతనించà±
+hand_tool_enable_label=చేతి సాధనం చేతనించà±
+hand_tool_disable.title=చేతి సాధనం అచేతనించà±
+hand_tool_disable_label=చేతి సాధనం అచేతనించà±
+
+# Document properties dialog box
+document_properties.title=పతà±à°°à°®à± లకà±à°·à°£à°¾à°²à±...
+document_properties_label=పతà±à°°à°®à± లకà±à°·à°£à°¾à°²à±...
+document_properties_file_name=దసà±à°¤à±à°°à°‚ పేరà±:
+document_properties_file_size=దసà±à°¤à±à°°à°‚ పరిమాణం:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=శీరà±à°·à°¿à°•:
+document_properties_author=మూలకరà±à°¤:
+document_properties_subject=విషయం:
+document_properties_keywords=కీపదాలà±:
+document_properties_creation_date=సృషà±à°Ÿà°¿à°‚à°šà°¿à°¨ తేదీ:
+document_properties_modification_date=సవరించిన తేదీ:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=సృషà±à°Ÿà°¿à°•à°°à±à°¤:
+document_properties_producer=PDF ఉతà±à°ªà°¾à°¦à°•à°¿:
+document_properties_version=PDF వరà±à°·à°¨à±:
+document_properties_page_count=పేజీల సంఖà±à°¯:
+document_properties_close=మూసివేయి
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=పకà±à°•à°ªà°Ÿà±à°Ÿà±€ మారà±à°šà±
+toggle_sidebar_label=పకà±à°•à°ªà°Ÿà±à°Ÿà±€ మారà±à°šà±
+outline.title=పతà±à°°à°®à± à°…à°µà±à°Ÿà±â€Œà°²à±ˆà°¨à± చూపà±
+outline_label=పతà±à°°à°®à± à°…à°µà±à°Ÿà±â€Œà°²à±ˆà°¨à±
+attachments.title=à°…à°¨à±à°¬à°‚ధాలౠచూపà±
+attachments_label=à°…à°¨à±à°¬à°‚ధాలà±
+thumbs.title=థంబà±â€Œà°¨à±ˆà°²à±à°¸à± చూపà±
+thumbs_label=థంబà±â€Œà°¨à±ˆà°²à±à°¸à±
+findbar.title=à°ˆ పతà±à°°à°®à±à°¨à°‚దౠకనà±à°—ొనà±à°®à±
+findbar_label=à°•à°¨à±à°—ొనà±
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=పేజీ {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=పేజీ {{page}} యొకà±à°• థంబà±â€Œà°¨à±ˆà°²à±
+
+# Find panel button title and messages
+find_label=à°•à°¨à±à°—ొనà±:
+find_previous.title=పదంయొకà±à°• à°®à±à°‚దలి సంభవానà±à°¨à°¿ à°•à°¨à±à°—ొనà±
+find_previous_label=à°®à±à°¨à±à°ªà°Ÿà°¿
+find_next.title=పదం యొకà±à°• తరà±à°µà°¾à°¤à°¿ సంభవానà±à°¨à°¿ à°•à°¨à±à°—ొనà±
+find_next_label=తరà±à°µà°¾à°¤
+find_highlight=à°…à°¨à±à°¨à°¿à°Ÿà°¿à°¨à°¿ ఉదà±à°¦à±€à°ªà°¨à°‚ చేయà±à°®à±
+find_match_case_label=à°…à°•à±à°·à°°à°®à±à°²à°¤à±‡à°¡à°¾à°¤à±‹ పోలà±à°šà±à°®à±
+find_reached_top=పేజీ పైకి చేరà±à°•à±à°¨à±à°¨à°¦à°¿, à°•à±à°°à°¿à°‚ది à°¨à±à°‚à°¡à°¿ కొనసాగించండి
+find_reached_bottom=పేజీ చివరకౠచేరà±à°•à±à°¨à±à°¨à°¦à°¿, పైనà±à°‚à°¡à°¿ కొనసాగించండి
+find_not_found=పదం కనబడలేదà±
+
+# Error panel labels
+error_more_info=మరింత సమాచారం
+error_less_info=తకà±à°•à±à°µ సమాచారం
+error_close=మూసివేయి
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=సందేశం: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=à°¸à±à°Ÿà°¾à°•à±: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=ఫైలà±: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=వరà±à°¸: {{line}}
+rendering_error=పేజీనౠరెండరౠచేయà±à°Ÿà°²à±‹ వొక దోషం యెదà±à°°à±ˆà°‚ది.
+
+# Predefined zoom values
+page_scale_width=పేజీ వెడలà±à°ªà±
+page_scale_fit=పేజీ అమరà±à°ªà±
+page_scale_auto=à°¸à±à°µà°¯à°‚చాలక జూమà±
+page_scale_actual=యథారà±à°§ పరిమాణం
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=దోషం
+loading_error=PDF లోడవà±à°šà±à°¨à±à°¨à°ªà±à°ªà±à°¡à± వొక దోషం యెదà±à°°à±ˆà°‚ది.
+invalid_file_error=చెలà±à°²à°¨à°¿ లేదా పాడైన PDF ఫైలà±.
+missing_file_error=దొరకని PDF ఫైలà±.
+unexpected_response_error=à°…à°¨à±à°•à±‹à°¨à°¿ సేవిక à°¸à±à°ªà°‚దన.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} టీకా]
+password_label=à°ˆ PDF ఫైలౠతెరà±à°šà±à°Ÿà°•à± సంకేతపదం à°ªà±à°°à°µà±‡à°¶à°ªà±†à°Ÿà±à°Ÿà±à°®à±
+password_invalid=సంకేతపదం చెలà±à°²à°¦à±. దయచేసి మళà±à°³à±€ à°ªà±à°°à°¯à°¤à±à°¨à°¿à°‚à°šà°‚à°¡à°¿.
+password_ok=సరే
+password_cancel=à°°à°¦à±à°¦à±à°šà±‡à°¯à°¿
+
+printing_not_supported=హెచà±à°šà°°à°¿à°•: à°ˆ విహారిణి చేత à°®à±à°¦à±à°°à°£ పూరà±à°¤à°¿à°—à°¾ తోడà±à°ªà°¾à°Ÿà±à°¨à±€à°¯à°¬à°¡à±à°Ÿ లేదà±
+printing_not_ready=హెచà±à°šà°°à°¿à°•: à°®à±à°¦à±à°°à°£ కొరకౠఈ PDF పూరà±à°¤à°¿à°—à°¾ లోడవలేదà±.
+web_fonts_disabled=వెబౠఫాంటà±à°²à± అచేతనపరచ బడెనà±: ఎంబెడెడౠPDF ఫాంటà±à°²à± à°µà±à°ªà°¯à±‹à°—ించలేక పోయింది.
+document_colors_disabled=PDF పతà±à°°à°¾à°²à± వాటి à°¸à±à°µà°‚à°¤ à°°à°‚à°—à±à°²à°¨à± à°µà±à°ªà°¯à±‹à°—à°¿à°‚à°šà±à°•à±Šà°¨à±à°Ÿà°•à± à°…à°¨à±à°®à°¤à°¿à°‚చబడవà±: విహరణి నందౠ'పేజీలనౠవాటి à°¸à±à°µà°‚à°¤ à°°à°‚à°—à±à°²à°¨à± యెంచà±à°•à±Šà°¨à±à°Ÿà°•à± à°…à°¨à±à°®à°¤à°¿à°‚à°šà±' à°…à°¨à±à°¨à°¦à°¿ అచేతనం చేయబడివà±à°‚ది.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/th/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/th/viewer.properties
new file mode 100644
index 00000000..9ccaa382
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/th/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=หน้าà¸à¹ˆà¸­à¸™à¸«à¸™à¹‰à¸²
+previous_label=à¸à¹ˆà¸­à¸™à¸«à¸™à¹‰à¸²
+next.title=หน้าถัดไป
+next_label=ถัดไป
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=หน้า:
+page_of=จาภ{{pageCount}}
+
+zoom_out.title=ย่อ
+zoom_out_label=ย่อ Out
+zoom_in.title=ขยาย
+zoom_in_label=ขยาย
+zoom.title=ย่อ-ขยาย
+presentation_mode.title=สลับเข้าสู่รูปà¹à¸šà¸šà¸à¸²à¸£à¸™à¸³à¹€à¸ªà¸™à¸­
+presentation_mode_label=รูปà¹à¸šà¸šà¸à¸²à¸£à¸™à¸³à¹€à¸ªà¸™à¸­
+open_file.title=เปิดà¹à¸Ÿà¹‰à¸¡
+open_file_label=เปิด
+print.title=พิมพ์
+print_label=พิมพ์
+download.title=ดาวน์โหลด
+download_label=ดาวน์โหลด
+bookmark.title=มุมมองปัจจุบัน (คัดลอà¸à¸«à¸£à¸·à¸­à¹€à¸›à¸´à¸”ในหน้าต่างใหม่)
+bookmark_label=มุมมองปัจจุบัน
+
+# Secondary toolbar and context menu
+tools.title=เครื่องมือ
+tools_label=เครื่องมือ
+first_page.title=ไปยังหน้าà¹à¸£à¸
+first_page.label=ไปยังหน้าà¹à¸£à¸
+first_page_label=ไปยังหน้าà¹à¸£à¸
+last_page.title=ไปยังหน้าสุดท้าย
+last_page.label=ไปยังหน้าสุดท้าย
+last_page_label=ไปยังหน้าสุดท้าย
+page_rotate_cw.title=หมุนตามเข็มนาฬิà¸à¸²
+page_rotate_cw.label=หมุนตามเข็มนาฬิà¸à¸²
+page_rotate_cw_label=หมุนตามเข็มนาฬิà¸à¸²
+page_rotate_ccw.title=หมุนทวนเข็มนาฬิà¸à¸²
+page_rotate_ccw.label=หมุนทวนเข็มนาฬิà¸à¸²
+page_rotate_ccw_label=หมุนทวนเข็มนาฬิà¸à¸²
+
+hand_tool_enable.title=เปิดใช้งานเครื่องมือรูปมือ
+hand_tool_enable_label=เปิดใช้งานเครื่องมือรูปมือ
+hand_tool_disable.title=ปิดใช้งานเครื่องมือรูปมือ
+hand_tool_disable_label=ปิดใช้งานเครื่องมือรูปมือ
+
+# Document properties dialog box
+document_properties.title=คุณสมบัติเอà¸à¸ªà¸²à¸£â€¦
+document_properties_label=คุณสมบัติเอà¸à¸ªà¸²à¸£â€¦
+document_properties_file_name=ชื่อà¹à¸Ÿà¹‰à¸¡ :
+document_properties_file_size=ขนาดà¹à¸Ÿà¹‰à¸¡ :
+document_properties_kb={{size_kb}} à¸à¸´à¹‚ลไบต์ ({{size_b}} ไบต์)
+document_properties_mb={{size_mb}} เมà¸à¸°à¹„บต์ ({{size_b}} ไบต์)
+document_properties_title=หัวเรื่อง :
+document_properties_author=ผู้à¹à¸•à¹ˆà¸‡ :
+document_properties_subject=หัวข้อ :
+document_properties_keywords=คำสำคัภ:
+document_properties_creation_date=วันที่สร้าง :
+document_properties_modification_date=วันที่à¹à¸à¹‰à¹„ข :
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=สร้างโดย :
+document_properties_producer=ผู้ผลิต PDF :
+document_properties_version=รุ่น PDF :
+document_properties_page_count=จำนวนหน้า :
+document_properties_close=ปิด
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=สลับà¹à¸–บข้าง
+toggle_sidebar_label=สลับà¹à¸–บข้าง
+outline.title=à¹à¸ªà¸”งโครงเอà¸à¸ªà¸²à¸£
+outline_label=โครงเอà¸à¸ªà¸²à¸£
+attachments.title=à¹à¸ªà¸”งสิ่งที่à¹à¸™à¸šà¸¡à¸²
+attachments_label=สิ่งที่à¹à¸™à¸šà¸¡à¸²
+thumbs.title=à¹à¸ªà¸”งภาพขนาดย่อ
+thumbs_label=ภาพขนาดย่อ
+findbar.title=ค้นหาในเอà¸à¸ªà¸²à¸£
+findbar_label=ค้นหา
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=หน้า {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=ภาพขนาดย่อของหน้า {{page}}
+
+# Find panel button title and messages
+find_label=ค้นหา:
+find_previous.title=หาตำà¹à¸«à¸™à¹ˆà¸‡à¸à¹ˆà¸­à¸™à¸«à¸™à¹‰à¸²à¸‚องคำค้น
+find_previous_label=à¸à¹ˆà¸­à¸™à¸«à¸™à¹‰à¸²
+find_next.title=หาตำà¹à¸«à¸™à¹ˆà¸‡à¸–ัดไปของคำค้น
+find_next_label=ถัดไป
+find_highlight=เน้นสีทั้งหมด
+find_match_case_label=ตัวพิมพ์ตรงà¸à¸±à¸™
+find_reached_top=ค้นหาถึงจุดเริ่มต้นของหน้า เริ่มค้นต่อจาà¸à¸”้านล่าง
+find_reached_bottom=ค้นหาถึงจุดสิ้นสุดหน้า เริ่มค้นต่อจาà¸à¸”้านบน
+find_not_found=ไม่พบวลีที่ต้องà¸à¸²à¸£
+
+# Error panel labels
+error_more_info=ข้อมูลเพิ่มเติม
+error_less_info=ข้อมูลน้อย
+error_close=ปิด
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=ข้อความ: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=สà¹à¸•à¹‡à¸: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=à¹à¸Ÿà¹‰à¸¡: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=บรรทัด: {{line}}
+rendering_error=เà¸à¸´à¸”ข้อผิดพลาดขณะà¸à¸³à¸¥à¸±à¸‡à¸„ำนวณà¸à¸²à¸£à¹à¸ªà¸”งผลของหน้า
+
+# Predefined zoom values
+page_scale_width=ความà¸à¸§à¹‰à¸²à¸‡à¸«à¸™à¹‰à¸²
+page_scale_fit=พอดีหน้า
+page_scale_auto=ย่อ-ขยายอัตโนมัติ
+page_scale_actual=ขนาดเท่าจริง
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=ข้อผิดพลาด
+loading_error=เà¸à¸´à¸”ข้อผิดพลาดขณะà¸à¸³à¸¥à¸±à¸‡à¹‚หลด PDF
+invalid_file_error=à¹à¸Ÿà¹‰à¸¡ PDF ไม่ถูà¸à¸•à¹‰à¸­à¸‡à¸«à¸£à¸·à¸­à¹„ม่สมบูรณ์
+missing_file_error=à¹à¸Ÿà¹‰à¸¡ PDF หาย
+unexpected_response_error=à¸à¸²à¸£à¸•à¸­à¸šà¸ªà¸™à¸­à¸‡à¹€à¸‹à¸´à¸£à¹Œà¸Ÿà¹€à¸§à¸­à¸£à¹Œà¸—ี่ไม่คาดหวัง
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[คำอธิบายประà¸à¸­à¸š {{type}}]
+password_label=ใส่รหัสผ่านเพื่อเปิดไฟล์ PDF นี้
+password_invalid=รหัสผ่านไม่ถูà¸à¸•à¹‰à¸­à¸‡ โปรดลองอีà¸à¸„รั้ง
+password_ok=ตà¸à¸¥à¸‡
+password_cancel=ยà¸à¹€à¸¥à¸´à¸
+
+printing_not_supported=คำเตือน: เบราเซอร์นี้ไม่ได้สนับสนุนà¸à¸²à¸£à¸žà¸´à¸¡à¸žà¹Œà¸­à¸¢à¹ˆà¸²à¸‡à¹€à¸•à¹‡à¸¡à¸—ี่
+printing_not_ready=คำเตือน: PDF ไม่ได้รับà¸à¸²à¸£à¹‚หลดอย่างเต็มที่สำหรับà¸à¸²à¸£à¸žà¸´à¸¡à¸žà¹Œ
+web_fonts_disabled=à¹à¸šà¸šà¸­à¸±à¸à¸©à¸£à¹€à¸§à¹‡à¸šà¸–ูà¸à¸›à¸´à¸”à¸à¸²à¸£à¹ƒà¸Šà¹‰à¸‡à¸²à¸™: ไม่สามารถใช้à¹à¸šà¸šà¸­à¸±à¸à¸©à¸£à¸à¸±à¸‡à¸•à¸±à¸§à¹ƒà¸™ PDF
+document_colors_disabled=เอà¸à¸ªà¸²à¸£ PDF ไม่ได้รับอนุà¸à¸²à¸•à¹ƒà¸«à¹‰à¹ƒà¸Šà¹‰à¸ªà¸µà¸‚องตัวเอง: 'อนุà¸à¸²à¸•à¹ƒà¸«à¹‰à¸«à¸™à¹‰à¸²à¹€à¸­à¸à¸ªà¸²à¸£à¸ªà¸²à¸¡à¸²à¸£à¸–เลือà¸à¸ªà¸µà¸‚องตัวเอง' ถูà¸à¸›à¸´à¸”ใช้งานในเบราเซอร์
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tl/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tl/viewer.properties
new file mode 100644
index 00000000..07d86eb1
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tl/viewer.properties
@@ -0,0 +1,83 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Naunang Pahina
+next.title=Sunod na Pahina
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Pahina:
+page_of=ng {{bilangngPahina}}
+
+open_file.title=Magbukas ng file
+open_file_label=Buksan
+bookmark.title=Kasalukuyang tingin (kopyahin o buksan sa bagong window)
+bookmark_label=Kasalukuyang tingin
+
+# Secondary toolbar and context menu
+
+
+# Document properties dialog box
+document_properties_title=Pamagat:
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+outline.title=Ipakita ang banghay ng dokumento
+outline_label=Banghay ng dokumento
+thumbs.title=Ipakita ang mga Thumbnails
+findbar_label=Hanapin
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Pahina {{pahina}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Thumbnail ng Pahina {{pahina}}
+
+# Find panel button title and messages
+
+# Error panel labels
+error_more_info=Maraming Inpormasyon
+error_less_info=Maikling Inpormasyon
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Mensahe: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Linya: { { linya } }
+rendering_error=May naganap na pagkakamali habang pagsasalin sa pahina.
+
+# Predefined zoom values
+page_scale_width=Haba ng Pahina
+page_scale_fit=ang pahina ay angkop
+page_scale_auto=awtomatikong pag-imbulog
+
+# Loading indicator messages
+loading_error=May maling nangyari habang kinakarga ang PDF.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+password_ok=OK
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tn/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tn/viewer.properties
new file mode 100644
index 00000000..805a688c
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tn/viewer.properties
@@ -0,0 +1,72 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Tsebe:
+
+zoom.title=Zuma/gogela
+open_file.title=Bula Faele
+open_file_label=Bula
+
+# Secondary toolbar and context menu
+
+
+# Document properties dialog box
+document_properties_file_name=Leina la faele:
+document_properties_title=Leina:
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+findbar_label=Batla
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+
+# Find panel button title and messages
+find_previous.title=Batla tiragalo e e fetileng ya setlhopha sa mafoko
+find_next.title=Batla tiragalo e e latelang ya setlhopha sa mafoko
+find_not_found=Setlhopha sa mafoko ga se a bonwa
+
+# Error panel labels
+error_more_info=Tshedimosetso e Nngwe
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+
+# Predefined zoom values
+
+# Loading indicator messages
+loading_error_indicator=Phoso
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+password_ok=Siame
+password_cancel=Khansela
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tr/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tr/viewer.properties
new file mode 100644
index 00000000..750501bc
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/tr/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Önceki sayfa
+previous_label=Önceki
+next.title=Sonraki sayfa
+next_label=Sonraki
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Sayfa:
+page_of=/ {{pageCount}}
+
+zoom_out.title=UzaklaÈ™
+zoom_out_label=UzaklaÈ™
+zoom_in.title=YaklaÅŸ
+zoom_in_label=YaklaÅŸ
+zoom.title=Yakınlaştırma
+presentation_mode.title=Sunum moduna geç
+presentation_mode_label=Sunum Modu
+open_file.title=Dosya aç
+open_file_label=Aç
+print.title=Yazdır
+print_label=Yazdır
+download.title=Ä°ndir
+download_label=Ä°ndir
+bookmark.title=Geçerli görünüm (kopyala veya yeni pencerede aç)
+bookmark_label=Geçerli görünüm
+
+# Secondary toolbar and context menu
+tools.title=Araçlar
+tools_label=Araçlar
+first_page.title=Ä°lk sayfaya git
+first_page.label=Ä°lk sayfaya git
+first_page_label=Ä°lk sayfaya git
+last_page.title=Son sayfaya git
+last_page.label=Son sayfaya git
+last_page_label=Son sayfaya git
+page_rotate_cw.title=Saat yönünde döndür
+page_rotate_cw.label=Saat yönünde döndür
+page_rotate_cw_label=Saat yönünde döndür
+page_rotate_ccw.title=Saat yönünün tersine döndür
+page_rotate_ccw.label=Saat yönünün tersine döndür
+page_rotate_ccw_label=Saat yönünün tersine döndür
+
+hand_tool_enable.title=El aracını etkinleştir
+hand_tool_enable_label=El aracını etkinleştir
+hand_tool_disable.title=El aracını kapat
+hand_tool_disable_label=El aracını kapat
+
+# Document properties dialog box
+document_properties.title=Belge özellikleri…
+document_properties_label=Belge özellikleri…
+document_properties_file_name=Dosya adı:
+document_properties_file_size=Dosya boyutu:
+document_properties_kb={{size_kb}} KB ({{size_b}} bayt)
+document_properties_mb={{size_mb}} MB ({{size_b}} bayt)
+document_properties_title=Başlık:
+document_properties_author=Yazar:
+document_properties_subject=Konu:
+document_properties_keywords=Anahtar kelimeler:
+document_properties_creation_date=Oluturma tarihi:
+document_properties_modification_date=DeÄŸiÅŸtirme tarihi:
+document_properties_date_string={{date}} {{time}}
+document_properties_creator=OluÅŸturan:
+document_properties_producer=PDF üreticisi:
+document_properties_version=PDF sürümü:
+document_properties_page_count=Sayfa sayısı:
+document_properties_close=Kapat
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Kenar çubuğunu aç/kapat
+toggle_sidebar_label=Kenar çubuğunu aç/kapat
+outline.title=Belge şemasını göster
+outline_label=Belge şeması
+attachments.title=Ekleri göster
+attachments_label=Ekler
+thumbs.title=Küçük resimleri göster
+thumbs_label=Küçük resimler
+findbar.title=Belgede bul
+findbar_label=Bul
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Sayfa {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas={{page}}. sayfanın küçük hâli
+
+# Find panel button title and messages
+find_label=Bul:
+find_previous.title=Önceki eşleşmeyi bul
+find_previous_label=Önceki
+find_next.title=Sonraki eÅŸleÅŸmeyi bul
+find_next_label=Sonraki
+find_highlight=Tümünü vurgula
+find_match_case_label=Büyük-küçük harf eşleştir
+find_reached_top=Belgenin başına ulaşıldı, sonundan devam edildi
+find_reached_bottom=Belgenin sonuna ulaşıldı, başından devam edildi
+find_not_found=Eşleşme bulunamadı
+
+# Error panel labels
+error_more_info=Daha fazla bilgi
+error_less_info=Daha az bilgi
+error_close=Kapat
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js sürüm {{version}} (yapı: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Ä°leti: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Yığın: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Dosya: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Satır: {{line}}
+rendering_error=Sayfa yorumlanırken bir hata oluştu.
+
+# Predefined zoom values
+page_scale_width=Sayfa geniÅŸliÄŸi
+page_scale_fit=Sayfayı sığdır
+page_scale_auto=Otomatik yakınlaştır
+page_scale_actual=Gerçek boyut
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent=%{{scale}}
+
+# Loading indicator messages
+loading_error_indicator=Hata
+loading_error=PDF yüklenirken bir hata oluştu.
+invalid_file_error=Geçersiz veya bozulmuş PDF dosyası.
+missing_file_error=PDF dosyası eksik.
+unexpected_response_error=Beklenmeyen sunucu yanıtı.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} iÅŸareti]
+password_label=Bu PDF dosyasını açmak için parolasını girin.
+password_invalid=Geçersiz parola. Lütfen tekrar deneyin.
+password_ok=Tamam
+password_cancel=Ä°ptal
+
+printing_not_supported=Uyarı: Yazdırma bu tarayıcı tarafından tam olarak desteklenmemektedir.
+printing_not_ready=Uyarı: PDF tamamen yüklenmedi ve yazdırmaya hazır değil.
+web_fonts_disabled=Web fontları devre dışı: Gömülü PDF fontları kullanılamıyor.
+document_colors_disabled=PDF belgelerinin kendi renklerini kullanması için izin verilmiyor: 'Sayfalara kendi renklerini seçmesi için izin ver' tarayıcıda etkinleştirilmemiş.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/uk/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/uk/viewer.properties
new file mode 100644
index 00000000..57e98670
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/uk/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=ÐŸÐ¾Ð¿ÐµÑ€ÐµÐ´Ð½Ñ Ñторінка
+previous_label=ПопереднÑ
+next.title=ÐаÑтупна Ñторінка
+next_label=ÐаÑтупна
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Сторінка:
+page_of=з {{pageCount}}
+
+zoom_out.title=Зменшити
+zoom_out_label=Зменшити
+zoom_in.title=Збільшити
+zoom_in_label=Збільшити
+zoom.title=МаÑштаб
+presentation_mode.title=Перейти в режим презентації
+presentation_mode_label=Режим презентації
+open_file.title=Відкрити файл
+open_file_label=Відкрити
+print.title=Друк
+print_label=Друк
+download.title=Завантажити
+download_label=Завантажити
+bookmark.title=Поточний виглÑд (копіювати чи відкрити у новому вікні)
+bookmark_label=Поточний виглÑд
+
+# Secondary toolbar and context menu
+tools.title=ІнÑтрументи
+tools_label=ІнÑтрументи
+first_page.title=Ðа першу Ñторінку
+first_page.label=Ðа першу Ñторінку
+first_page_label=Ðа першу Ñторінку
+last_page.title=Ðа оÑтанню Ñторінку
+last_page.label=Ðа оÑтанню Ñторінку
+last_page_label=Ðа оÑтанню Ñторінку
+page_rotate_cw.title=Повернути за годинниковою Ñтрілкою
+page_rotate_cw.label=Повернути за годинниковою Ñтрілкою
+page_rotate_cw_label=Повернути за годинниковою Ñтрілкою
+page_rotate_ccw.title=Повернути проти годинникової Ñтрілки
+page_rotate_ccw.label=Повернути проти годинникової Ñтрілки
+page_rotate_ccw_label=Повернути проти годинникової Ñтрілки
+
+hand_tool_enable.title=Увімкнути інÑтрумент «Рука»
+hand_tool_enable_label=Увімкнути інÑтрумент «Рука»
+hand_tool_disable.title=Вимкнути інÑтрумент «Рука»
+hand_tool_disable_label=Вимкнути інÑтрумент «Рука»
+
+# Document properties dialog box
+document_properties.title=ВлаÑтивоÑÑ‚Ñ– документа…
+document_properties_label=ВлаÑтивоÑÑ‚Ñ– документа…
+document_properties_file_name=Ðазва файла:
+document_properties_file_size=Розмір файла:
+document_properties_kb={{size_kb}} КБ ({{size_b}} bytes)
+document_properties_mb={{size_mb}} МБ ({{size_b}} bytes)
+document_properties_title=Заголовок:
+document_properties_author=Ðвтор:
+document_properties_subject=Тема:
+document_properties_keywords=Ключові Ñлова:
+document_properties_creation_date=Дата ÑтвореннÑ:
+document_properties_modification_date=Дата зміни:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Створено:
+document_properties_producer=Виробник PDF:
+document_properties_version=ВерÑÑ–Ñ PDF:
+document_properties_page_count=КількіÑÑ‚ÑŒ Ñторінок:
+document_properties_close=Закрити
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Бічна панель
+toggle_sidebar_label=Перемкнути бічну панель
+outline.title=Показувати Ñхему документа
+outline_label=Схема документа
+attachments.title=Показати прикріпленнÑ
+attachments_label=ПрикріпленнÑ
+thumbs.title=Показувати еÑкізи
+thumbs_label=ЕÑкізи
+findbar.title=Шукати в документі
+findbar_label=Пошук
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Сторінка {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=ЕÑкіз Ñторінки {{page}}
+
+# Find panel button title and messages
+find_label=Знайти:
+find_previous.title=Знайти попереднє Ð²Ñ…Ð¾Ð´Ð¶ÐµÐ½Ð½Ñ Ñ„Ñ€Ð°Ð·Ð¸
+find_previous_label=Попереднє
+find_next.title=Знайти наÑтупне Ð²Ñ…Ð¾Ð´Ð¶ÐµÐ½Ð½Ñ Ñ„Ñ€Ð°Ð·Ð¸
+find_next_label=ÐаÑтупне
+find_highlight=ПідÑвітити вÑе
+find_match_case_label=З урахуваннÑм регіÑтру
+find_reached_top=ДоÑÑгнуто початку документу, продовжено з кінцÑ
+find_reached_bottom=ДоÑÑгнуто ÐºÑ–Ð½Ñ†Ñ Ð´Ð¾ÐºÑƒÐ¼ÐµÐ½Ñ‚Ñƒ, продовжено з початку
+find_not_found=Фразу не знайдено
+
+# Error panel labels
+error_more_info=Більше інформації
+error_less_info=Менше інформації
+error_close=Закрити
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=ПовідомленнÑ: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Стек: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Файл: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=РÑдок: {{line}}
+rendering_error=Під Ñ‡Ð°Ñ Ð²Ð¸Ð²ÐµÐ´ÐµÐ½Ð½Ñ Ñторінки ÑталаÑÑ Ð¿Ð¾Ð¼Ð¸Ð»ÐºÐ°.
+
+# Predefined zoom values
+page_scale_width=За шириною
+page_scale_fit=УміÑтити
+page_scale_auto=Ðвто-маÑштаб
+page_scale_actual=ДійÑний розмір
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=Помилка
+loading_error=Під Ñ‡Ð°Ñ Ð·Ð°Ð²Ð°Ð½Ñ‚Ð°Ð¶ÐµÐ½Ð½Ñ PDF ÑталаÑÑ Ð¿Ð¾Ð¼Ð¸Ð»ÐºÐ°.
+invalid_file_error=ÐедійÑний або пошкоджений PDF-файл.
+missing_file_error=ВідÑутній PDF-файл.
+unexpected_response_error=Ðеочікувана відповідь Ñервера.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}}-аннотаціÑ]
+password_label=Введіть пароль Ð´Ð»Ñ Ð²Ñ–Ð´ÐºÑ€Ð¸Ñ‚Ñ‚Ñ Ñ†ÑŒÐ¾Ð³Ð¾ PDF-файла.
+password_invalid=Ðевірний пароль. Спробуйте ще.
+password_ok=Гаразд
+password_cancel=СкаÑувати
+
+printing_not_supported=ПопередженнÑ: Цей браузер не повніÑÑ‚ÑŽ підтримує друк.
+printing_not_ready=ПопередженнÑ: PDF не повніÑÑ‚ÑŽ завантажений Ð´Ð»Ñ Ð´Ñ€ÑƒÐºÑƒ.
+web_fonts_disabled=Веб-шрифти вимкнено: неможливо викориÑтати вбудовані у PDF шрифти.
+document_colors_disabled=PDF-документам не дозволено викориÑтовувати Ñвої влаÑні кольори: в браузері вимкнено «Дозволити Ñторінкам викориÑтовувати Ñвої влаÑні кольори».
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ur/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ur/viewer.properties
new file mode 100644
index 00000000..c52220f1
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/ur/viewer.properties
@@ -0,0 +1,161 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=پچھلا صÙØ­Û
+previous_label=پچھلا
+next.title=اگلا صÙØ­Û
+next_label=Ø¢Ú¯Û’
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=صÙØ­Û:
+page_of={{pageCount}} کا
+
+zoom_out.title=باÛر زوم کریں
+zoom_out_label=باÛر زوم کریں
+zoom_in.title=اندر زوم کریں
+zoom_in_label=اندر زوم کریں
+zoom.title=زوم
+presentation_mode.title=پیشکش موڈ میں چلے جائیں
+presentation_mode_label=پیشکش موڈ
+open_file.title=مسل کھولیں
+open_file_label=کھولیں
+print.title=چھاپیں
+print_label=چھاپیں
+download.title=ڈاؤن لوڈ
+download_label=ڈاؤن لوڈ
+bookmark.title=Ø­Ø§Ù„ÛŒÛ Ù†Ø¸Ø§Ø±Û (Ù†Û“ Ø¯Ø±ÛŒÚ†Û Ù…ÛŒÚº نقل کریں یا کھولیں)
+bookmark_label=Ø­Ø§Ù„ÛŒÛ Ù†Ø¸Ø§Ø±Û
+
+# Secondary toolbar and context menu
+tools.title=آلات
+tools_label=آلات
+first_page.title=Ù¾ÛÙ„Û’ صÙØ­Û Ù¾Ø± جائیں
+first_page.label=Ù¾ÛÙ„Û’ صÙØ­Û Ù¾Ø± جائیں
+first_page_label=Ù¾ÛÙ„Û’ صÙØ­Û Ù¾Ø± جائیں
+last_page.title=آخری صÙØ­Û Ù¾Ø± جائیں
+last_page.label=آخری صÙØ­Û Ù¾Ø± جائیں
+last_page_label=آخری صÙØ­Û Ù¾Ø± جائیں
+page_rotate_cw.title=گھڑی وار گھمائیں
+page_rotate_cw.label=گھڑی وار گھمائیں
+page_rotate_cw_label=گھڑی وار گھمائیں
+page_rotate_ccw.title=ضد گھڑی وار گھمائیں
+page_rotate_ccw.label=ضد گھڑی وار گھمائیں
+page_rotate_ccw_label=ضد گھڑی وار گھمائیں
+
+hand_tool_enable.title=Ûاتھ ٹول اÛÙ„ بنائیں
+hand_tool_enable_label=Ûاتھ ٹول اÛÙ„ بنائیں
+hand_tool_disable.title=Ûاتھ ٹول nنااÛÙ„ بنائیں
+hand_tool_disable_label=Ûاتھ ٹول نااÛÙ„ بنائیں
+
+# Document properties dialog box
+document_properties.title=دستاویز خواص…
+document_properties_label=دستاویز خواص…
+document_properties_file_name=نام مسل:
+document_properties_file_size=مسل سائز:
+document_properties_kb={{size_kb}} KB ({{size_b}} bytes)
+document_properties_mb={{size_mb}} MB ({{size_b}} bytes)
+document_properties_title=عنوان:
+document_properties_author=تخلیق کار:
+document_properties_subject=موضوع:
+document_properties_keywords=کلیدی الÙاظ:
+document_properties_creation_date=تخلیق کی تاریخ:
+document_properties_modification_date=ترمیم کی تاریخ:
+document_properties_date_string={{date}}، {{time}}
+document_properties_creator=تخلیق کار:
+document_properties_producer=PDF پیدا کار:
+document_properties_version=PDF ورژن:
+document_properties_page_count=صÙØ­Û Ø´Ù…Ø§Ø±:
+document_properties_close=بند کریں
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=سلائیڈ ٹوگل کریں
+toggle_sidebar_label=سلائیڈ ٹوگل کریں
+outline.title=دستاویز آؤٹ لائن دکھائیں
+outline_label=دستاویز آؤٹ لائن
+thumbs.title=تھمبنیل دکھائیں
+thumbs_label=مجمل
+findbar.title=دستاویز میں ڈھونڈیں
+findbar_label=ڈھونڈیں
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=صÙØ­Û {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=صÙØ­Û’ کا مجمل {{page}}
+
+# Find panel button title and messages
+find_label=ڈھونڈیں:
+find_previous.title=Ùقرے کا پچھلا وقوع ڈھونڈیں
+find_previous_label=پچھلا
+find_next.title=Ùقرے کا Ø§Ú¯Ù„Û ÙˆÙ‚ÙˆØ¹ ڈھونڈیں
+find_next_label=Ø¢Ú¯Û’
+find_highlight=تمام نمایاں کریں
+find_match_case_label=Ø­Ø±ÙˆÙ Ù…Ø´Ø§Ø¨Û Ú©Ø±ÛŒÚº
+find_reached_top=صÙØ­Û Ú©Û’ شروع پر Ù¾ÛÙ†Ú† گیا، نیچے سے جاری کیا
+find_reached_bottom=صÙØ­Û Ú©Û’ اختتام پر Ù¾ÛÙ†Ú† گیا، اوپر سے جاری کیا
+find_not_found=Ùقرا Ù†Ûیں ملا
+
+# Error panel labels
+error_more_info=مزید معلومات
+error_less_info=کم معلومات
+error_close=بند کریں
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=پیغام: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=سٹیک: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=مسل: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=لائن: {{line}}
+rendering_error=صÙØ­Û Ø¨Ù†Ø§ØªÛ’ Ûوئے نقص Ø¢ گیا۔
+
+# Predefined zoom values
+page_scale_width=صÙØ­Û Ú†ÙˆÚ‘Ø§Ø¦ÛŒ
+page_scale_fit=صÙØ­Û Ùٹنگ
+page_scale_auto=خودکار زوم
+page_scale_actual=اصل سائز
+
+# Loading indicator messages
+loading_error_indicator=نقص
+loading_error=PDF لوڈ کرتے وقت نقص آ گیا۔
+invalid_file_error=ناجائز یا خراب PDF مسل
+missing_file_error=PDF مسل غائب ÛÛ’Û”
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} نوٹ]
+password_label=PDF مسل کھولنے کے لیے پاس ورڈ داخل کریں.
+password_invalid=ناجائز پاس ورڈ. براےؑ کرم Ø¯ÙˆØ¨Ø§Ø±Û Ú©ÙˆØ´Ø´ کریں.
+password_ok=سÛÛŒ
+password_cancel=منسوخ کریں
+
+printing_not_supported=تنبیÛ:چھاپنا اس براؤزر پر پوری طرح معاونت Ø´Ø¯Û Ù†Ûیں ÛÛ’Û”
+printing_not_ready=تنبیÛ: PDF چھپائی Ú©Û’ لیے پوری طرح لوڈ Ù†Ûیں Ûوئی۔
+web_fonts_disabled=ویب Ùانٹ نا اÛÙ„ Ûیں: شامل PDF Ùانٹ استعمال کرنے میں ناکام۔
+document_colors_disabled=PDF دستاویزات Ú©Ùˆ اپنے رنگ استعمال کرنے Ú©ÛŒ اجازت Ù†Ûیں: 'صÙحات Ú©Ùˆ اپنے رنگ چنیں' Ú©ÛŒ اÙجازت براؤزر میں بے عمل ÛÛ’Û”
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/vi/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/vi/viewer.properties
new file mode 100644
index 00000000..15acc8ef
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/vi/viewer.properties
@@ -0,0 +1,143 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Trang TrÆ°á»›c
+previous_label=TrÆ°á»›c
+next.title=Trang Sau
+next_label=Tiếp
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Trang:
+page_of=thuá»™c vá» {{pageCount}}
+
+zoom_out.title=Thu nhá»
+zoom_out_label=Thu nhá»
+zoom_in.title=Phóng to
+zoom_in_label=Phóng to
+zoom.title=Thu phóng
+presentation_mode.title=Chuyển sang chế độ trình chiếu
+presentation_mode_label=Chế độ trình chiếu
+open_file.title=Mở Tập Tin
+open_file_label=Mở tập tin
+print.title=In
+print_label=In
+download.title=Tải xuống
+download_label=Tải xuống
+bookmark.title=Góc nhìn hiện tại (copy hoặc mở trong cửa sổ mới)
+bookmark_label=Chế độ xem hiện tại
+
+# Secondary toolbar and context menu
+tools.title=Công cụ
+page_rotate_cw.title=Xoay theo chiá»u kim đồng hồ
+page_rotate_cw.label=Xoay theo chiá»u kim đồng hồ
+page_rotate_cw_label=Xoay theo chiá»u kim đồng hồ
+page_rotate_ccw.title=Xoay ngược chiá»u kim đồng hồ
+page_rotate_ccw.label=Xoay ngược chiá»u kim đồng hồ
+page_rotate_ccw_label=Xoay ngược chiá»u kim đồng hồ
+
+
+# Document properties dialog box
+document_properties_file_size=Kích thước tập tin:
+document_properties_title=Tiêu Ä‘á»:
+document_properties_author=Tác giả:
+document_properties_subject=Chủ Ä‘á»:
+document_properties_keywords=Từ khóa:
+document_properties_creation_date=Ngày tạo:
+document_properties_modification_date=Ngày sửa đổi:
+document_properties_producer=Nhà sản xuất PDF:
+document_properties_version=Phiên bản PDF:
+document_properties_page_count=Tổng số trang:
+document_properties_close=Ãóng
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Bật/Tắt Thanh Lá»
+toggle_sidebar_label=Bật/Tắt Thanh Lá»
+outline.title=Hiển thị bản phác tài liệu
+outline_label=Bản phác há»a Tài liệu
+thumbs.title=Hiển thị Thumbnails
+thumbs_label=Thumbnails (hình biểu diá»…n nhá»)
+findbar.title=Tìm trong tài liệu
+findbar_label=Tìm
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Trang {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Hình ảnh thu nhỠcủa trang {{page}}
+
+# Find panel button title and messages
+find_label=Tìm kiếm:
+find_previous.title=Tìm cụm từ ở phần trước
+find_previous_label=TrÆ°á»›c
+find_next.title=Tìm cụm từ ở phần sau
+find_next_label=Tiếp
+find_highlight=Tô sáng tất cả
+find_match_case_label=Phân biệt chữ hoa, chữ thÆ°á»ng
+find_reached_top=Äã đến phần đầu tài liệu, quay trở lại từ cuối
+find_reached_bottom=Äã đến phần cuối của tài liệu, quay trở lại từ đầu
+find_not_found=Không tìm thấy cụm từ
+
+# Error panel labels
+error_more_info=Thông tin thêm
+error_less_info=Hiển thị ít thông tin hơn
+error_close=Äóng
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Thông điệp: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Stack: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Tệp: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Dòng: {{line}}
+rendering_error=Lỗi khi hiển thị trang.
+
+# Predefined zoom values
+page_scale_width=Chiá»u rá»™ng trang
+page_scale_fit=Äá»™ vừa của trang
+page_scale_auto=Tự động thu/phóng
+page_scale_actual=Kích thước thực
+
+# Loading indicator messages
+loading_error_indicator=Lá»—i
+loading_error=Lỗi khi tải tài liệu PDF.
+invalid_file_error=Tập tin PDF há»ng hoặc không hợp lệ.
+missing_file_error=Thiếu tập tin PDF.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Chú thích]
+password_label=Nhập mật khẩu để mở tập tin PDF này.
+password_invalid=Mật khẩu không đúng. Vui lòng thử lại.
+password_ok=OK
+password_cancel=Hủy bá»
+
+printing_not_supported=Cảnh báo: In ấn không được hỗ trợ đầy đủ ở trình duyệt này.
+printing_not_ready=Cảnh báo: PDF chưa được tải hết để in.
+web_fonts_disabled=Phông chữ Web bị vô hiệu hóa: không thể sử dụng các phông chữ PDF được nhúng.
+document_colors_disabled=Tài liệu PDF không được cho phép dùng màu riêng: 'Cho phép trang chá»n màu riêng' đã bị tắt trên trình duyệt.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/wo/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/wo/viewer.properties
new file mode 100644
index 00000000..3a9a4f99
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/wo/viewer.properties
@@ -0,0 +1,118 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Xët wi jiitu
+previous_label=Bi jiitu
+next.title=Xët wi ci topp
+next_label=Bi ci topp
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Xët:
+page_of=ci {{pageCount}}
+
+zoom_out.title=Wàññi
+zoom_out_label=Wàññi
+zoom_in.title=Yaatal
+zoom_in_label=Yaatal
+zoom.title=Yambalaŋ
+presentation_mode.title=Wañarñil ci anamu wone
+presentation_mode_label=Anamu Wone
+open_file.title=Ubbi benn dencukaay
+open_file_label=Ubbi
+print.title=Móol
+print_label=Móol
+download.title=Yeb yi
+download_label=Yeb yi
+bookmark.title=Wone bi taxaw (duppi walla ubbi palanteer bu bees)
+bookmark_label=Wone bi feeñ
+
+# Secondary toolbar and context menu
+
+
+# Document properties dialog box
+document_properties_title=Bopp:
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+outline.title=Wone takku yi
+outline_label=Takku jukki yi
+thumbs.title=Wone nataal yu ndaw yi
+thumbs_label=Nataal yu ndaw yi
+findbar.title=Gis ci biir jukki bi
+findbar_label=Wut
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Xët {{xët}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Wiñet bu xët{{xët}}
+
+# Find panel button title and messages
+find_label=Wut:
+find_previous.title=Seet beneen kaddu bu ni mel te jiitu
+find_previous_label=Bi jiitu
+find_next.title=Seet beneen kaddu bu ni mel
+find_next_label=Bi ci topp
+find_highlight=Melaxal lépp
+find_match_case_label=Sàmm jëmmalin wi
+find_reached_top=Jot nañu ndorteel xët wi, kontine dale ko ci suuf
+find_reached_bottom=Jot nañu jeexitalu xët wi, kontine ci ndorte
+find_not_found=Gisiñu kaddu gi
+
+# Error panel labels
+error_more_info=Xibaar yu gën bari
+error_less_info=Xibaar yu gën bari
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Bataaxal: {{bataaxal}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Juug: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Dencukaay: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Rëdd : {{line}}
+rendering_error=Am njumte bu am bi xët bi di wonewu.
+
+# Predefined zoom values
+page_scale_width=Yaatuwaay bu mët
+page_scale_fit=Xët lëmm
+page_scale_auto=Yambalaŋ ci saa si
+page_scale_actual=Dayo bi am
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+
+# Loading indicator messages
+loading_error_indicator=Njumte
+loading_error=Am na njumte ci yebum dencukaay PDF bi.
+invalid_file_error=Dencukaay PDF bi baaxul walla mu sankar.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Karmat {{type}}]
+password_ok=OK
+password_cancel=Neenal
+
+printing_not_supported=Artu: Joowkat bii nanguwul lool mool.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/xh/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/xh/viewer.properties
new file mode 100644
index 00000000..36cd2cf7
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/xh/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Iphepha langaphambili
+previous_label=Okwangaphambili
+next.title=Iphepha elilandelayo
+next_label=Okulandelayo
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Iphepha:
+page_of=kwali- {{pageCount}}
+
+zoom_out.title=Bhekelisela Kudana
+zoom_out_label=Bhekelisela Kudana
+zoom_in.title=Sondeza Kufuphi
+zoom_in_label=Sondeza Kufuphi
+zoom.title=Yandisa / Nciphisa
+presentation_mode.title=Tshintshela kwimo yonikezelo
+presentation_mode_label=Imo yonikezelo
+open_file.title=Vula Ifayile
+open_file_label=Vula
+print.title=Printa
+print_label=Printa
+download.title=Khuphela
+download_label=Khuphela
+bookmark.title=Imbonakalo ekhoyo (kopa okanye vula kwifestile entsha)
+bookmark_label=Imbonakalo ekhoyo
+
+# Secondary toolbar and context menu
+tools.title=Izixhobo zemiyalelo
+tools_label=Izixhobo zemiyalelo
+first_page.title=Yiya kwiphepha lokuqala
+first_page.label=Yiya kwiphepha lokuqala
+first_page_label=Yiya kwiphepha lokuqala
+last_page.title=Yiya kwiphepha lokugqibela
+last_page.label=Yiya kwiphepha lokugqibela
+last_page_label=Yiya kwiphepha lokugqibela
+page_rotate_cw.title=Jikelisa ngasekunene
+page_rotate_cw.label=Jikelisa ngasekunene
+page_rotate_cw_label=Jikelisa ngasekunene
+page_rotate_ccw.title=Jikelisa ngasekhohlo
+page_rotate_ccw.label=Jikelisa ngasekhohlo
+page_rotate_ccw_label=Jikelisa ngasekhohlo
+
+hand_tool_enable.title=Yenza isixhobo sesandla sisebenze
+hand_tool_enable_label=Yenza isixhobo sesandla sisebenze
+hand_tool_disable.title=Yenza isixhobo sesandla singasebenzi
+hand_tool_disable_label=Yenza isixhobo sesandla singasebenzi
+
+# Document properties dialog box
+document_properties.title=Iipropati zoxwebhu…
+document_properties_label=Iipropati zoxwebhu…
+document_properties_file_name=Igama lefayile:
+document_properties_file_size=Isayizi yefayile:
+document_properties_kb={{size_kb}} KB (iibhayiti{{size_b}})
+document_properties_mb={{size_mb}} MB (iibhayithi{{size_b}})
+document_properties_title=Umxholo:
+document_properties_author=Umbhali:
+document_properties_subject=Umbandela:
+document_properties_keywords=Amagama aphambili:
+document_properties_creation_date=Umhla wokwenziwa kwayo:
+document_properties_modification_date=Umhla wokulungiswa kwayo:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=Umntu oyenzileyo:
+document_properties_producer=Umvelisi we-PDF:
+document_properties_version=Uhlelo lwe-PDF:
+document_properties_page_count=Inani lamaphepha:
+document_properties_close=Vala
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=Togola ngebha eseCaleni
+toggle_sidebar_label=Togola ngebha eseCaleni
+outline.title=Bonisa isishwankathelo soxwebhu
+outline_label=Isishwankathelo soxwebhu
+attachments.title=Bonisa iziqhotyoshelwa
+attachments_label=Iziqhoboshelo
+thumbs.title=Bonisa ukrobiso kumfanekiso
+thumbs_label=Ukrobiso kumfanekiso
+findbar.title=Fumana kuXwebhu
+findbar_label=Fumana
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Iphepha {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Ukrobiso kumfanekiso wephepha {{page}}
+
+# Find panel button title and messages
+find_label=Fumanisa:
+find_previous.title=Fumanisa isenzeko sangaphambili sebinzana lamagama
+find_previous_label=Okwangaphambili
+find_next.title=Fumanisa isenzeko esilandelayo sebinzana lamagama
+find_next_label=Okulandelayo
+find_highlight=Qaqambisa konke
+find_match_case_label=Tshatisa ngobukhulu bukanobumba
+find_reached_top=Ufike ngaphezulu ephepheni, kusukwa ngezantsi
+find_reached_bottom=Ufike ekupheleni kwephepha, kusukwa ngaphezulu
+find_not_found=Ibinzana alifunyenwanga
+
+# Error panel labels
+error_more_info=Inkcazelo Engakumbi
+error_less_info=Inkcazelo Encinane
+error_close=Vala
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=I-PDF.js v{{version}} (yakha: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Umyalezo: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Imfumba: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Ifayile: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Umgca: {{line}}
+rendering_error=Imposiso yenzekile xa bekunikezelwa iphepha.
+
+# Predefined zoom values
+page_scale_width=Ububanzi bephepha
+page_scale_fit=Ukulinganiswa kwephepha
+page_scale_auto=Ukwandisa/Ukunciphisa Ngokwayo
+page_scale_actual=Ubungakanani bokwenene
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{umlinganiselo}}%
+
+# Loading indicator messages
+loading_error_indicator=Imposiso
+loading_error=Imposiso yenzekile xa kulayishwa i-PDF.
+invalid_file_error=Ifayile ye-PDF engeyiyo okanye eyonakalisiweyo.
+missing_file_error=Ifayile ye-PDF edukileyo.
+unexpected_response_error=Impendulo yeseva engalindelekanga.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} Ubhalo-nqaku]
+password_label=Faka ipasiwedi ukuze uvule le fayile yePDF.
+password_invalid=Ipasiwedi ayisebenzi. Nceda uzame kwakhona.
+password_ok=KULUNGILE
+password_cancel=Rhoxisa
+
+printing_not_supported=Isilumkiso: Ukuprinta akuxhaswa ngokupheleleyo yile bhrawuza.
+printing_not_ready=Isilumkiso: IPDF ayihlohlwanga ngokupheleleyo ukwenzela ukuprinta.
+web_fonts_disabled=Iifonti zewebhu ziqhwalelisiwe: ayikwazi ukusebenzisa iifonti ze-PDF ezincanyathelisiweyo.
+document_colors_disabled=Amaxwebhu ePDF akavumelekanga ukuba asebenzise imibala yawo: 'Ukuvumela amaphepha ukuba asebenzise eyawo imibala' kuvaliwe ukuba kungasebenzi kwibhrawuza.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zh-CN/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zh-CN/viewer.properties
new file mode 100644
index 00000000..6ec25f7a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zh-CN/viewer.properties
@@ -0,0 +1,167 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=上一页
+previous_label=上一页
+next.title=下一页
+next_label=下一页
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=页é¢ï¼š
+page_of=/ {{pageCount}}
+
+zoom_out.title=缩å°
+zoom_out_label=缩å°
+zoom_in.title=放大
+zoom_in_label=放大
+zoom.title=缩放
+presentation_mode.title=切æ¢åˆ°æ¼”示模å¼
+presentation_mode_label=演示模å¼
+open_file.title=打开文件
+open_file_label=打开
+print.title=打å°
+print_label=打å°
+download.title=下载
+download_label=下载
+bookmark.title=当å‰è§†å›¾ï¼ˆå¤åˆ¶æˆ–在新窗å£ä¸­æ‰“开)
+bookmark_label=当å‰è§†å›¾
+
+# Secondary toolbar and context menu
+tools.title=工具
+tools_label=工具
+first_page.title=转到第一页
+first_page.label=转到第一页
+first_page_label=转到第一页
+last_page.title=转到最åŽä¸€é¡µ
+last_page.label=转到最åŽä¸€é¡µ
+last_page_label=转到最åŽä¸€é¡µ
+page_rotate_cw.title=顺时针旋转
+page_rotate_cw.label=顺时针旋转
+page_rotate_cw_label=顺时针旋转
+page_rotate_ccw.title=逆时针旋转
+page_rotate_ccw.label=逆时针旋转
+page_rotate_ccw_label=逆时针旋转
+
+hand_tool_enable.title=å¯ç”¨æ‰‹å½¢å·¥å…·
+hand_tool_enable_label=å¯ç”¨æ‰‹å½¢å·¥å…·
+hand_tool_disable.title=ç¦ç”¨æ‰‹å½¢å·¥å…·
+hand_tool_disable_label=ç¦ç”¨æ‰‹å½¢å·¥å…·
+
+# Document properties dialog box
+document_properties.title=文档属性…
+document_properties_label=文档属性…
+document_properties_file_name=文件å:
+document_properties_file_size=文件大å°:
+document_properties_kb={{size_kb}} KB ({{size_b}} 字节)
+document_properties_mb={{size_mb}} MB ({{size_b}} 字节)
+document_properties_title=标题:
+document_properties_author=作者:
+document_properties_subject=主题:
+document_properties_keywords=关键è¯:
+document_properties_creation_date=创建日期:
+document_properties_modification_date=修改日期:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=创建者:
+document_properties_producer=PDF 制作者:
+document_properties_version=PDF 版本:
+document_properties_page_count=页数:
+document_properties_close=关闭
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=切æ¢ä¾§æ 
+toggle_sidebar_label=切æ¢ä¾§æ 
+outline.title=显示文档大纲
+outline_label=文档大纲
+attachments.title=显示附件
+attachments_label=附件
+thumbs.title=显示缩略图
+thumbs_label=缩略图
+findbar.title=在文档中查找
+findbar_label=查找
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=é¡µç  {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=é¡µé¢ {{page}} 的缩略图
+
+# Find panel button title and messages
+find_label=查找:
+find_previous.title=查找è¯è¯­ä¸Šä¸€æ¬¡å‡ºçŽ°çš„ä½ç½®
+find_previous_label=上一页
+find_next.title=查找è¯è¯­åŽä¸€æ¬¡å‡ºçŽ°çš„ä½ç½®
+find_next_label=下一页
+find_highlight=全部高亮显示
+find_match_case_label=区分大å°å†™
+find_reached_top=到达文档开头,从末尾继续
+find_reached_bottom=到达文档末尾,从开头继续
+find_not_found=è¯è¯­æœªæ‰¾åˆ°
+
+# Error panel labels
+error_more_info=更多信æ¯
+error_less_info=æ›´å°‘ä¿¡æ¯
+error_close=关闭
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=ä¿¡æ¯ï¼š{{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=堆栈:{{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=文件:{{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=è¡Œå·ï¼š{{line}}
+rendering_error=渲染页é¢æ—¶å‘生错误。
+
+# Predefined zoom values
+page_scale_width=适åˆé¡µå®½
+page_scale_fit=适åˆé¡µé¢
+page_scale_auto=自动缩放
+page_scale_actual=实际大å°
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=错误
+loading_error=载入PDFæ—¶å‘生错误。
+invalid_file_error=无效或æŸåçš„PDF文件。
+missing_file_error=缺少PDF文件。
+unexpected_response_error=æ„外的æœåŠ¡å™¨å“应。
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} 注解]
+password_label=输入密ç ä»¥æ‰“开此 PDF 文件。
+password_invalid=密ç æ— æ•ˆã€‚请é‡è¯•ã€‚
+password_ok=确定
+password_cancel=å–消
+
+printing_not_supported=警告:打å°åŠŸèƒ½ä¸å®Œå…¨æ”¯æŒæ­¤æµè§ˆå™¨ã€‚
+printing_not_ready=警告:该 PDF 未完全加载以供打å°ã€‚
+web_fonts_disabled=Web 字体已被ç¦ç”¨ï¼šæ— æ³•ä½¿ç”¨åµŒå…¥çš„PDF字体。
+document_colors_disabled=ä¸å…许 PDF 文档使用自己的颜色:æµè§ˆå™¨ä¸­â€œå…许页é¢é€‰æ‹©è‡ªå·±çš„颜色â€çš„选项已åœç”¨ã€‚
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zh-TW/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zh-TW/viewer.properties
new file mode 100644
index 00000000..11f20d71
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zh-TW/viewer.properties
@@ -0,0 +1,168 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=上一é 
+previous_label=上一é 
+next.title=下一é 
+next_label=下一é 
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=é :
+page_of=/ {{pageCount}}
+
+zoom_out.title=縮å°
+zoom_out_label=縮å°
+zoom_in.title=放大
+zoom_in_label=放大
+zoom.title=縮放
+presentation_mode.title=切æ›è‡³ç°¡å ±æ¨¡å¼
+presentation_mode_label=簡報模å¼
+open_file.title=開啟檔案
+open_file_label=é–‹å•Ÿ
+print.title=列å°
+print_label=列å°
+download.title=下載
+download_label=下載
+bookmark.title=ç›®å‰æª¢è¦–的內容(複製或開啟於新視窗)
+bookmark_label=ç›®å‰æª¢è¦–
+
+# Secondary toolbar and context menu
+tools.title=工具
+tools_label=工具
+first_page.title=跳到第一é 
+first_page.label=跳到第一é 
+first_page_label=跳到第一é 
+last_page.title=跳到最後一é 
+last_page.label=跳到最後一é 
+last_page_label=跳到最後一é 
+page_rotate_cw.title=順時é‡æ—‹è½‰
+page_rotate_cw.label=順時é‡æ—‹è½‰
+page_rotate_cw_label=順時é‡æ—‹è½‰
+page_rotate_ccw.title=逆時é‡æ—‹è½‰
+page_rotate_ccw.label=逆時é‡æ—‹è½‰
+page_rotate_ccw_label=逆時é‡æ—‹è½‰
+
+hand_tool_enable.title=啟用掌型工具
+hand_tool_enable_label=啟用掌型工具
+hand_tool_disable.title=åœç”¨æŽŒåž‹å·¥å…·
+hand_tool_disable_label=åœç”¨æŽŒåž‹å·¥å…·
+
+# Document properties dialog box
+document_properties.title=文件內容…
+document_properties_label=文件內容…
+document_properties_file_name=檔案å稱:
+document_properties_file_size=檔案大å°:
+document_properties_kb={{size_kb}} KB({{size_b}} ä½å…ƒçµ„)
+document_properties_mb={{size_mb}} MB({{size_b}} ä½å…ƒçµ„)
+document_properties_title=標題:
+document_properties_author=作者:
+document_properties_subject=主旨:
+document_properties_keywords=é—œéµå­—:
+document_properties_creation_date=建立日期:
+document_properties_modification_date=修改日期:
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=建立者:
+document_properties_producer=PDF 產生器:
+document_properties_version=PDF 版本:
+document_properties_page_count=é æ•¸:
+document_properties_close=關閉
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=切æ›å´é‚Šæ¬„
+toggle_sidebar_label=切æ›å´é‚Šæ¬„
+outline.title=顯示文件大綱
+outline_label=文件大綱
+attachments.title=顯示附件
+attachments_label=附件
+thumbs.title=顯示縮圖
+thumbs_label=縮圖
+findbar.title=在文件中尋找
+findbar_label=尋找
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=é  {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=é  {{page}} 的縮圖
+
+# Find panel button title and messages
+find_label=尋找:
+find_previous.title=尋找文字å‰æ¬¡å‡ºç¾çš„ä½ç½®
+find_previous_label=上一個
+find_next.title=尋找文字下次出ç¾çš„ä½ç½®
+find_next_label=下一個
+find_highlight=全部強調標示
+find_match_case_label=å€åˆ†å¤§å°å¯«
+find_reached_top=å·²æœå°‹è‡³æ–‡ä»¶é ‚端,自底端繼續æœå°‹
+find_reached_bottom=å·²æœå°‹è‡³æ–‡ä»¶åº•ç«¯ï¼Œè‡ªé ‚端繼續æœå°‹
+find_not_found=找ä¸åˆ°æŒ‡å®šæ–‡å­—
+
+# Error panel labels
+error_more_info=更多資訊
+error_less_info=更少資訊
+error_close=關閉
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=訊æ¯: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=堆疊: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=檔案: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=行: {{line}}
+rendering_error=æ繪é é¢æ™‚發生錯誤。
+
+# Predefined zoom values
+page_scale_width=é é¢å¯¬åº¦
+page_scale_fit=縮放至é é¢å¤§å°
+page_scale_auto=自動縮放
+page_scale_actual=實際大å°
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading_error_indicator=錯誤
+loading_error=載入 PDF 時發生錯誤。
+invalid_file_error=無效或毀æçš„ PDF 檔案。
+missing_file_error=找ä¸åˆ° PDF 檔案。
+unexpected_response_error=伺æœå™¨å›žæ‡‰æœªé æœŸçš„內容。
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} 註解]
+password_label=請輸入用來開啟此 PDF 檔案的密碼。
+password_invalid=密碼ä¸æ­£ç¢ºï¼Œè«‹å†è©¦ä¸€æ¬¡ã€‚
+password_ok=確定
+password_cancel=å–消
+
+printing_not_supported=警告: æ­¤ç€è¦½å™¨æœªå®Œæ•´æ”¯æ´åˆ—å°åŠŸèƒ½ã€‚
+printing_not_ready=警告: æ­¤ PDF 未完æˆä¸‹è¼‰ä»¥ä¾›åˆ—å°ã€‚
+web_fonts_disabled=å·²åœç”¨ç¶²è·¯å­—åž‹ (Web fonts): 無法使用 PDF 內嵌字型。
+document_colors_disabled=ç€è¦½å™¨çš„「優先使用網é æŒ‡å®šçš„色彩ã€æœªè¢«å‹¾é¸ï¼ŒPDF 文件無法使用自己的色彩。
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zu/viewer.properties b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zu/viewer.properties
new file mode 100644
index 00000000..bd7a08f6
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/locale/zu/viewer.properties
@@ -0,0 +1,124 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=Ikhasi eledlule
+previous_label=Okudlule
+next.title=Ikhasi elilandelayo
+next_label=Okulandelayo
+
+# LOCALIZATION NOTE (page_label, page_of):
+# These strings are concatenated to form the "Page: X of Y" string.
+# Do not translate "{{pageCount}}", it will be substituted with a number
+# representing the total number of pages.
+page_label=Ikhasi:
+page_of=kwe-{{pageCount}}
+
+zoom_out.title=Hlehlisela emuva
+zoom_out_label=Hlehlisela emuva
+zoom_in.title=Sondeza eduze
+zoom_in_label=Sondeza eduze
+zoom.title=Lwiza
+print.title=Phrinta
+print_label=Phrinta
+presentation_mode.title=Guqulela kwindlela yesethulo
+presentation_mode_label=Indlelo yesethulo
+open_file.title=Vula ifayela
+open_file_label=Vula
+download.title=Landa
+download_label=Landa
+bookmark.title=Ukubuka kwamanje (kopisha noma vula kwifasitela elisha)
+bookmark_label=Ukubuka kwamanje
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=I-toggle yebha yaseceleni
+toggle_sidebar_label=i-toggle yebha yaseceleni
+outline.title=Bonisa umugqa waseceleni wedokhumenti
+outline_label=Umugqa waseceleni wedokhumenti
+thumbs.title=Bonisa izithombe ezincane
+thumbs_label=Izithonjana
+findbar.title=Thola kwidokhumenti
+findbar_label=Thola
+
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=Ikhasi {{page}}
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=Isithonjana sekhasi {{page}}
+
+# Context menu
+first_page.label=Yiya kwikhasi lokuqala
+last_page.label=Yiya kwikhasi lokugcina
+page_rotate_cw.label=Jikisela ngendlela yewashi
+page_rotate_ccw.label=Jikisela kwelokudla
+
+# Find panel button title and messages
+find_label=Thola
+find_previous.title=Thola indawo eyandulelayo okuvela kuyo lomshwana
+find_previous_label=Okudlulile
+find_next.title=Thola enye indawo okuvela kuyo lomshwana
+find_next_label=Okulandelayo
+find_highlight=Gqamisa konke
+find_match_case_label=Fanisa ikheyisi
+find_reached_top=Finyelele phezulu kwidokhumenti, qhubeka kusukaphansi
+find_reached_bottom=Ifinyelele ekupheleni kwedokhumenti, qhubeka kusukaphezulu
+find_not_found=Umshwana awutholakali
+
+# Error panel labels
+error_more_info=Ukwaziswa Okwengeziwe
+error_less_info=Ukwazi okuncane
+error_close=Vala
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=Umlayezo: {{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=Isitaki: {{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=Ifayela: {{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=Umugqa: {{line}}
+rendering_error=Iphutha lenzekile uma kunikwa ikhasi.
+
+# Predefined zoom values
+page_scale_width=Ububanzi bekhasi
+page_scale_fit=Ukulingana kwekhasi
+page_scale_auto=Ukulwiza okuzenzekalelayo
+page_scale_actual=Usayizi Wangempela
+
+# Loading indicator messages
+loading_error_indicator=Iphutha
+loading_error=Kwenzeke iphutha uma kulayishwa i-PDF.
+invalid_file_error=Ifayela le-PDF elingavumelekile noma elonakele.
+missing_file_error=Ifayela le-PDF elilahlekile.
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[Amazwibela e-{{type}}]
+request_password=I-PDF ivikeleke ngephasiwedi
+invalid_password=Iphasiwedi Engavumelekile.
+
+printing_not_supported=Isixwayiso: Ukuphrinta akuxhasiwe yilesisiphequluli ngokugcwele.
+printing_not_ready=Isixwayiso: I-PDF ayikalayishwa ngokuphelele yiPhrinta.
+web_fonts_disabled=Amafonti e-webhu akutshaziwe: ayikwazi ukusebenzisa amafonti abekiwe e-PDF.
+document_colors_disabled=Amadokhumenti we-PDF awavumelekile ukusebenzisa imibalo yayo: 'Vumela amakhasi ukukhetha imibala yayo' ayisebenzi kusiphequluli.
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.css b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.css
new file mode 100644
index 00000000..cee3305a
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.css
@@ -0,0 +1,1997 @@
+/* Copyright 2014 Mozilla Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+.textLayer {
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ overflow: hidden;
+ opacity: 0.2;
+}
+
+.textLayer > div {
+ color: transparent;
+ position: absolute;
+ white-space: pre;
+ cursor: text;
+ -webkit-transform-origin: 0% 0%;
+ -moz-transform-origin: 0% 0%;
+ -o-transform-origin: 0% 0%;
+ -ms-transform-origin: 0% 0%;
+ transform-origin: 0% 0%;
+}
+
+.textLayer .highlight {
+ margin: -1px;
+ padding: 1px;
+
+ background-color: rgb(180, 0, 170);
+ border-radius: 4px;
+}
+
+.textLayer .highlight.begin {
+ border-radius: 4px 0px 0px 4px;
+}
+
+.textLayer .highlight.end {
+ border-radius: 0px 4px 4px 0px;
+}
+
+.textLayer .highlight.middle {
+ border-radius: 0px;
+}
+
+.textLayer .highlight.selected {
+ background-color: rgb(0, 100, 0);
+}
+
+.textLayer ::selection { background: rgb(0,0,255); }
+.textLayer ::-moz-selection { background: rgb(0,0,255); }
+
+.pdfViewer .canvasWrapper {
+ overflow: hidden;
+}
+
+.pdfViewer .page {
+ direction: ltr;
+ width: 816px;
+ height: 1056px;
+ margin: 1px auto -8px auto;
+ position: relative;
+ overflow: visible;
+ border: 9px solid transparent;
+ background-clip: content-box;
+ border-image: url(images/shadow.png) 9 9 repeat;
+ background-color: white;
+}
+
+.pdfViewer.removePageBorders .page {
+ margin: 0px auto 10px auto;
+ border: none;
+}
+
+.pdfViewer .page canvas {
+ margin: 0;
+ display: block;
+}
+
+.pdfViewer .page .loadingIcon {
+ position: absolute;
+ display: block;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ background: url('images/loading-icon.gif') center no-repeat;
+}
+
+.pdfViewer .page .annotLink > a:hover {
+ opacity: 0.2;
+ background: #ff0;
+ box-shadow: 0px 2px 10px #ff0;
+}
+
+:-webkit-full-screen .pdfViewer .page {
+ margin-bottom: 100%;
+ border: 0;
+}
+
+:-moz-full-screen .pdfViewer .page {
+ margin-bottom: 100%;
+ border: 0;
+}
+
+:-ms-fullscreen .pdfViewer .page {
+ margin-bottom: 100% !important;
+ border: 0;
+}
+
+:fullscreen .pdfViewer .page {
+ margin-bottom: 100%;
+ border: 0;
+}
+
+.pdfViewer .page .annotText > img {
+ position: absolute;
+ cursor: pointer;
+}
+
+.pdfViewer .page .annotTextContentWrapper {
+ position: absolute;
+ width: 20em;
+}
+
+.pdfViewer .page .annotTextContent {
+ z-index: 200;
+ float: left;
+ max-width: 20em;
+ background-color: #FFFF99;
+ box-shadow: 0px 2px 5px #333;
+ border-radius: 2px;
+ padding: 0.6em;
+ cursor: pointer;
+}
+
+.pdfViewer .page .annotTextContent > h1 {
+ font-size: 1em;
+ border-bottom: 1px solid #000000;
+ padding-bottom: 0.2em;
+}
+
+.pdfViewer .page .annotTextContent > p {
+ padding-top: 0.2em;
+}
+
+.pdfViewer .page .annotLink > a {
+ position: absolute;
+ font-size: 1em;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+
+.pdfViewer .page .annotLink > a /* -ms-a */ {
+ background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAA\
+ LAAAAAABAAEAAAIBRAA7") 0 0 repeat;
+}
+
+* {
+ padding: 0;
+ margin: 0;
+}
+
+html {
+ height: 100%;
+ /* Font size is needed to make the activity bar the correct size. */
+ font-size: 10px;
+}
+
+body {
+ height: 100%;
+ background-color: #404040;
+ background-image: url(images/texture.png);
+}
+
+body,
+input,
+button,
+select {
+ font: message-box;
+ outline: none;
+}
+
+.hidden {
+ display: none !important;
+}
+[hidden] {
+ display: none !important;
+}
+
+#viewerContainer:-webkit-full-screen {
+ top: 0px;
+ border-top: 2px solid transparent;
+ background-color: #000;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ cursor: none;
+ -webkit-user-select: none;
+}
+
+#viewerContainer:-moz-full-screen {
+ top: 0px;
+ border-top: 2px solid transparent;
+ background-color: #000;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ cursor: none;
+ -moz-user-select: none;
+}
+
+#viewerContainer:-ms-fullscreen {
+ top: 0px !important;
+ border-top: 2px solid transparent;
+ width: 100%;
+ height: 100%;
+ overflow: hidden !important;
+ cursor: none;
+ -ms-user-select: none;
+}
+
+#viewerContainer:-ms-fullscreen::-ms-backdrop {
+ background-color: #000;
+}
+
+#viewerContainer:fullscreen {
+ top: 0px;
+ border-top: 2px solid transparent;
+ background-color: #000;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ cursor: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+}
+
+:-webkit-full-screen a:not(.internalLink) {
+ display: none;
+}
+
+:-moz-full-screen a:not(.internalLink) {
+ display: none;
+}
+
+:-ms-fullscreen a:not(.internalLink) {
+ display: none !important;
+}
+
+:fullscreen a:not(.internalLink) {
+ display: none;
+}
+
+:-webkit-full-screen .textLayer > div {
+ cursor: none;
+}
+
+:-moz-full-screen .textLayer > div {
+ cursor: none;
+}
+
+:fullscreen .textLayer > div {
+ cursor: none;
+}
+
+#viewerContainer.presentationControls,
+#viewerContainer.presentationControls .textLayer > div {
+ cursor: default;
+}
+
+/* outer/inner center provides horizontal center */
+.outerCenter {
+ pointer-events: none;
+ position: relative;
+}
+html[dir='ltr'] .outerCenter {
+ float: right;
+ right: 50%;
+}
+html[dir='rtl'] .outerCenter {
+ float: left;
+ left: 50%;
+}
+.innerCenter {
+ pointer-events: auto;
+ position: relative;
+}
+html[dir='ltr'] .innerCenter {
+ float: right;
+ right: -50%;
+}
+html[dir='rtl'] .innerCenter {
+ float: left;
+ left: -50%;
+}
+
+#outerContainer {
+ width: 100%;
+ height: 100%;
+ position: relative;
+}
+
+#sidebarContainer {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ width: 200px;
+ visibility: hidden;
+ -webkit-transition-duration: 200ms;
+ -webkit-transition-timing-function: ease;
+ transition-duration: 200ms;
+ transition-timing-function: ease;
+
+}
+html[dir='ltr'] #sidebarContainer {
+ -webkit-transition-property: left;
+ transition-property: left;
+ left: -200px;
+}
+html[dir='rtl'] #sidebarContainer {
+ -webkit-transition-property: right;
+ transition-property: right;
+ right: -200px;
+}
+
+#outerContainer.sidebarMoving > #sidebarContainer,
+#outerContainer.sidebarOpen > #sidebarContainer {
+ visibility: visible;
+}
+html[dir='ltr'] #outerContainer.sidebarOpen > #sidebarContainer {
+ left: 0px;
+}
+html[dir='rtl'] #outerContainer.sidebarOpen > #sidebarContainer {
+ right: 0px;
+}
+
+#mainContainer {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ min-width: 320px;
+ -webkit-transition-duration: 200ms;
+ -webkit-transition-timing-function: ease;
+ transition-duration: 200ms;
+ transition-timing-function: ease;
+}
+html[dir='ltr'] #outerContainer.sidebarOpen > #mainContainer {
+ -webkit-transition-property: left;
+ transition-property: left;
+ left: 200px;
+}
+html[dir='rtl'] #outerContainer.sidebarOpen > #mainContainer {
+ -webkit-transition-property: right;
+ transition-property: right;
+ right: 200px;
+}
+
+#sidebarContent {
+ top: 32px;
+ bottom: 0;
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
+ position: absolute;
+ width: 200px;
+ background-color: hsla(0,0%,0%,.1);
+}
+html[dir='ltr'] #sidebarContent {
+ left: 0;
+ box-shadow: inset -1px 0 0 hsla(0,0%,0%,.25);
+}
+html[dir='rtl'] #sidebarContent {
+ right: 0;
+ box-shadow: inset 1px 0 0 hsla(0,0%,0%,.25);
+}
+
+#viewerContainer {
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
+ position: absolute;
+ top: 32px;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ outline: none;
+}
+html[dir='ltr'] #viewerContainer {
+ box-shadow: inset 1px 0 0 hsla(0,0%,100%,.05);
+}
+html[dir='rtl'] #viewerContainer {
+ box-shadow: inset -1px 0 0 hsla(0,0%,100%,.05);
+}
+
+.toolbar {
+ position: relative;
+ left: 0;
+ right: 0;
+ z-index: 9999;
+ cursor: default;
+}
+
+#toolbarContainer {
+ width: 100%;
+}
+
+#toolbarSidebar {
+ width: 200px;
+ height: 32px;
+ background-color: #424242; /* fallback */
+ background-image: url(images/texture.png),
+ linear-gradient(hsla(0,0%,30%,.99), hsla(0,0%,25%,.95));
+}
+html[dir='ltr'] #toolbarSidebar {
+ box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25),
+ inset 0 -1px 0 hsla(0,0%,100%,.05),
+ 0 1px 0 hsla(0,0%,0%,.15),
+ 0 0 1px hsla(0,0%,0%,.1);
+}
+html[dir='rtl'] #toolbarSidebar {
+ box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25),
+ inset 0 1px 0 hsla(0,0%,100%,.05),
+ 0 1px 0 hsla(0,0%,0%,.15),
+ 0 0 1px hsla(0,0%,0%,.1);
+}
+
+#toolbarContainer, .findbar, .secondaryToolbar {
+ position: relative;
+ height: 32px;
+ background-color: #474747; /* fallback */
+ background-image: url(images/texture.png),
+ linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
+}
+html[dir='ltr'] #toolbarContainer, .findbar, .secondaryToolbar {
+ box-shadow: inset 1px 0 0 hsla(0,0%,100%,.08),
+ inset 0 1px 1px hsla(0,0%,0%,.15),
+ inset 0 -1px 0 hsla(0,0%,100%,.05),
+ 0 1px 0 hsla(0,0%,0%,.15),
+ 0 1px 1px hsla(0,0%,0%,.1);
+}
+html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {
+ box-shadow: inset -1px 0 0 hsla(0,0%,100%,.08),
+ inset 0 1px 1px hsla(0,0%,0%,.15),
+ inset 0 -1px 0 hsla(0,0%,100%,.05),
+ 0 1px 0 hsla(0,0%,0%,.15),
+ 0 1px 1px hsla(0,0%,0%,.1);
+}
+
+#toolbarViewer {
+ height: 32px;
+}
+
+#loadingBar {
+ position: relative;
+ width: 100%;
+ height: 4px;
+ background-color: #333;
+ border-bottom: 1px solid #333;
+}
+
+#loadingBar .progress {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 0%;
+ height: 100%;
+ background-color: #ddd;
+ overflow: hidden;
+ -webkit-transition: width 200ms;
+ transition: width 200ms;
+}
+
+@-webkit-keyframes progressIndeterminate {
+ 0% { left: 0%; }
+ 50% { left: 100%; }
+ 100% { left: 100%; }
+}
+
+@keyframes progressIndeterminate {
+ 0% { left: 0%; }
+ 50% { left: 100%; }
+ 100% { left: 100%; }
+}
+
+#loadingBar .progress.indeterminate {
+ background-color: #999;
+ -webkit-transition: none;
+ transition: none;
+}
+
+#loadingBar .indeterminate .glimmer {
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 100%;
+ width: 50px;
+
+ background-image: linear-gradient(to right, #999 0%, #fff 50%, #999 100%);
+ background-size: 100% 100%;
+ background-repeat: no-repeat;
+
+ -webkit-animation: progressIndeterminate 2s linear infinite;
+ animation: progressIndeterminate 2s linear infinite;
+}
+
+.findbar, .secondaryToolbar {
+ top: 32px;
+ position: absolute;
+ z-index: 10000;
+ height: 32px;
+
+ min-width: 16px;
+ padding: 0px 6px 0px 6px;
+ margin: 4px 2px 4px 2px;
+ color: hsl(0,0%,85%);
+ font-size: 12px;
+ line-height: 14px;
+ text-align: left;
+ cursor: default;
+}
+
+html[dir='ltr'] .findbar {
+ left: 68px;
+}
+
+html[dir='rtl'] .findbar {
+ right: 68px;
+}
+
+.findbar label {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#findInput[data-status="pending"] {
+ background-image: url(images/loading-small.png);
+ background-repeat: no-repeat;
+ background-position: right;
+}
+html[dir='rtl'] #findInput[data-status="pending"] {
+ background-position: left;
+}
+
+.secondaryToolbar {
+ padding: 6px;
+ height: auto;
+ z-index: 30000;
+}
+html[dir='ltr'] .secondaryToolbar {
+ right: 4px;
+}
+html[dir='rtl'] .secondaryToolbar {
+ left: 4px;
+}
+
+#secondaryToolbarButtonContainer {
+ max-width: 200px;
+ max-height: 400px;
+ overflow-y: auto;
+ -webkit-overflow-scrolling: touch;
+ margin-bottom: -4px;
+}
+
+.doorHanger,
+.doorHangerRight {
+ border: 1px solid hsla(0,0%,0%,.5);
+ border-radius: 2px;
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
+}
+.doorHanger:after, .doorHanger:before,
+.doorHangerRight:after, .doorHangerRight:before {
+ bottom: 100%;
+ border: solid transparent;
+ content: " ";
+ height: 0;
+ width: 0;
+ position: absolute;
+ pointer-events: none;
+}
+.doorHanger:after,
+.doorHangerRight:after {
+ border-bottom-color: hsla(0,0%,32%,.99);
+ border-width: 8px;
+}
+.doorHanger:before,
+.doorHangerRight:before {
+ border-bottom-color: hsla(0,0%,0%,.5);
+ border-width: 9px;
+}
+
+html[dir='ltr'] .doorHanger:after,
+html[dir='rtl'] .doorHangerRight:after {
+ left: 13px;
+ margin-left: -8px;
+}
+
+html[dir='ltr'] .doorHanger:before,
+html[dir='rtl'] .doorHangerRight:before {
+ left: 13px;
+ margin-left: -9px;
+}
+
+html[dir='rtl'] .doorHanger:after,
+html[dir='ltr'] .doorHangerRight:after {
+ right: 13px;
+ margin-right: -8px;
+}
+
+html[dir='rtl'] .doorHanger:before,
+html[dir='ltr'] .doorHangerRight:before {
+ right: 13px;
+ margin-right: -9px;
+}
+
+#findMsg {
+ font-style: italic;
+ color: #A6B7D0;
+}
+
+#findInput.notFound {
+ background-color: rgb(255, 102, 102);
+}
+
+html[dir='ltr'] #toolbarViewerLeft {
+ margin-left: -1px;
+}
+html[dir='rtl'] #toolbarViewerRight {
+ margin-right: -1px;
+}
+
+html[dir='ltr'] #toolbarViewerLeft,
+html[dir='rtl'] #toolbarViewerRight {
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+html[dir='ltr'] #toolbarViewerRight,
+html[dir='rtl'] #toolbarViewerLeft {
+ position: absolute;
+ top: 0;
+ right: 0;
+}
+html[dir='ltr'] #toolbarViewerLeft > *,
+html[dir='ltr'] #toolbarViewerMiddle > *,
+html[dir='ltr'] #toolbarViewerRight > *,
+html[dir='ltr'] .findbar > * {
+ position: relative;
+ float: left;
+}
+html[dir='rtl'] #toolbarViewerLeft > *,
+html[dir='rtl'] #toolbarViewerMiddle > *,
+html[dir='rtl'] #toolbarViewerRight > *,
+html[dir='rtl'] .findbar > * {
+ position: relative;
+ float: right;
+}
+
+html[dir='ltr'] .splitToolbarButton {
+ margin: 3px 2px 4px 0;
+ display: inline-block;
+}
+html[dir='rtl'] .splitToolbarButton {
+ margin: 3px 0 4px 2px;
+ display: inline-block;
+}
+html[dir='ltr'] .splitToolbarButton > .toolbarButton {
+ border-radius: 0;
+ float: left;
+}
+html[dir='rtl'] .splitToolbarButton > .toolbarButton {
+ border-radius: 0;
+ float: right;
+}
+
+.toolbarButton,
+.secondaryToolbarButton,
+.overlayButton {
+ border: 0 none;
+ background: none;
+ width: 32px;
+ height: 25px;
+}
+
+.toolbarButton > span {
+ display: inline-block;
+ width: 0;
+ height: 0;
+ overflow: hidden;
+}
+
+.toolbarButton[disabled],
+.secondaryToolbarButton[disabled],
+.overlayButton[disabled] {
+ opacity: .5;
+}
+
+.toolbarButton.group {
+ margin-right: 0;
+}
+
+.splitToolbarButton.toggled .toolbarButton {
+ margin: 0;
+}
+
+.splitToolbarButton:hover > .toolbarButton,
+.splitToolbarButton:focus > .toolbarButton,
+.splitToolbarButton.toggled > .toolbarButton,
+.toolbarButton.textButton {
+ background-color: hsla(0,0%,0%,.12);
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
+ background-clip: padding-box;
+ border: 1px solid hsla(0,0%,0%,.35);
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
+ 0 0 1px hsla(0,0%,100%,.15) inset,
+ 0 1px 0 hsla(0,0%,100%,.05);
+ -webkit-transition-property: background-color, border-color, box-shadow;
+ -webkit-transition-duration: 150ms;
+ -webkit-transition-timing-function: ease;
+ transition-property: background-color, border-color, box-shadow;
+ transition-duration: 150ms;
+ transition-timing-function: ease;
+
+}
+.splitToolbarButton > .toolbarButton:hover,
+.splitToolbarButton > .toolbarButton:focus,
+.dropdownToolbarButton:hover,
+.overlayButton:hover,
+.toolbarButton.textButton:hover,
+.toolbarButton.textButton:focus {
+ background-color: hsla(0,0%,0%,.2);
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
+ 0 0 1px hsla(0,0%,100%,.15) inset,
+ 0 0 1px hsla(0,0%,0%,.05);
+ z-index: 199;
+}
+.splitToolbarButton > .toolbarButton {
+ position: relative;
+}
+html[dir='ltr'] .splitToolbarButton > .toolbarButton:first-child,
+html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child {
+ position: relative;
+ margin: 0;
+ margin-right: -1px;
+ border-top-left-radius: 2px;
+ border-bottom-left-radius: 2px;
+ border-right-color: transparent;
+}
+html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
+html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
+ position: relative;
+ margin: 0;
+ margin-left: -1px;
+ border-top-right-radius: 2px;
+ border-bottom-right-radius: 2px;
+ border-left-color: transparent;
+}
+.splitToolbarButtonSeparator {
+ padding: 8px 0;
+ width: 1px;
+ background-color: hsla(0,0%,0%,.5);
+ z-index: 99;
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
+ display: inline-block;
+ margin: 5px 0;
+}
+html[dir='ltr'] .splitToolbarButtonSeparator {
+ float: left;
+}
+html[dir='rtl'] .splitToolbarButtonSeparator {
+ float: right;
+}
+.splitToolbarButton:hover > .splitToolbarButtonSeparator,
+.splitToolbarButton.toggled > .splitToolbarButtonSeparator {
+ padding: 12px 0;
+ margin: 1px 0;
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.03);
+ -webkit-transition-property: padding;
+ -webkit-transition-duration: 10ms;
+ -webkit-transition-timing-function: ease;
+ transition-property: padding;
+ transition-duration: 10ms;
+ transition-timing-function: ease;
+}
+
+.toolbarButton,
+.dropdownToolbarButton,
+.secondaryToolbarButton,
+.overlayButton {
+ min-width: 16px;
+ padding: 2px 6px 0;
+ border: 1px solid transparent;
+ border-radius: 2px;
+ color: hsla(0,0%,100%,.8);
+ font-size: 12px;
+ line-height: 14px;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ /* Opera does not support user-select, use <... unselectable="on"> instead */
+ cursor: default;
+ -webkit-transition-property: background-color, border-color, box-shadow;
+ -webkit-transition-duration: 150ms;
+ -webkit-transition-timing-function: ease;
+ transition-property: background-color, border-color, box-shadow;
+ transition-duration: 150ms;
+ transition-timing-function: ease;
+}
+
+html[dir='ltr'] .toolbarButton,
+html[dir='ltr'] .overlayButton,
+html[dir='ltr'] .dropdownToolbarButton {
+ margin: 3px 2px 4px 0;
+}
+html[dir='rtl'] .toolbarButton,
+html[dir='rtl'] .overlayButton,
+html[dir='rtl'] .dropdownToolbarButton {
+ margin: 3px 0 4px 2px;
+}
+
+.toolbarButton:hover,
+.toolbarButton:focus,
+.dropdownToolbarButton,
+.overlayButton,
+.secondaryToolbarButton:hover,
+.secondaryToolbarButton:focus {
+ background-color: hsla(0,0%,0%,.12);
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
+ background-clip: padding-box;
+ border: 1px solid hsla(0,0%,0%,.35);
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
+ 0 0 1px hsla(0,0%,100%,.15) inset,
+ 0 1px 0 hsla(0,0%,100%,.05);
+}
+
+.toolbarButton:hover:active,
+.overlayButton:hover:active,
+.dropdownToolbarButton:hover:active,
+.secondaryToolbarButton:hover:active {
+ background-color: hsla(0,0%,0%,.2);
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
+ border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.4) hsla(0,0%,0%,.45);
+ box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
+ 0 0 1px hsla(0,0%,0%,.2) inset,
+ 0 1px 0 hsla(0,0%,100%,.05);
+ -webkit-transition-property: background-color, border-color, box-shadow;
+ -webkit-transition-duration: 10ms;
+ -webkit-transition-timing-function: linear;
+ transition-property: background-color, border-color, box-shadow;
+ transition-duration: 10ms;
+ transition-timing-function: linear;
+}
+
+.toolbarButton.toggled,
+.splitToolbarButton.toggled > .toolbarButton.toggled,
+.secondaryToolbarButton.toggled {
+ background-color: hsla(0,0%,0%,.3);
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
+ border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.45) hsla(0,0%,0%,.5);
+ box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
+ 0 0 1px hsla(0,0%,0%,.2) inset,
+ 0 1px 0 hsla(0,0%,100%,.05);
+ -webkit-transition-property: background-color, border-color, box-shadow;
+ -webkit-transition-duration: 10ms;
+ -webkit-transition-timing-function: linear;
+ transition-property: background-color, border-color, box-shadow;
+ transition-duration: 10ms;
+ transition-timing-function: linear;
+}
+
+.toolbarButton.toggled:hover:active,
+.splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
+.secondaryToolbarButton.toggled:hover:active {
+ background-color: hsla(0,0%,0%,.4);
+ border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55);
+ box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset,
+ 0 0 1px hsla(0,0%,0%,.3) inset,
+ 0 1px 0 hsla(0,0%,100%,.05);
+}
+
+.dropdownToolbarButton {
+ width: 120px;
+ max-width: 120px;
+ padding: 3px 2px 2px;
+ overflow: hidden;
+ background: url(images/toolbarButton-menuArrows.png) no-repeat;
+}
+html[dir='ltr'] .dropdownToolbarButton {
+ background-position: 95%;
+}
+html[dir='rtl'] .dropdownToolbarButton {
+ background-position: 5%;
+}
+
+.dropdownToolbarButton > select {
+ min-width: 140px;
+ font-size: 12px;
+ color: hsl(0,0%,95%);
+ margin: 0;
+ padding: 0;
+ border: none;
+ background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
+}
+
+.dropdownToolbarButton > select > option {
+ background: hsl(0,0%,24%);
+}
+
+#customScaleOption {
+ display: none;
+}
+
+#pageWidthOption {
+ border-bottom: 1px rgba(255, 255, 255, .5) solid;
+}
+
+html[dir='ltr'] .splitToolbarButton:first-child,
+html[dir='ltr'] .toolbarButton:first-child,
+html[dir='rtl'] .splitToolbarButton:last-child,
+html[dir='rtl'] .toolbarButton:last-child {
+ margin-left: 4px;
+}
+html[dir='ltr'] .splitToolbarButton:last-child,
+html[dir='ltr'] .toolbarButton:last-child,
+html[dir='rtl'] .splitToolbarButton:first-child,
+html[dir='rtl'] .toolbarButton:first-child {
+ margin-right: 4px;
+}
+
+.toolbarButtonSpacer {
+ width: 30px;
+ display: inline-block;
+ height: 1px;
+}
+
+.toolbarButtonFlexibleSpacer {
+ -webkit-box-flex: 1;
+ -moz-box-flex: 1;
+ min-width: 30px;
+}
+
+html[dir='ltr'] #findPrevious {
+ margin-left: 3px;
+}
+html[dir='ltr'] #findNext {
+ margin-right: 3px;
+}
+
+html[dir='rtl'] #findPrevious {
+ margin-right: 3px;
+}
+html[dir='rtl'] #findNext {
+ margin-left: 3px;
+}
+
+.toolbarButton::before,
+.secondaryToolbarButton::before {
+ /* All matching images have a size of 16x16
+ * All relevant containers have a size of 32x25 */
+ position: absolute;
+ display: inline-block;
+ top: 4px;
+ left: 7px;
+}
+
+html[dir="ltr"] .secondaryToolbarButton::before {
+ left: 4px;
+}
+html[dir="rtl"] .secondaryToolbarButton::before {
+ right: 4px;
+}
+
+html[dir='ltr'] .toolbarButton#sidebarToggle::before {
+ content: url(images/toolbarButton-sidebarToggle.png);
+}
+html[dir='rtl'] .toolbarButton#sidebarToggle::before {
+ content: url(images/toolbarButton-sidebarToggle-rtl.png);
+}
+
+html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
+ content: url(images/toolbarButton-secondaryToolbarToggle.png);
+}
+html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
+ content: url(images/toolbarButton-secondaryToolbarToggle-rtl.png);
+}
+
+html[dir='ltr'] .toolbarButton.findPrevious::before {
+ content: url(images/findbarButton-previous.png);
+}
+html[dir='rtl'] .toolbarButton.findPrevious::before {
+ content: url(images/findbarButton-previous-rtl.png);
+}
+
+html[dir='ltr'] .toolbarButton.findNext::before {
+ content: url(images/findbarButton-next.png);
+}
+html[dir='rtl'] .toolbarButton.findNext::before {
+ content: url(images/findbarButton-next-rtl.png);
+}
+
+html[dir='ltr'] .toolbarButton.pageUp::before {
+ content: url(images/toolbarButton-pageUp.png);
+}
+html[dir='rtl'] .toolbarButton.pageUp::before {
+ content: url(images/toolbarButton-pageUp-rtl.png);
+}
+
+html[dir='ltr'] .toolbarButton.pageDown::before {
+ content: url(images/toolbarButton-pageDown.png);
+}
+html[dir='rtl'] .toolbarButton.pageDown::before {
+ content: url(images/toolbarButton-pageDown-rtl.png);
+}
+
+.toolbarButton.zoomOut::before {
+ content: url(images/toolbarButton-zoomOut.png);
+}
+
+.toolbarButton.zoomIn::before {
+ content: url(images/toolbarButton-zoomIn.png);
+}
+
+.toolbarButton.presentationMode::before,
+.secondaryToolbarButton.presentationMode::before {
+ content: url(images/toolbarButton-presentationMode.png);
+}
+
+.toolbarButton.print::before,
+.secondaryToolbarButton.print::before {
+ content: url(images/toolbarButton-print.png);
+}
+
+.toolbarButton.openFile::before,
+.secondaryToolbarButton.openFile::before {
+ content: url(images/toolbarButton-openFile.png);
+}
+
+.toolbarButton.download::before,
+.secondaryToolbarButton.download::before {
+ content: url(images/toolbarButton-download.png);
+}
+
+.toolbarButton.bookmark,
+.secondaryToolbarButton.bookmark {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ outline: none;
+ padding-top: 4px;
+ text-decoration: none;
+}
+.secondaryToolbarButton.bookmark {
+ padding-top: 5px;
+}
+
+.bookmark[href='#'] {
+ opacity: .5;
+ pointer-events: none;
+}
+
+.toolbarButton.bookmark::before,
+.secondaryToolbarButton.bookmark::before {
+ content: url(images/toolbarButton-bookmark.png);
+}
+
+#viewThumbnail.toolbarButton::before {
+ content: url(images/toolbarButton-viewThumbnail.png);
+}
+
+html[dir="ltr"] #viewOutline.toolbarButton::before {
+ content: url(images/toolbarButton-viewOutline.png);
+}
+html[dir="rtl"] #viewOutline.toolbarButton::before {
+ content: url(images/toolbarButton-viewOutline-rtl.png);
+}
+
+#viewAttachments.toolbarButton::before {
+ content: url(images/toolbarButton-viewAttachments.png);
+}
+
+#viewFind.toolbarButton::before {
+ content: url(images/toolbarButton-search.png);
+}
+
+.secondaryToolbarButton {
+ position: relative;
+ margin: 0 0 4px 0;
+ padding: 3px 0 1px 0;
+ height: auto;
+ min-height: 25px;
+ width: auto;
+ min-width: 100%;
+ white-space: normal;
+}
+html[dir="ltr"] .secondaryToolbarButton {
+ padding-left: 24px;
+ text-align: left;
+}
+html[dir="rtl"] .secondaryToolbarButton {
+ padding-right: 24px;
+ text-align: right;
+}
+html[dir="ltr"] .secondaryToolbarButton.bookmark {
+ padding-left: 27px;
+}
+html[dir="rtl"] .secondaryToolbarButton.bookmark {
+ padding-right: 27px;
+}
+
+html[dir="ltr"] .secondaryToolbarButton > span {
+ padding-right: 4px;
+}
+html[dir="rtl"] .secondaryToolbarButton > span {
+ padding-left: 4px;
+}
+
+.secondaryToolbarButton.firstPage::before {
+ content: url(images/secondaryToolbarButton-firstPage.png);
+}
+
+.secondaryToolbarButton.lastPage::before {
+ content: url(images/secondaryToolbarButton-lastPage.png);
+}
+
+.secondaryToolbarButton.rotateCcw::before {
+ content: url(images/secondaryToolbarButton-rotateCcw.png);
+}
+
+.secondaryToolbarButton.rotateCw::before {
+ content: url(images/secondaryToolbarButton-rotateCw.png);
+}
+
+.secondaryToolbarButton.handTool::before {
+ content: url(images/secondaryToolbarButton-handTool.png);
+}
+
+.secondaryToolbarButton.documentProperties::before {
+ content: url(images/secondaryToolbarButton-documentProperties.png);
+}
+
+.verticalToolbarSeparator {
+ display: block;
+ padding: 8px 0;
+ margin: 8px 4px;
+ width: 1px;
+ background-color: hsla(0,0%,0%,.5);
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
+}
+html[dir='ltr'] .verticalToolbarSeparator {
+ margin-left: 2px;
+}
+html[dir='rtl'] .verticalToolbarSeparator {
+ margin-right: 2px;
+}
+
+.horizontalToolbarSeparator {
+ display: block;
+ margin: 0 0 4px 0;
+ height: 1px;
+ width: 100%;
+ background-color: hsla(0,0%,0%,.5);
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
+}
+
+.toolbarField {
+ padding: 3px 6px;
+ margin: 4px 0 4px 0;
+ border: 1px solid transparent;
+ border-radius: 2px;
+ background-color: hsla(0,0%,100%,.09);
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
+ background-clip: padding-box;
+ border: 1px solid hsla(0,0%,0%,.35);
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
+ box-shadow: 0 1px 0 hsla(0,0%,0%,.05) inset,
+ 0 1px 0 hsla(0,0%,100%,.05);
+ color: hsl(0,0%,95%);
+ font-size: 12px;
+ line-height: 14px;
+ outline-style: none;
+ transition-property: background-color, border-color, box-shadow;
+ transition-duration: 150ms;
+ transition-timing-function: ease;
+}
+
+.toolbarField[type=checkbox] {
+ display: inline-block;
+ margin: 8px 0px;
+}
+
+.toolbarField.pageNumber {
+ -moz-appearance: textfield; /* hides the spinner in moz */
+ min-width: 16px;
+ text-align: right;
+ width: 40px;
+}
+
+.toolbarField.pageNumber.visiblePageIsLoading {
+ background-image: url(images/loading-small.png);
+ background-repeat: no-repeat;
+ background-position: 1px;
+}
+
+.toolbarField.pageNumber::-webkit-inner-spin-button,
+.toolbarField.pageNumber::-webkit-outer-spin-button {
+ -webkit-appearance: none;
+ margin: 0;
+}
+
+.toolbarField:hover {
+ background-color: hsla(0,0%,100%,.11);
+ border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.43) hsla(0,0%,0%,.45);
+}
+
+.toolbarField:focus {
+ background-color: hsla(0,0%,100%,.15);
+ border-color: hsla(204,100%,65%,.8) hsla(204,100%,65%,.85) hsla(204,100%,65%,.9);
+}
+
+.toolbarLabel {
+ min-width: 16px;
+ padding: 3px 6px 3px 2px;
+ margin: 4px 2px 4px 0;
+ border: 1px solid transparent;
+ border-radius: 2px;
+ color: hsl(0,0%,85%);
+ font-size: 12px;
+ line-height: 14px;
+ text-align: left;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ cursor: default;
+}
+
+#thumbnailView {
+ position: absolute;
+ width: 120px;
+ top: 0;
+ bottom: 0;
+ padding: 10px 40px 0;
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
+}
+
+.thumbnail {
+ float: left;
+ margin-bottom: 5px;
+}
+
+#thumbnailView > a:last-of-type > .thumbnail {
+ margin-bottom: 10px;
+}
+
+#thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
+ margin-bottom: 9px;
+}
+
+.thumbnail:not([data-loaded]) {
+ border: 1px dashed rgba(255, 255, 255, 0.5);
+ margin: -1px -1px 4px -1px;
+}
+
+.thumbnailImage {
+ transition-duration: 150ms;
+ border: 1px solid transparent;
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
+ opacity: 0.8;
+ z-index: 99;
+ background-color: white;
+ background-clip: content-box;
+}
+
+.thumbnailSelectionRing {
+ border-radius: 2px;
+ padding: 7px;
+ transition-duration: 150ms;
+}
+
+a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
+.thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
+ opacity: .9;
+}
+
+a:focus > .thumbnail > .thumbnailSelectionRing,
+.thumbnail:hover > .thumbnailSelectionRing {
+ background-color: hsla(0,0%,100%,.15);
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
+ background-clip: padding-box;
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
+ 0 0 1px hsla(0,0%,100%,.2) inset,
+ 0 0 1px hsla(0,0%,0%,.2);
+ color: hsla(0,0%,100%,.9);
+}
+
+.thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
+ box-shadow: 0 0 0 1px hsla(0,0%,0%,.5);
+ opacity: 1;
+}
+
+.thumbnail.selected > .thumbnailSelectionRing {
+ background-color: hsla(0,0%,100%,.3);
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
+ background-clip: padding-box;
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
+ 0 0 1px hsla(0,0%,100%,.1) inset,
+ 0 0 1px hsla(0,0%,0%,.2);
+ color: hsla(0,0%,100%,1);
+}
+
+#outlineView,
+#attachmentsView {
+ position: absolute;
+ width: 192px;
+ top: 0;
+ bottom: 0;
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#outlineView {
+ padding: 4px 4px 0;
+}
+#attachmentsView {
+ padding: 3px 4px 0;
+}
+
+html[dir='ltr'] .outlineItem > .outlineItems {
+ margin-left: 20px;
+}
+
+html[dir='rtl'] .outlineItem > .outlineItems {
+ margin-right: 20px;
+}
+
+.outlineItem > a,
+.attachmentsItem > button {
+ text-decoration: none;
+ display: inline-block;
+ min-width: 95%;
+ height: auto;
+ margin-bottom: 1px;
+ border-radius: 2px;
+ color: hsla(0,0%,100%,.8);
+ font-size: 13px;
+ line-height: 15px;
+ -moz-user-select: none;
+ white-space: normal;
+}
+
+.attachmentsItem > button {
+ border: 0 none;
+ background: none;
+ cursor: pointer;
+ width: 100%;
+}
+
+html[dir='ltr'] .outlineItem > a {
+ padding: 2px 0 5px 10px;
+}
+html[dir='ltr'] .attachmentsItem > button {
+ padding: 2px 0 3px 7px;
+ text-align: left;
+}
+
+html[dir='rtl'] .outlineItem > a {
+ padding: 2px 10px 5px 0;
+}
+html[dir='rtl'] .attachmentsItem > button {
+ padding: 2px 7px 3px 0;
+ text-align: right;
+}
+
+.outlineItem > a:hover,
+.attachmentsItem > button:hover {
+ background-color: hsla(0,0%,100%,.02);
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
+ background-clip: padding-box;
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
+ 0 0 1px hsla(0,0%,100%,.2) inset,
+ 0 0 1px hsla(0,0%,0%,.2);
+ color: hsla(0,0%,100%,.9);
+}
+
+.outlineItem.selected {
+ background-color: hsla(0,0%,100%,.08);
+ background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
+ background-clip: padding-box;
+ box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
+ 0 0 1px hsla(0,0%,100%,.1) inset,
+ 0 0 1px hsla(0,0%,0%,.2);
+ color: hsla(0,0%,100%,1);
+}
+
+.noResults {
+ font-size: 12px;
+ color: hsla(0,0%,100%,.8);
+ font-style: italic;
+ cursor: default;
+}
+
+/* TODO: file FF bug to support ::-moz-selection:window-inactive
+ so we can override the opaque grey background when the window is inactive;
+ see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
+::selection { background: rgba(0,0,255,0.3); }
+::-moz-selection { background: rgba(0,0,255,0.3); }
+
+#errorWrapper {
+ background: none repeat scroll 0 0 #FF5555;
+ color: white;
+ left: 0;
+ position: absolute;
+ right: 0;
+ z-index: 1000;
+ padding: 3px;
+ font-size: 0.8em;
+}
+.loadingInProgress #errorWrapper {
+ top: 37px;
+}
+
+#errorMessageLeft {
+ float: left;
+}
+
+#errorMessageRight {
+ float: right;
+}
+
+#errorMoreInfo {
+ background-color: #FFFFFF;
+ color: black;
+ padding: 3px;
+ margin: 3px;
+ width: 98%;
+}
+
+.overlayButton {
+ width: auto;
+ margin: 3px 4px 2px 4px !important;
+ padding: 2px 6px 3px 6px;
+}
+
+#overlayContainer {
+ display: table;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ background-color: hsla(0,0%,0%,.2);
+ z-index: 40000;
+}
+#overlayContainer > * {
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
+}
+
+#overlayContainer > .container {
+ display: table-cell;
+ vertical-align: middle;
+ text-align: center;
+}
+
+#overlayContainer > .container > .dialog {
+ display: inline-block;
+ padding: 15px;
+ border-spacing: 4px;
+ color: hsl(0,0%,85%);
+ font-size: 12px;
+ line-height: 14px;
+ background-color: #474747; /* fallback */
+ background-image: url(images/texture.png),
+ linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
+ box-shadow: inset 1px 0 0 hsla(0,0%,100%,.08),
+ inset 0 1px 1px hsla(0,0%,0%,.15),
+ inset 0 -1px 0 hsla(0,0%,100%,.05),
+ 0 1px 0 hsla(0,0%,0%,.15),
+ 0 1px 1px hsla(0,0%,0%,.1);
+ border: 1px solid hsla(0,0%,0%,.5);
+ border-radius: 4px;
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
+}
+
+.dialog > .row {
+ display: table-row;
+}
+
+.dialog > .row > * {
+ display: table-cell;
+}
+
+.dialog .toolbarField {
+ margin: 5px 0;
+}
+.dialog .toolbarField:hover,
+.dialog .toolbarField:focus {
+ border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
+}
+
+.dialog .separator {
+ display: block;
+ margin: 4px 0 4px 0;
+ height: 1px;
+ width: 100%;
+ background-color: hsla(0,0%,0%,.5);
+ box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
+}
+
+.dialog .buttonRow {
+ text-align: center;
+ vertical-align: middle;
+}
+
+#passwordOverlay > .dialog {
+ text-align: center;
+}
+#passwordOverlay .toolbarField {
+ width: 200px;
+}
+
+#documentPropertiesOverlay > .dialog {
+ text-align: left;
+}
+#documentPropertiesOverlay .row > * {
+ min-width: 100px;
+}
+html[dir='ltr'] #documentPropertiesOverlay .row > * {
+ text-align: left;
+}
+html[dir='rtl'] #documentPropertiesOverlay .row > * {
+ text-align: right;
+}
+#documentPropertiesOverlay .row > span {
+ width: 125px;
+ word-wrap: break-word;
+}
+#documentPropertiesOverlay .row > p {
+ max-width: 225px;
+ word-wrap: break-word;
+}
+#documentPropertiesOverlay .buttonRow {
+ margin-top: 10px;
+}
+
+.clearBoth {
+ clear: both;
+}
+
+.fileInput {
+ background: white;
+ color: black;
+ margin-top: 5px;
+ visibility: hidden;
+ position: fixed;
+ right: 0;
+ top: 0;
+}
+
+#PDFBug {
+ background: none repeat scroll 0 0 white;
+ border: 1px solid #666666;
+ position: fixed;
+ top: 32px;
+ right: 0;
+ bottom: 0;
+ font-size: 10px;
+ padding: 0;
+ width: 300px;
+}
+#PDFBug .controls {
+ background:#EEEEEE;
+ border-bottom: 1px solid #666666;
+ padding: 3px;
+}
+#PDFBug .panels {
+ bottom: 0;
+ left: 0;
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
+ position: absolute;
+ right: 0;
+ top: 27px;
+}
+#PDFBug button.active {
+ font-weight: bold;
+}
+.debuggerShowText {
+ background: none repeat scroll 0 0 yellow;
+ color: blue;
+}
+.debuggerHideText:hover {
+ background: none repeat scroll 0 0 yellow;
+}
+#PDFBug .stats {
+ font-family: courier;
+ font-size: 10px;
+ white-space: pre;
+}
+#PDFBug .stats .title {
+ font-weight: bold;
+}
+#PDFBug table {
+ font-size: 10px;
+}
+
+#viewer.textLayer-visible .textLayer > div,
+#viewer.textLayer-hover .textLayer > div:hover {
+ background-color: white;
+ color: black;
+}
+
+#viewer.textLayer-shadow .textLayer > div {
+ background-color: rgba(255,255,255, .6);
+ color: black;
+}
+
+.grab-to-pan-grab {
+ cursor: url("images/grab.cur"), move !important;
+ cursor: -webkit-grab !important;
+ cursor: -moz-grab !important;
+ cursor: grab !important;
+}
+.grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
+ cursor: inherit !important;
+}
+.grab-to-pan-grab:active,
+.grab-to-pan-grabbing {
+ cursor: url("images/grabbing.cur"), move !important;
+ cursor: -webkit-grabbing !important;
+ cursor: -moz-grabbing !important;
+ cursor: grabbing !important;
+
+ position: fixed;
+ background: transparent;
+ display: block;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ overflow: hidden;
+ z-index: 50000; /* should be higher than anything else in PDF.js! */
+}
+
+@page {
+ margin: 0;
+}
+
+#printContainer {
+ display: none;
+}
+
+@media screen and (min-resolution: 2dppx) {
+ /* Rules for Retina screens */
+ .toolbarButton::before {
+ -webkit-transform: scale(0.5);
+ transform: scale(0.5);
+ top: -5px;
+ }
+
+ .secondaryToolbarButton::before {
+ -webkit-transform: scale(0.5);
+ transform: scale(0.5);
+ top: -4px;
+ }
+
+ html[dir='ltr'] .toolbarButton::before,
+ html[dir='rtl'] .toolbarButton::before {
+ left: -1px;
+ }
+
+ html[dir='ltr'] .secondaryToolbarButton::before {
+ left: -2px;
+ }
+ html[dir='rtl'] .secondaryToolbarButton::before {
+ left: 186px;
+ }
+
+ .toolbarField.pageNumber.visiblePageIsLoading,
+ #findInput[data-status="pending"] {
+ background-image: url(images/loading-small@2x.png);
+ background-size: 16px 17px;
+ }
+
+ .dropdownToolbarButton {
+ background: url(images/toolbarButton-menuArrows@2x.png) no-repeat;
+ background-size: 7px 16px;
+ }
+
+ html[dir='ltr'] .toolbarButton#sidebarToggle::before {
+ content: url(images/toolbarButton-sidebarToggle@2x.png);
+ }
+ html[dir='rtl'] .toolbarButton#sidebarToggle::before {
+ content: url(images/toolbarButton-sidebarToggle-rtl@2x.png);
+ }
+
+ html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
+ content: url(images/toolbarButton-secondaryToolbarToggle@2x.png);
+ }
+ html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
+ content: url(images/toolbarButton-secondaryToolbarToggle-rtl@2x.png);
+ }
+
+ html[dir='ltr'] .toolbarButton.findPrevious::before {
+ content: url(images/findbarButton-previous@2x.png);
+ }
+ html[dir='rtl'] .toolbarButton.findPrevious::before {
+ content: url(images/findbarButton-previous-rtl@2x.png);
+ }
+
+ html[dir='ltr'] .toolbarButton.findNext::before {
+ content: url(images/findbarButton-next@2x.png);
+ }
+ html[dir='rtl'] .toolbarButton.findNext::before {
+ content: url(images/findbarButton-next-rtl@2x.png);
+ }
+
+ html[dir='ltr'] .toolbarButton.pageUp::before {
+ content: url(images/toolbarButton-pageUp@2x.png);
+ }
+ html[dir='rtl'] .toolbarButton.pageUp::before {
+ content: url(images/toolbarButton-pageUp-rtl@2x.png);
+ }
+
+ html[dir='ltr'] .toolbarButton.pageDown::before {
+ content: url(images/toolbarButton-pageDown@2x.png);
+ }
+ html[dir='rtl'] .toolbarButton.pageDown::before {
+ content: url(images/toolbarButton-pageDown-rtl@2x.png);
+ }
+
+ .toolbarButton.zoomIn::before {
+ content: url(images/toolbarButton-zoomIn@2x.png);
+ }
+
+ .toolbarButton.zoomOut::before {
+ content: url(images/toolbarButton-zoomOut@2x.png);
+ }
+
+ .toolbarButton.presentationMode::before,
+ .secondaryToolbarButton.presentationMode::before {
+ content: url(images/toolbarButton-presentationMode@2x.png);
+ }
+
+ .toolbarButton.print::before,
+ .secondaryToolbarButton.print::before {
+ content: url(images/toolbarButton-print@2x.png);
+ }
+
+ .toolbarButton.openFile::before,
+ .secondaryToolbarButton.openFile::before {
+ content: url(images/toolbarButton-openFile@2x.png);
+ }
+
+ .toolbarButton.download::before,
+ .secondaryToolbarButton.download::before {
+ content: url(images/toolbarButton-download@2x.png);
+ }
+
+ .toolbarButton.bookmark::before,
+ .secondaryToolbarButton.bookmark::before {
+ content: url(images/toolbarButton-bookmark@2x.png);
+ }
+
+ #viewThumbnail.toolbarButton::before {
+ content: url(images/toolbarButton-viewThumbnail@2x.png);
+ }
+
+ html[dir="ltr"] #viewOutline.toolbarButton::before {
+ content: url(images/toolbarButton-viewOutline@2x.png);
+ }
+ html[dir="rtl"] #viewOutline.toolbarButton::before {
+ content: url(images/toolbarButton-viewOutline-rtl@2x.png);
+ }
+
+ #viewAttachments.toolbarButton::before {
+ content: url(images/toolbarButton-viewAttachments@2x.png);
+ }
+
+ #viewFind.toolbarButton::before {
+ content: url(images/toolbarButton-search@2x.png);
+ }
+
+ .secondaryToolbarButton.firstPage::before {
+ content: url(images/secondaryToolbarButton-firstPage@2x.png);
+ }
+
+ .secondaryToolbarButton.lastPage::before {
+ content: url(images/secondaryToolbarButton-lastPage@2x.png);
+ }
+
+ .secondaryToolbarButton.rotateCcw::before {
+ content: url(images/secondaryToolbarButton-rotateCcw@2x.png);
+ }
+
+ .secondaryToolbarButton.rotateCw::before {
+ content: url(images/secondaryToolbarButton-rotateCw@2x.png);
+ }
+
+ .secondaryToolbarButton.handTool::before {
+ content: url(images/secondaryToolbarButton-handTool@2x.png);
+ }
+
+ .secondaryToolbarButton.documentProperties::before {
+ content: url(images/secondaryToolbarButton-documentProperties@2x.png);
+ }
+}
+
+@media print {
+ /* General rules for printing. */
+ body {
+ background: transparent none;
+ }
+
+ /* Rules for browsers that don't support mozPrintCallback. */
+ #sidebarContainer, #secondaryToolbar, .toolbar, #loadingBox, #errorWrapper, .textLayer {
+ display: none;
+ }
+ #viewerContainer {
+ overflow: visible;
+ }
+
+ #mainContainer, #viewerContainer, .page, .page canvas {
+ position: static;
+ padding: 0;
+ margin: 0;
+ }
+
+ .page {
+ float: left;
+ display: none;
+ border: none;
+ box-shadow: none;
+ background-clip: content-box;
+ background-color: white;
+ }
+
+ .page[data-loaded] {
+ display: block;
+ }
+
+ .fileInput {
+ display: none;
+ }
+
+ /* Rules for browsers that support mozPrintCallback */
+ body[data-mozPrintCallback] #outerContainer {
+ display: none;
+ }
+ body[data-mozPrintCallback] #printContainer {
+ display: block;
+ }
+ #printContainer canvas {
+ position: relative;
+ top: 0;
+ left: 0;
+ display: block;
+ }
+}
+
+.visibleLargeView,
+.visibleMediumView,
+.visibleSmallView {
+ display: none;
+}
+
+@media all and (max-width: 960px) {
+ html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter,
+ html[dir='ltr'] #outerContainer.sidebarOpen .outerCenter {
+ float: left;
+ left: 205px;
+ }
+ html[dir='rtl'] #outerContainer.sidebarMoving .outerCenter,
+ html[dir='rtl'] #outerContainer.sidebarOpen .outerCenter {
+ float: right;
+ right: 205px;
+ }
+}
+
+@media all and (max-width: 900px) {
+ .sidebarOpen .hiddenLargeView {
+ display: none;
+ }
+ .sidebarOpen .visibleLargeView {
+ display: inherit;
+ }
+}
+
+@media all and (max-width: 860px) {
+ .sidebarOpen .hiddenMediumView {
+ display: none;
+ }
+ .sidebarOpen .visibleMediumView {
+ display: inherit;
+ }
+}
+
+@media all and (max-width: 770px) {
+ #sidebarContainer {
+ top: 32px;
+ z-index: 100;
+ }
+ .loadingInProgress #sidebarContainer {
+ top: 37px;
+ }
+ #sidebarContent {
+ top: 32px;
+ background-color: hsla(0,0%,0%,.7);
+ }
+
+ html[dir='ltr'] #outerContainer.sidebarOpen > #mainContainer {
+ left: 0px;
+ }
+ html[dir='rtl'] #outerContainer.sidebarOpen > #mainContainer {
+ right: 0px;
+ }
+
+ html[dir='ltr'] .outerCenter {
+ float: left;
+ left: 205px;
+ }
+ html[dir='rtl'] .outerCenter {
+ float: right;
+ right: 205px;
+ }
+
+ #outerContainer .hiddenLargeView,
+ #outerContainer .hiddenMediumView {
+ display: inherit;
+ }
+ #outerContainer .visibleLargeView,
+ #outerContainer .visibleMediumView {
+ display: none;
+ }
+}
+
+@media all and (max-width: 700px) {
+ #outerContainer .hiddenLargeView {
+ display: none;
+ }
+ #outerContainer .visibleLargeView {
+ display: inherit;
+ }
+}
+
+@media all and (max-width: 660px) {
+ #outerContainer .hiddenMediumView {
+ display: none;
+ }
+ #outerContainer .visibleMediumView {
+ display: inherit;
+ }
+}
+
+@media all and (max-width: 600px) {
+ .hiddenSmallView {
+ display: none;
+ }
+ .visibleSmallView {
+ display: inherit;
+ }
+ html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter,
+ html[dir='ltr'] #outerContainer.sidebarOpen .outerCenter,
+ html[dir='ltr'] .outerCenter {
+ left: 156px;
+ }
+ html[dir='rtl'] #outerContainer.sidebarMoving .outerCenter,
+ html[dir='rtl'] #outerContainer.sidebarOpen .outerCenter,
+ html[dir='rtl'] .outerCenter {
+ right: 156px;
+ }
+ .toolbarButtonSpacer {
+ width: 0;
+ }
+}
+
+@media all and (max-width: 510px) {
+ #scaleSelectContainer, #pageNumberLabel {
+ display: none;
+ }
+}
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.html b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.html
new file mode 100644
index 00000000..b3af4ada
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.html
@@ -0,0 +1,418 @@
+<!DOCTYPE html>
+<!--
+Copyright 2012 Mozilla Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Adobe CMap resources are covered by their own copyright and license:
+http://sourceforge.net/adobe/cmap/wiki/License/
+-->
+<html dir="ltr" mozdisallowselectionprint moznomarginboxes>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ <meta name="google" content="notranslate">
+ <title>PDF.js viewer</title>
+
+
+ <link rel="stylesheet" href="viewer.css"/>
+
+ <script src="compatibility.js"></script>
+
+
+
+<!-- This snippet is used in production (included from viewer.html) -->
+<link rel="resource" type="application/l10n" href="locale/locale.properties"/>
+<script src="l10n.js"></script>
+<script src="../build/pdf.js"></script>
+
+
+
+ <script src="debugger.js"></script>
+ <script src="viewer.js"></script>
+
+ </head>
+
+ <body tabindex="1" class="loadingInProgress">
+ <div id="outerContainer">
+
+ <div id="sidebarContainer">
+ <div id="toolbarSidebar">
+ <div class="splitToolbarButton toggled">
+ <button id="viewThumbnail" class="toolbarButton group toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs">
+ <span data-l10n-id="thumbs_label">Thumbnails</span>
+ </button>
+ <button id="viewOutline" class="toolbarButton group" title="Show Document Outline" tabindex="3" data-l10n-id="outline">
+ <span data-l10n-id="outline_label">Document Outline</span>
+ </button>
+ <button id="viewAttachments" class="toolbarButton group" title="Show Attachments" tabindex="4" data-l10n-id="attachments">
+ <span data-l10n-id="attachments_label">Attachments</span>
+ </button>
+ </div>
+ </div>
+ <div id="sidebarContent">
+ <div id="thumbnailView">
+ </div>
+ <div id="outlineView" class="hidden">
+ </div>
+ <div id="attachmentsView" class="hidden">
+ </div>
+ </div>
+ </div> <!-- sidebarContainer -->
+
+ <div id="mainContainer">
+ <div class="findbar hidden doorHanger hiddenSmallView" id="findbar">
+ <label for="findInput" class="toolbarLabel" data-l10n-id="find_label">Find:</label>
+ <input id="findInput" class="toolbarField" tabindex="91">
+ <div class="splitToolbarButton">
+ <button class="toolbarButton findPrevious" title="" id="findPrevious" tabindex="92" data-l10n-id="find_previous">
+ <span data-l10n-id="find_previous_label">Previous</span>
+ </button>
+ <div class="splitToolbarButtonSeparator"></div>
+ <button class="toolbarButton findNext" title="" id="findNext" tabindex="93" data-l10n-id="find_next">
+ <span data-l10n-id="find_next_label">Next</span>
+ </button>
+ </div>
+ <input type="checkbox" id="findHighlightAll" class="toolbarField">
+ <label for="findHighlightAll" class="toolbarLabel" tabindex="94" data-l10n-id="find_highlight">Highlight all</label>
+ <input type="checkbox" id="findMatchCase" class="toolbarField">
+ <label for="findMatchCase" class="toolbarLabel" tabindex="95" data-l10n-id="find_match_case_label">Match case</label>
+ <span id="findMsg" class="toolbarLabel"></span>
+ </div> <!-- findbar -->
+
+ <div id="secondaryToolbar" class="secondaryToolbar hidden doorHangerRight">
+ <div id="secondaryToolbarButtonContainer">
+ <button id="secondaryPresentationMode" class="secondaryToolbarButton presentationMode visibleLargeView" title="Switch to Presentation Mode" tabindex="51" data-l10n-id="presentation_mode">
+ <span data-l10n-id="presentation_mode_label">Presentation Mode</span>
+ </button>
+
+ <button id="secondaryOpenFile" class="secondaryToolbarButton openFile visibleLargeView" title="Open File" tabindex="52" data-l10n-id="open_file">
+ <span data-l10n-id="open_file_label">Open</span>
+ </button>
+
+ <button id="secondaryPrint" class="secondaryToolbarButton print visibleMediumView" title="Print" tabindex="53" data-l10n-id="print">
+ <span data-l10n-id="print_label">Print</span>
+ </button>
+
+ <button id="secondaryDownload" class="secondaryToolbarButton download visibleMediumView" title="Download" tabindex="54" data-l10n-id="download">
+ <span data-l10n-id="download_label">Download</span>
+ </button>
+
+ <a href="#" id="secondaryViewBookmark" class="secondaryToolbarButton bookmark visibleSmallView" title="Current view (copy or open in new window)" tabindex="55" data-l10n-id="bookmark">
+ <span data-l10n-id="bookmark_label">Current View</span>
+ </a>
+
+ <div class="horizontalToolbarSeparator visibleLargeView"></div>
+
+ <button id="firstPage" class="secondaryToolbarButton firstPage" title="Go to First Page" tabindex="56" data-l10n-id="first_page">
+ <span data-l10n-id="first_page_label">Go to First Page</span>
+ </button>
+ <button id="lastPage" class="secondaryToolbarButton lastPage" title="Go to Last Page" tabindex="57" data-l10n-id="last_page">
+ <span data-l10n-id="last_page_label">Go to Last Page</span>
+ </button>
+
+ <div class="horizontalToolbarSeparator"></div>
+
+ <button id="pageRotateCw" class="secondaryToolbarButton rotateCw" title="Rotate Clockwise" tabindex="58" data-l10n-id="page_rotate_cw">
+ <span data-l10n-id="page_rotate_cw_label">Rotate Clockwise</span>
+ </button>
+ <button id="pageRotateCcw" class="secondaryToolbarButton rotateCcw" title="Rotate Counterclockwise" tabindex="59" data-l10n-id="page_rotate_ccw">
+ <span data-l10n-id="page_rotate_ccw_label">Rotate Counterclockwise</span>
+ </button>
+
+ <div class="horizontalToolbarSeparator"></div>
+
+ <button id="toggleHandTool" class="secondaryToolbarButton handTool" title="Enable hand tool" tabindex="60" data-l10n-id="hand_tool_enable">
+ <span data-l10n-id="hand_tool_enable_label">Enable hand tool</span>
+ </button>
+
+ <div class="horizontalToolbarSeparator"></div>
+
+ <button id="documentProperties" class="secondaryToolbarButton documentProperties" title="Document Properties…" tabindex="61" data-l10n-id="document_properties">
+ <span data-l10n-id="document_properties_label">Document Properties…</span>
+ </button>
+ </div>
+ </div> <!-- secondaryToolbar -->
+
+ <div class="toolbar">
+ <div id="toolbarContainer">
+ <div id="toolbarViewer">
+ <div id="toolbarViewerLeft">
+ <button id="sidebarToggle" class="toolbarButton" title="Toggle Sidebar" tabindex="11" data-l10n-id="toggle_sidebar">
+ <span data-l10n-id="toggle_sidebar_label">Toggle Sidebar</span>
+ </button>
+ <div class="toolbarButtonSpacer"></div>
+ <button id="viewFind" class="toolbarButton group hiddenSmallView" title="Find in Document" tabindex="12" data-l10n-id="findbar">
+ <span data-l10n-id="findbar_label">Find</span>
+ </button>
+ <div class="splitToolbarButton">
+ <button class="toolbarButton pageUp" title="Previous Page" id="previous" tabindex="13" data-l10n-id="previous">
+ <span data-l10n-id="previous_label">Previous</span>
+ </button>
+ <div class="splitToolbarButtonSeparator"></div>
+ <button class="toolbarButton pageDown" title="Next Page" id="next" tabindex="14" data-l10n-id="next">
+ <span data-l10n-id="next_label">Next</span>
+ </button>
+ </div>
+ <label id="pageNumberLabel" class="toolbarLabel" for="pageNumber" data-l10n-id="page_label">Page: </label>
+ <input type="number" id="pageNumber" class="toolbarField pageNumber" value="1" size="4" min="1" tabindex="15">
+ <span id="numPages" class="toolbarLabel"></span>
+ </div>
+ <div id="toolbarViewerRight">
+ <button id="presentationMode" class="toolbarButton presentationMode hiddenLargeView" title="Switch to Presentation Mode" tabindex="31" data-l10n-id="presentation_mode">
+ <span data-l10n-id="presentation_mode_label">Presentation Mode</span>
+ </button>
+
+ <button id="openFile" class="toolbarButton openFile hiddenLargeView" title="Open File" tabindex="32" data-l10n-id="open_file">
+ <span data-l10n-id="open_file_label">Open</span>
+ </button>
+
+ <button id="print" class="toolbarButton print hiddenMediumView" title="Print" tabindex="33" data-l10n-id="print">
+ <span data-l10n-id="print_label">Print</span>
+ </button>
+
+ <button id="download" class="toolbarButton download hiddenMediumView" title="Download" tabindex="34" data-l10n-id="download">
+ <span data-l10n-id="download_label">Download</span>
+ </button>
+ <a href="#" id="viewBookmark" class="toolbarButton bookmark hiddenSmallView" title="Current view (copy or open in new window)" tabindex="35" data-l10n-id="bookmark">
+ <span data-l10n-id="bookmark_label">Current View</span>
+ </a>
+
+ <div class="verticalToolbarSeparator hiddenSmallView"></div>
+
+ <button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="36" data-l10n-id="tools">
+ <span data-l10n-id="tools_label">Tools</span>
+ </button>
+ </div>
+ <div class="outerCenter">
+ <div class="innerCenter" id="toolbarViewerMiddle">
+ <div class="splitToolbarButton">
+ <button id="zoomOut" class="toolbarButton zoomOut" title="Zoom Out" tabindex="21" data-l10n-id="zoom_out">
+ <span data-l10n-id="zoom_out_label">Zoom Out</span>
+ </button>
+ <div class="splitToolbarButtonSeparator"></div>
+ <button id="zoomIn" class="toolbarButton zoomIn" title="Zoom In" tabindex="22" data-l10n-id="zoom_in">
+ <span data-l10n-id="zoom_in_label">Zoom In</span>
+ </button>
+ </div>
+ <span id="scaleSelectContainer" class="dropdownToolbarButton">
+ <select id="scaleSelect" title="Zoom" tabindex="23" data-l10n-id="zoom">
+ <option id="pageAutoOption" title="" value="auto" selected="selected" data-l10n-id="page_scale_auto">Automatic Zoom</option>
+ <option id="pageActualOption" title="" value="page-actual" data-l10n-id="page_scale_actual">Actual Size</option>
+ <option id="pageFitOption" title="" value="page-fit" data-l10n-id="page_scale_fit">Fit Page</option>
+ <option id="pageWidthOption" title="" value="page-width" data-l10n-id="page_scale_width">Full Width</option>
+ <option id="customScaleOption" title="" value="custom"></option>
+ <option title="" value="0.5" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 50 }'>50%</option>
+ <option title="" value="0.75" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 75 }'>75%</option>
+ <option title="" value="1" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 100 }'>100%</option>
+ <option title="" value="1.25" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 125 }'>125%</option>
+ <option title="" value="1.5" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 150 }'>150%</option>
+ <option title="" value="2" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 200 }'>200%</option>
+ <option title="" value="3" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 300 }'>300%</option>
+ <option title="" value="4" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 400 }'>400%</option>
+ </select>
+ </span>
+ </div>
+ </div>
+ </div>
+ <div id="loadingBar">
+ <div class="progress">
+ <div class="glimmer">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <menu type="context" id="viewerContextMenu">
+ <menuitem id="contextFirstPage" label="First Page"
+ data-l10n-id="first_page"></menuitem>
+ <menuitem id="contextLastPage" label="Last Page"
+ data-l10n-id="last_page"></menuitem>
+ <menuitem id="contextPageRotateCw" label="Rotate Clockwise"
+ data-l10n-id="page_rotate_cw"></menuitem>
+ <menuitem id="contextPageRotateCcw" label="Rotate Counter-Clockwise"
+ data-l10n-id="page_rotate_ccw"></menuitem>
+ </menu>
+
+ <div id="viewerContainer" tabindex="0">
+ <div id="viewer" class="pdfViewer"></div>
+ </div>
+
+ <div id="errorWrapper" hidden='true'>
+ <div id="errorMessageLeft">
+ <span id="errorMessage"></span>
+ <button id="errorShowMore" data-l10n-id="error_more_info">
+ More Information
+ </button>
+ <button id="errorShowLess" data-l10n-id="error_less_info" hidden='true'>
+ Less Information
+ </button>
+ </div>
+ <div id="errorMessageRight">
+ <button id="errorClose" data-l10n-id="error_close">
+ Close
+ </button>
+ </div>
+ <div class="clearBoth"></div>
+ <textarea id="errorMoreInfo" hidden='true' readonly="readonly"></textarea>
+ </div>
+ </div> <!-- mainContainer -->
+
+ <div id="overlayContainer" class="hidden">
+ <div id="passwordOverlay" class="container hidden">
+ <div class="dialog">
+ <div class="row">
+ <p id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF file:</p>
+ </div>
+ <div class="row">
+ <input type="password" id="password" class="toolbarField" />
+ </div>
+ <div class="buttonRow">
+ <button id="passwordCancel" class="overlayButton"><span data-l10n-id="password_cancel">Cancel</span></button>
+ <button id="passwordSubmit" class="overlayButton"><span data-l10n-id="password_ok">OK</span></button>
+ </div>
+ </div>
+ </div>
+ <div id="documentPropertiesOverlay" class="container hidden">
+ <div class="dialog">
+ <div class="row">
+ <span data-l10n-id="document_properties_file_name">File name:</span> <p id="fileNameField">-</p>
+ </div>
+ <div class="row">
+ <span data-l10n-id="document_properties_file_size">File size:</span> <p id="fileSizeField">-</p>
+ </div>
+ <div class="separator"></div>
+ <div class="row">
+ <span data-l10n-id="document_properties_title">Title:</span> <p id="titleField">-</p>
+ </div>
+ <div class="row">
+ <span data-l10n-id="document_properties_author">Author:</span> <p id="authorField">-</p>
+ </div>
+ <div class="row">
+ <span data-l10n-id="document_properties_subject">Subject:</span> <p id="subjectField">-</p>
+ </div>
+ <div class="row">
+ <span data-l10n-id="document_properties_keywords">Keywords:</span> <p id="keywordsField">-</p>
+ </div>
+ <div class="row">
+ <span data-l10n-id="document_properties_creation_date">Creation Date:</span> <p id="creationDateField">-</p>
+ </div>
+ <div class="row">
+ <span data-l10n-id="document_properties_modification_date">Modification Date:</span> <p id="modificationDateField">-</p>
+ </div>
+ <div class="row">
+ <span data-l10n-id="document_properties_creator">Creator:</span> <p id="creatorField">-</p>
+ </div>
+ <div class="separator"></div>
+ <div class="row">
+ <span data-l10n-id="document_properties_producer">PDF Producer:</span> <p id="producerField">-</p>
+ </div>
+ <div class="row">
+ <span data-l10n-id="document_properties_version">PDF Version:</span> <p id="versionField">-</p>
+ </div>
+ <div class="row">
+ <span data-l10n-id="document_properties_page_count">Page Count:</span> <p id="pageCountField">-</p>
+ </div>
+ <div class="buttonRow">
+ <button id="documentPropertiesClose" class="overlayButton"><span data-l10n-id="document_properties_close">Close</span></button>
+ </div>
+ </div>
+ </div>
+ </div> <!-- overlayContainer -->
+
+ </div> <!-- outerContainer -->
+ <div id="printContainer"></div>
+<div id="mozPrintCallback-shim" hidden>
+ <style>
+@media print {
+ #printContainer div {
+ page-break-after: always;
+ page-break-inside: avoid;
+ }
+}
+ </style>
+ <style scoped>
+#mozPrintCallback-shim {
+ position: fixed;
+ top: 0;
+ left: 0;
+ height: 100%;
+ width: 100%;
+ z-index: 9999999;
+
+ display: block;
+ text-align: center;
+ background-color: rgba(0, 0, 0, 0.5);
+}
+#mozPrintCallback-shim[hidden] {
+ display: none;
+}
+@media print {
+ #mozPrintCallback-shim {
+ display: none;
+ }
+}
+
+#mozPrintCallback-shim .mozPrintCallback-dialog-box {
+ display: inline-block;
+ margin: -50px auto 0;
+ position: relative;
+ top: 45%;
+ left: 0;
+ min-width: 220px;
+ max-width: 400px;
+
+ padding: 9px;
+
+ border: 1px solid hsla(0, 0%, 0%, .5);
+ border-radius: 2px;
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
+
+ background-color: #474747;
+
+ color: hsl(0, 0%, 85%);
+ font-size: 16px;
+ line-height: 20px;
+}
+#mozPrintCallback-shim .progress-row {
+ clear: both;
+ padding: 1em 0;
+}
+#mozPrintCallback-shim progress {
+ width: 100%;
+}
+#mozPrintCallback-shim .relative-progress {
+ clear: both;
+ float: right;
+}
+#mozPrintCallback-shim .progress-actions {
+ clear: both;
+}
+ </style>
+ <div class="mozPrintCallback-dialog-box">
+ <!-- TODO: Localise the following strings -->
+ Preparing document for printing...
+ <div class="progress-row">
+ <progress value="0" max="100"></progress>
+ <span class="relative-progress">0%</span>
+ </div>
+ <div class="progress-actions">
+ <input type="button" value="Cancel" class="mozPrintCallback-cancel">
+ </div>
+ </div>
+</div>
+
+ </body>
+</html>
+
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js
new file mode 100644
index 00000000..34c44e46
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js
@@ -0,0 +1,7435 @@
+/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
+/* Copyright 2012 Mozilla Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/* globals PDFJS, PDFBug, FirefoxCom, Stats, Cache, ProgressBar,
+ DownloadManager, getFileName, scrollIntoView, getPDFFileNameFromURL,
+ PDFHistory, Preferences, SidebarView, ViewHistory, Stats,
+ PDFThumbnailViewer, URL, noContextMenuHandler, SecondaryToolbar,
+ PasswordPrompt, PresentationMode, HandTool, Promise,
+ DocumentProperties, PDFOutlineView, PDFAttachmentView,
+ OverlayManager, PDFFindController, PDFFindBar, getVisibleElements,
+ watchScroll, PDFViewer, PDFRenderingQueue, PresentationModeState,
+ RenderingStates, DEFAULT_SCALE, UNKNOWN_SCALE,
+ IGNORE_CURRENT_POSITION_ON_ZOOM: true */
+
+'use strict';
+
+var DEFAULT_URL = 'compressed.tracemonkey-pldi-09.pdf';
+var DEFAULT_SCALE_DELTA = 1.1;
+var MIN_SCALE = 0.25;
+var MAX_SCALE = 10.0;
+var VIEW_HISTORY_MEMORY = 20;
+var SCALE_SELECT_CONTAINER_PADDING = 8;
+var SCALE_SELECT_PADDING = 22;
+var PAGE_NUMBER_LOADING_INDICATOR = 'visiblePageIsLoading';
+var DISABLE_AUTO_FETCH_LOADING_BAR_TIMEOUT = 5000;
+
+PDFJS.imageResourcesPath = './images/';
+ PDFJS.workerSrc = '../build/pdf.worker.js';
+ PDFJS.cMapUrl = '../web/cmaps/';
+ PDFJS.cMapPacked = true;
+
+var mozL10n = document.mozL10n || document.webL10n;
+
+
+var CSS_UNITS = 96.0 / 72.0;
+var DEFAULT_SCALE = 'auto';
+var UNKNOWN_SCALE = 0;
+var MAX_AUTO_SCALE = 1.25;
+var SCROLLBAR_PADDING = 40;
+var VERTICAL_PADDING = 5;
+
+// optimised CSS custom property getter/setter
+var CustomStyle = (function CustomStyleClosure() {
+
+ // As noted on: http://www.zachstronaut.com/posts/2009/02/17/
+ // animate-css-transforms-firefox-webkit.html
+ // in some versions of IE9 it is critical that ms appear in this list
+ // before Moz
+ var prefixes = ['ms', 'Moz', 'Webkit', 'O'];
+ var _cache = {};
+
+ function CustomStyle() {}
+
+ CustomStyle.getProp = function get(propName, element) {
+ // check cache only when no element is given
+ if (arguments.length === 1 && typeof _cache[propName] === 'string') {
+ return _cache[propName];
+ }
+
+ element = element || document.documentElement;
+ var style = element.style, prefixed, uPropName;
+
+ // test standard property first
+ if (typeof style[propName] === 'string') {
+ return (_cache[propName] = propName);
+ }
+
+ // capitalize
+ uPropName = propName.charAt(0).toUpperCase() + propName.slice(1);
+
+ // test vendor specific properties
+ for (var i = 0, l = prefixes.length; i < l; i++) {
+ prefixed = prefixes[i] + uPropName;
+ if (typeof style[prefixed] === 'string') {
+ return (_cache[propName] = prefixed);
+ }
+ }
+
+ //if all fails then set to undefined
+ return (_cache[propName] = 'undefined');
+ };
+
+ CustomStyle.setProp = function set(propName, element, str) {
+ var prop = this.getProp(propName);
+ if (prop !== 'undefined') {
+ element.style[prop] = str;
+ }
+ };
+
+ return CustomStyle;
+})();
+
+function getFileName(url) {
+ var anchor = url.indexOf('#');
+ var query = url.indexOf('?');
+ var end = Math.min(
+ anchor > 0 ? anchor : url.length,
+ query > 0 ? query : url.length);
+ return url.substring(url.lastIndexOf('/', end) + 1, end);
+}
+
+/**
+ * Returns scale factor for the canvas. It makes sense for the HiDPI displays.
+ * @return {Object} The object with horizontal (sx) and vertical (sy)
+ scales. The scaled property is set to false if scaling is
+ not required, true otherwise.
+ */
+function getOutputScale(ctx) {
+ var devicePixelRatio = window.devicePixelRatio || 1;
+ var backingStoreRatio = ctx.webkitBackingStorePixelRatio ||
+ ctx.mozBackingStorePixelRatio ||
+ ctx.msBackingStorePixelRatio ||
+ ctx.oBackingStorePixelRatio ||
+ ctx.backingStorePixelRatio || 1;
+ var pixelRatio = devicePixelRatio / backingStoreRatio;
+ return {
+ sx: pixelRatio,
+ sy: pixelRatio,
+ scaled: pixelRatio !== 1
+ };
+}
+
+/**
+ * Scrolls specified element into view of its parent.
+ * element {Object} The element to be visible.
+ * spot {Object} An object with optional top and left properties,
+ * specifying the offset from the top left edge.
+ */
+function scrollIntoView(element, spot) {
+ // Assuming offsetParent is available (it's not available when viewer is in
+ // hidden iframe or object). We have to scroll: if the offsetParent is not set
+ // producing the error. See also animationStartedClosure.
+ var parent = element.offsetParent;
+ var offsetY = element.offsetTop + element.clientTop;
+ var offsetX = element.offsetLeft + element.clientLeft;
+ if (!parent) {
+ console.error('offsetParent is not set -- cannot scroll');
+ return;
+ }
+ while (parent.clientHeight === parent.scrollHeight) {
+ if (parent.dataset._scaleY) {
+ offsetY /= parent.dataset._scaleY;
+ offsetX /= parent.dataset._scaleX;
+ }
+ offsetY += parent.offsetTop;
+ offsetX += parent.offsetLeft;
+ parent = parent.offsetParent;
+ if (!parent) {
+ return; // no need to scroll
+ }
+ }
+ if (spot) {
+ if (spot.top !== undefined) {
+ offsetY += spot.top;
+ }
+ if (spot.left !== undefined) {
+ offsetX += spot.left;
+ parent.scrollLeft = offsetX;
+ }
+ }
+ parent.scrollTop = offsetY;
+}
+
+/**
+ * Helper function to start monitoring the scroll event and converting them into
+ * PDF.js friendly one: with scroll debounce and scroll direction.
+ */
+function watchScroll(viewAreaElement, callback) {
+ var debounceScroll = function debounceScroll(evt) {
+ if (rAF) {
+ return;
+ }
+ // schedule an invocation of scroll for next animation frame.
+ rAF = window.requestAnimationFrame(function viewAreaElementScrolled() {
+ rAF = null;
+
+ var currentY = viewAreaElement.scrollTop;
+ var lastY = state.lastY;
+ if (currentY !== lastY) {
+ state.down = currentY > lastY;
+ }
+ state.lastY = currentY;
+ callback(state);
+ });
+ };
+
+ var state = {
+ down: true,
+ lastY: viewAreaElement.scrollTop,
+ _eventHandler: debounceScroll
+ };
+
+ var rAF = null;
+ viewAreaElement.addEventListener('scroll', debounceScroll, true);
+ return state;
+}
+
+/**
+ * Use binary search to find the index of the first item in a given array which
+ * passes a given condition. The items are expected to be sorted in the sense
+ * that if the condition is true for one item in the array, then it is also true
+ * for all following items.
+ *
+ * @returns {Number} Index of the first array element to pass the test,
+ * or |items.length| if no such element exists.
+ */
+function binarySearchFirstItem(items, condition) {
+ var minIndex = 0;
+ var maxIndex = items.length - 1;
+
+ if (items.length === 0 || !condition(items[maxIndex])) {
+ return items.length;
+ }
+ if (condition(items[minIndex])) {
+ return minIndex;
+ }
+
+ while (minIndex < maxIndex) {
+ var currentIndex = (minIndex + maxIndex) >> 1;
+ var currentItem = items[currentIndex];
+ if (condition(currentItem)) {
+ maxIndex = currentIndex;
+ } else {
+ minIndex = currentIndex + 1;
+ }
+ }
+ return minIndex; /* === maxIndex */
+}
+
+/**
+ * Generic helper to find out what elements are visible within a scroll pane.
+ */
+function getVisibleElements(scrollEl, views, sortByVisibility) {
+ var top = scrollEl.scrollTop, bottom = top + scrollEl.clientHeight;
+ var left = scrollEl.scrollLeft, right = left + scrollEl.clientWidth;
+
+ function isElementBottomBelowViewTop(view) {
+ var element = view.div;
+ var elementBottom =
+ element.offsetTop + element.clientTop + element.clientHeight;
+ return elementBottom > top;
+ }
+
+ var visible = [], view, element;
+ var currentHeight, viewHeight, hiddenHeight, percentHeight;
+ var currentWidth, viewWidth;
+ var firstVisibleElementInd = (views.length === 0) ? 0 :
+ binarySearchFirstItem(views, isElementBottomBelowViewTop);
+
+ for (var i = firstVisibleElementInd, ii = views.length; i < ii; i++) {
+ view = views[i];
+ element = view.div;
+ currentHeight = element.offsetTop + element.clientTop;
+ viewHeight = element.clientHeight;
+
+ if (currentHeight > bottom) {
+ break;
+ }
+
+ currentWidth = element.offsetLeft + element.clientLeft;
+ viewWidth = element.clientWidth;
+ if (currentWidth + viewWidth < left || currentWidth > right) {
+ continue;
+ }
+ hiddenHeight = Math.max(0, top - currentHeight) +
+ Math.max(0, currentHeight + viewHeight - bottom);
+ percentHeight = ((viewHeight - hiddenHeight) * 100 / viewHeight) | 0;
+
+ visible.push({
+ id: view.id,
+ x: currentWidth,
+ y: currentHeight,
+ view: view,
+ percent: percentHeight
+ });
+ }
+
+ var first = visible[0];
+ var last = visible[visible.length - 1];
+
+ if (sortByVisibility) {
+ visible.sort(function(a, b) {
+ var pc = a.percent - b.percent;
+ if (Math.abs(pc) > 0.001) {
+ return -pc;
+ }
+ return a.id - b.id; // ensure stability
+ });
+ }
+ return {first: first, last: last, views: visible};
+}
+
+/**
+ * Event handler to suppress context menu.
+ */
+function noContextMenuHandler(e) {
+ e.preventDefault();
+}
+
+/**
+ * Returns the filename or guessed filename from the url (see issue 3455).
+ * url {String} The original PDF location.
+ * @return {String} Guessed PDF file name.
+ */
+function getPDFFileNameFromURL(url) {
+ var reURI = /^(?:([^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/;
+ // SCHEME HOST 1.PATH 2.QUERY 3.REF
+ // Pattern to get last matching NAME.pdf
+ var reFilename = /[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i;
+ var splitURI = reURI.exec(url);
+ var suggestedFilename = reFilename.exec(splitURI[1]) ||
+ reFilename.exec(splitURI[2]) ||
+ reFilename.exec(splitURI[3]);
+ if (suggestedFilename) {
+ suggestedFilename = suggestedFilename[0];
+ if (suggestedFilename.indexOf('%') !== -1) {
+ // URL-encoded %2Fpath%2Fto%2Ffile.pdf should be file.pdf
+ try {
+ suggestedFilename =
+ reFilename.exec(decodeURIComponent(suggestedFilename))[0];
+ } catch(e) { // Possible (extremely rare) errors:
+ // URIError "Malformed URI", e.g. for "%AA.pdf"
+ // TypeError "null has no properties", e.g. for "%2F.pdf"
+ }
+ }
+ }
+ return suggestedFilename || 'document.pdf';
+}
+
+var ProgressBar = (function ProgressBarClosure() {
+
+ function clamp(v, min, max) {
+ return Math.min(Math.max(v, min), max);
+ }
+
+ function ProgressBar(id, opts) {
+ this.visible = true;
+
+ // Fetch the sub-elements for later.
+ this.div = document.querySelector(id + ' .progress');
+
+ // Get the loading bar element, so it can be resized to fit the viewer.
+ this.bar = this.div.parentNode;
+
+ // Get options, with sensible defaults.
+ this.height = opts.height || 100;
+ this.width = opts.width || 100;
+ this.units = opts.units || '%';
+
+ // Initialize heights.
+ this.div.style.height = this.height + this.units;
+ this.percent = 0;
+ }
+
+ ProgressBar.prototype = {
+
+ updateBar: function ProgressBar_updateBar() {
+ if (this._indeterminate) {
+ this.div.classList.add('indeterminate');
+ this.div.style.width = this.width + this.units;
+ return;
+ }
+
+ this.div.classList.remove('indeterminate');
+ var progressSize = this.width * this._percent / 100;
+ this.div.style.width = progressSize + this.units;
+ },
+
+ get percent() {
+ return this._percent;
+ },
+
+ set percent(val) {
+ this._indeterminate = isNaN(val);
+ this._percent = clamp(val, 0, 100);
+ this.updateBar();
+ },
+
+ setWidth: function ProgressBar_setWidth(viewer) {
+ if (viewer) {
+ var container = viewer.parentNode;
+ var scrollbarWidth = container.offsetWidth - viewer.offsetWidth;
+ if (scrollbarWidth > 0) {
+ this.bar.setAttribute('style', 'width: calc(100% - ' +
+ scrollbarWidth + 'px);');
+ }
+ }
+ },
+
+ hide: function ProgressBar_hide() {
+ if (!this.visible) {
+ return;
+ }
+ this.visible = false;
+ this.bar.classList.add('hidden');
+ document.body.classList.remove('loadingInProgress');
+ },
+
+ show: function ProgressBar_show() {
+ if (this.visible) {
+ return;
+ }
+ this.visible = true;
+ document.body.classList.add('loadingInProgress');
+ this.bar.classList.remove('hidden');
+ }
+ };
+
+ return ProgressBar;
+})();
+
+
+
+var DEFAULT_PREFERENCES = {
+ showPreviousViewOnLoad: true,
+ defaultZoomValue: '',
+ sidebarViewOnLoad: 0,
+ enableHandToolOnLoad: false,
+ enableWebGL: false,
+ pdfBugEnabled: false,
+ disableRange: false,
+ disableStream: false,
+ disableAutoFetch: false,
+ disableFontFace: false,
+ disableTextLayer: false,
+ useOnlyCssZoom: false
+};
+
+
+var SidebarView = {
+ NONE: 0,
+ THUMBS: 1,
+ OUTLINE: 2,
+ ATTACHMENTS: 3
+};
+
+/**
+ * Preferences - Utility for storing persistent settings.
+ * Used for settings that should be applied to all opened documents,
+ * or every time the viewer is loaded.
+ */
+var Preferences = {
+ prefs: Object.create(DEFAULT_PREFERENCES),
+ isInitializedPromiseResolved: false,
+ initializedPromise: null,
+
+ /**
+ * Initialize and fetch the current preference values from storage.
+ * @return {Promise} A promise that is resolved when the preferences
+ * have been initialized.
+ */
+ initialize: function preferencesInitialize() {
+ return this.initializedPromise =
+ this._readFromStorage(DEFAULT_PREFERENCES).then(function(prefObj) {
+ this.isInitializedPromiseResolved = true;
+ if (prefObj) {
+ this.prefs = prefObj;
+ }
+ }.bind(this));
+ },
+
+ /**
+ * Stub function for writing preferences to storage.
+ * NOTE: This should be overridden by a build-specific function defined below.
+ * @param {Object} prefObj The preferences that should be written to storage.
+ * @return {Promise} A promise that is resolved when the preference values
+ * have been written.
+ */
+ _writeToStorage: function preferences_writeToStorage(prefObj) {
+ return Promise.resolve();
+ },
+
+ /**
+ * Stub function for reading preferences from storage.
+ * NOTE: This should be overridden by a build-specific function defined below.
+ * @param {Object} prefObj The preferences that should be read from storage.
+ * @return {Promise} A promise that is resolved with an {Object} containing
+ * the preferences that have been read.
+ */
+ _readFromStorage: function preferences_readFromStorage(prefObj) {
+ return Promise.resolve();
+ },
+
+ /**
+ * Reset the preferences to their default values and update storage.
+ * @return {Promise} A promise that is resolved when the preference values
+ * have been reset.
+ */
+ reset: function preferencesReset() {
+ return this.initializedPromise.then(function() {
+ this.prefs = Object.create(DEFAULT_PREFERENCES);
+ return this._writeToStorage(DEFAULT_PREFERENCES);
+ }.bind(this));
+ },
+
+ /**
+ * Replace the current preference values with the ones from storage.
+ * @return {Promise} A promise that is resolved when the preference values
+ * have been updated.
+ */
+ reload: function preferencesReload() {
+ return this.initializedPromise.then(function () {
+ this._readFromStorage(DEFAULT_PREFERENCES).then(function(prefObj) {
+ if (prefObj) {
+ this.prefs = prefObj;
+ }
+ }.bind(this));
+ }.bind(this));
+ },
+
+ /**
+ * Set the value of a preference.
+ * @param {string} name The name of the preference that should be changed.
+ * @param {boolean|number|string} value The new value of the preference.
+ * @return {Promise} A promise that is resolved when the value has been set,
+ * provided that the preference exists and the types match.
+ */
+ set: function preferencesSet(name, value) {
+ return this.initializedPromise.then(function () {
+ if (DEFAULT_PREFERENCES[name] === undefined) {
+ throw new Error('preferencesSet: \'' + name + '\' is undefined.');
+ } else if (value === undefined) {
+ throw new Error('preferencesSet: no value is specified.');
+ }
+ var valueType = typeof value;
+ var defaultType = typeof DEFAULT_PREFERENCES[name];
+
+ if (valueType !== defaultType) {
+ if (valueType === 'number' && defaultType === 'string') {
+ value = value.toString();
+ } else {
+ throw new Error('Preferences_set: \'' + value + '\' is a \"' +
+ valueType + '\", expected \"' + defaultType + '\".');
+ }
+ } else {
+ if (valueType === 'number' && (value | 0) !== value) {
+ throw new Error('Preferences_set: \'' + value +
+ '\' must be an \"integer\".');
+ }
+ }
+ this.prefs[name] = value;
+ return this._writeToStorage(this.prefs);
+ }.bind(this));
+ },
+
+ /**
+ * Get the value of a preference.
+ * @param {string} name The name of the preference whose value is requested.
+ * @return {Promise} A promise that is resolved with a {boolean|number|string}
+ * containing the value of the preference.
+ */
+ get: function preferencesGet(name) {
+ return this.initializedPromise.then(function () {
+ var defaultValue = DEFAULT_PREFERENCES[name];
+
+ if (defaultValue === undefined) {
+ throw new Error('preferencesGet: \'' + name + '\' is undefined.');
+ } else {
+ var prefValue = this.prefs[name];
+
+ if (prefValue !== undefined) {
+ return prefValue;
+ }
+ }
+ return defaultValue;
+ }.bind(this));
+ }
+};
+
+
+
+Preferences._writeToStorage = function (prefObj) {
+ return new Promise(function (resolve) {
+ localStorage.setItem('pdfjs.preferences', JSON.stringify(prefObj));
+ resolve();
+ });
+};
+
+Preferences._readFromStorage = function (prefObj) {
+ return new Promise(function (resolve) {
+ var readPrefs = JSON.parse(localStorage.getItem('pdfjs.preferences'));
+ resolve(readPrefs);
+ });
+};
+
+
+(function mozPrintCallbackPolyfillClosure() {
+ if ('mozPrintCallback' in document.createElement('canvas')) {
+ return;
+ }
+ // Cause positive result on feature-detection:
+ HTMLCanvasElement.prototype.mozPrintCallback = undefined;
+
+ var canvases; // During print task: non-live NodeList of <canvas> elements
+ var index; // Index of <canvas> element that is being processed
+
+ var print = window.print;
+ window.print = function print() {
+ if (canvases) {
+ console.warn('Ignored window.print() because of a pending print job.');
+ return;
+ }
+ try {
+ dispatchEvent('beforeprint');
+ } finally {
+ canvases = document.querySelectorAll('canvas');
+ index = -1;
+ next();
+ }
+ };
+
+ function dispatchEvent(eventType) {
+ var event = document.createEvent('CustomEvent');
+ event.initCustomEvent(eventType, false, false, 'custom');
+ window.dispatchEvent(event);
+ }
+
+ function next() {
+ if (!canvases) {
+ return; // Print task cancelled by user (state reset in abort())
+ }
+
+ renderProgress();
+ if (++index < canvases.length) {
+ var canvas = canvases[index];
+ if (typeof canvas.mozPrintCallback === 'function') {
+ canvas.mozPrintCallback({
+ context: canvas.getContext('2d'),
+ abort: abort,
+ done: next
+ });
+ } else {
+ next();
+ }
+ } else {
+ renderProgress();
+ print.call(window);
+ setTimeout(abort, 20); // Tidy-up
+ }
+ }
+
+ function abort() {
+ if (canvases) {
+ canvases = null;
+ renderProgress();
+ dispatchEvent('afterprint');
+ }
+ }
+
+ function renderProgress() {
+ var progressContainer = document.getElementById('mozPrintCallback-shim');
+ if (canvases) {
+ var progress = Math.round(100 * index / canvases.length);
+ var progressBar = progressContainer.querySelector('progress');
+ var progressPerc = progressContainer.querySelector('.relative-progress');
+ progressBar.value = progress;
+ progressPerc.textContent = progress + '%';
+ progressContainer.removeAttribute('hidden');
+ progressContainer.onclick = abort;
+ } else {
+ progressContainer.setAttribute('hidden', '');
+ }
+ }
+
+ var hasAttachEvent = !!document.attachEvent;
+
+ window.addEventListener('keydown', function(event) {
+ // Intercept Cmd/Ctrl + P in all browsers.
+ // Also intercept Cmd/Ctrl + Shift + P in Chrome and Opera
+ if (event.keyCode === 80/*P*/ && (event.ctrlKey || event.metaKey) &&
+ !event.altKey && (!event.shiftKey || window.chrome || window.opera)) {
+ window.print();
+ if (hasAttachEvent) {
+ // Only attachEvent can cancel Ctrl + P dialog in IE <=10
+ // attachEvent is gone in IE11, so the dialog will re-appear in IE11.
+ return;
+ }
+ event.preventDefault();
+ if (event.stopImmediatePropagation) {
+ event.stopImmediatePropagation();
+ } else {
+ event.stopPropagation();
+ }
+ return;
+ }
+ if (event.keyCode === 27 && canvases) { // Esc
+ abort();
+ }
+ }, true);
+ if (hasAttachEvent) {
+ document.attachEvent('onkeydown', function(event) {
+ event = event || window.event;
+ if (event.keyCode === 80/*P*/ && event.ctrlKey) {
+ event.keyCode = 0;
+ return false;
+ }
+ });
+ }
+
+ if ('onbeforeprint' in window) {
+ // Do not propagate before/afterprint events when they are not triggered
+ // from within this polyfill. (FF/IE).
+ var stopPropagationIfNeeded = function(event) {
+ if (event.detail !== 'custom' && event.stopImmediatePropagation) {
+ event.stopImmediatePropagation();
+ }
+ };
+ window.addEventListener('beforeprint', stopPropagationIfNeeded, false);
+ window.addEventListener('afterprint', stopPropagationIfNeeded, false);
+ }
+})();
+
+
+
+var DownloadManager = (function DownloadManagerClosure() {
+
+ function download(blobUrl, filename) {
+ var a = document.createElement('a');
+ if (a.click) {
+ // Use a.click() if available. Otherwise, Chrome might show
+ // "Unsafe JavaScript attempt to initiate a navigation change
+ // for frame with URL" and not open the PDF at all.
+ // Supported by (not mentioned = untested):
+ // - Firefox 6 - 19 (4- does not support a.click, 5 ignores a.click)
+ // - Chrome 19 - 26 (18- does not support a.click)
+ // - Opera 9 - 12.15
+ // - Internet Explorer 6 - 10
+ // - Safari 6 (5.1- does not support a.click)
+ a.href = blobUrl;
+ a.target = '_parent';
+ // Use a.download if available. This increases the likelihood that
+ // the file is downloaded instead of opened by another PDF plugin.
+ if ('download' in a) {
+ a.download = filename;
+ }
+ // <a> must be in the document for IE and recent Firefox versions.
+ // (otherwise .click() is ignored)
+ (document.body || document.documentElement).appendChild(a);
+ a.click();
+ a.parentNode.removeChild(a);
+ } else {
+ if (window.top === window &&
+ blobUrl.split('#')[0] === window.location.href.split('#')[0]) {
+ // If _parent == self, then opening an identical URL with different
+ // location hash will only cause a navigation, not a download.
+ var padCharacter = blobUrl.indexOf('?') === -1 ? '?' : '&';
+ blobUrl = blobUrl.replace(/#|$/, padCharacter + '$&');
+ }
+ window.open(blobUrl, '_parent');
+ }
+ }
+
+ function DownloadManager() {}
+
+ DownloadManager.prototype = {
+ downloadUrl: function DownloadManager_downloadUrl(url, filename) {
+ if (!PDFJS.isValidUrl(url, true)) {
+ return; // restricted/invalid URL
+ }
+
+ download(url + '#pdfjs.action=download', filename);
+ },
+
+ downloadData: function DownloadManager_downloadData(data, filename,
+ contentType) {
+ if (navigator.msSaveBlob) { // IE10 and above
+ return navigator.msSaveBlob(new Blob([data], { type: contentType }),
+ filename);
+ }
+
+ var blobUrl = PDFJS.createObjectURL(data, contentType);
+ download(blobUrl, filename);
+ },
+
+ download: function DownloadManager_download(blob, url, filename) {
+ if (!URL) {
+ // URL.createObjectURL is not supported
+ this.downloadUrl(url, filename);
+ return;
+ }
+
+ if (navigator.msSaveBlob) {
+ // IE10 / IE11
+ if (!navigator.msSaveBlob(blob, filename)) {
+ this.downloadUrl(url, filename);
+ }
+ return;
+ }
+
+ var blobUrl = URL.createObjectURL(blob);
+ download(blobUrl, filename);
+ }
+ };
+
+ return DownloadManager;
+})();
+
+
+
+
+
+/**
+ * View History - This is a utility for saving various view parameters for
+ * recently opened files.
+ *
+ * The way that the view parameters are stored depends on how PDF.js is built,
+ * for 'node make <flag>' the following cases exist:
+ * - FIREFOX or MOZCENTRAL - uses sessionStorage.
+ * - B2G - uses asyncStorage.
+ * - GENERIC or CHROME - uses localStorage, if it is available.
+ */
+var ViewHistory = (function ViewHistoryClosure() {
+ function ViewHistory(fingerprint) {
+ this.fingerprint = fingerprint;
+ this.isInitializedPromiseResolved = false;
+ this.initializedPromise =
+ this._readFromStorage().then(function (databaseStr) {
+ this.isInitializedPromiseResolved = true;
+
+ var database = JSON.parse(databaseStr || '{}');
+ if (!('files' in database)) {
+ database.files = [];
+ }
+ if (database.files.length >= VIEW_HISTORY_MEMORY) {
+ database.files.shift();
+ }
+ var index;
+ for (var i = 0, length = database.files.length; i < length; i++) {
+ var branch = database.files[i];
+ if (branch.fingerprint === this.fingerprint) {
+ index = i;
+ break;
+ }
+ }
+ if (typeof index !== 'number') {
+ index = database.files.push({fingerprint: this.fingerprint}) - 1;
+ }
+ this.file = database.files[index];
+ this.database = database;
+ }.bind(this));
+ }
+
+ ViewHistory.prototype = {
+ _writeToStorage: function ViewHistory_writeToStorage() {
+ return new Promise(function (resolve) {
+ var databaseStr = JSON.stringify(this.database);
+
+
+
+ localStorage.setItem('database', databaseStr);
+ resolve();
+ }.bind(this));
+ },
+
+ _readFromStorage: function ViewHistory_readFromStorage() {
+ return new Promise(function (resolve) {
+
+
+ resolve(localStorage.getItem('database'));
+ });
+ },
+
+ set: function ViewHistory_set(name, val) {
+ if (!this.isInitializedPromiseResolved) {
+ return;
+ }
+ this.file[name] = val;
+ return this._writeToStorage();
+ },
+
+ setMultiple: function ViewHistory_setMultiple(properties) {
+ if (!this.isInitializedPromiseResolved) {
+ return;
+ }
+ for (var name in properties) {
+ this.file[name] = properties[name];
+ }
+ return this._writeToStorage();
+ },
+
+ get: function ViewHistory_get(name, defaultValue) {
+ if (!this.isInitializedPromiseResolved) {
+ return defaultValue;
+ }
+ return this.file[name] || defaultValue;
+ }
+ };
+
+ return ViewHistory;
+})();
+
+
+/**
+ * Creates a "search bar" given a set of DOM elements that act as controls
+ * for searching or for setting search preferences in the UI. This object
+ * also sets up the appropriate events for the controls. Actual searching
+ * is done by PDFFindController.
+ */
+var PDFFindBar = (function PDFFindBarClosure() {
+ function PDFFindBar(options) {
+ this.opened = false;
+ this.bar = options.bar || null;
+ this.toggleButton = options.toggleButton || null;
+ this.findField = options.findField || null;
+ this.highlightAll = options.highlightAllCheckbox || null;
+ this.caseSensitive = options.caseSensitiveCheckbox || null;
+ this.findMsg = options.findMsg || null;
+ this.findStatusIcon = options.findStatusIcon || null;
+ this.findPreviousButton = options.findPreviousButton || null;
+ this.findNextButton = options.findNextButton || null;
+ this.findController = options.findController || null;
+
+ if (this.findController === null) {
+ throw new Error('PDFFindBar cannot be used without a ' +
+ 'PDFFindController instance.');
+ }
+
+ // Add event listeners to the DOM elements.
+ var self = this;
+ this.toggleButton.addEventListener('click', function() {
+ self.toggle();
+ });
+
+ this.findField.addEventListener('input', function() {
+ self.dispatchEvent('');
+ });
+
+ this.bar.addEventListener('keydown', function(evt) {
+ switch (evt.keyCode) {
+ case 13: // Enter
+ if (evt.target === self.findField) {
+ self.dispatchEvent('again', evt.shiftKey);
+ }
+ break;
+ case 27: // Escape
+ self.close();
+ break;
+ }
+ });
+
+ this.findPreviousButton.addEventListener('click', function() {
+ self.dispatchEvent('again', true);
+ });
+
+ this.findNextButton.addEventListener('click', function() {
+ self.dispatchEvent('again', false);
+ });
+
+ this.highlightAll.addEventListener('click', function() {
+ self.dispatchEvent('highlightallchange');
+ });
+
+ this.caseSensitive.addEventListener('click', function() {
+ self.dispatchEvent('casesensitivitychange');
+ });
+ }
+
+ PDFFindBar.prototype = {
+ dispatchEvent: function PDFFindBar_dispatchEvent(type, findPrev) {
+ var event = document.createEvent('CustomEvent');
+ event.initCustomEvent('find' + type, true, true, {
+ query: this.findField.value,
+ caseSensitive: this.caseSensitive.checked,
+ highlightAll: this.highlightAll.checked,
+ findPrevious: findPrev
+ });
+ return window.dispatchEvent(event);
+ },
+
+ updateUIState: function PDFFindBar_updateUIState(state, previous) {
+ var notFound = false;
+ var findMsg = '';
+ var status = '';
+
+ switch (state) {
+ case FindStates.FIND_FOUND:
+ break;
+
+ case FindStates.FIND_PENDING:
+ status = 'pending';
+ break;
+
+ case FindStates.FIND_NOTFOUND:
+ findMsg = mozL10n.get('find_not_found', null, 'Phrase not found');
+ notFound = true;
+ break;
+
+ case FindStates.FIND_WRAPPED:
+ if (previous) {
+ findMsg = mozL10n.get('find_reached_top', null,
+ 'Reached top of document, continued from bottom');
+ } else {
+ findMsg = mozL10n.get('find_reached_bottom', null,
+ 'Reached end of document, continued from top');
+ }
+ break;
+ }
+
+ if (notFound) {
+ this.findField.classList.add('notFound');
+ } else {
+ this.findField.classList.remove('notFound');
+ }
+
+ this.findField.setAttribute('data-status', status);
+ this.findMsg.textContent = findMsg;
+ },
+
+ open: function PDFFindBar_open() {
+ if (!this.opened) {
+ this.opened = true;
+ this.toggleButton.classList.add('toggled');
+ this.bar.classList.remove('hidden');
+ }
+ this.findField.select();
+ this.findField.focus();
+ },
+
+ close: function PDFFindBar_close() {
+ if (!this.opened) {
+ return;
+ }
+ this.opened = false;
+ this.toggleButton.classList.remove('toggled');
+ this.bar.classList.add('hidden');
+ this.findController.active = false;
+ },
+
+ toggle: function PDFFindBar_toggle() {
+ if (this.opened) {
+ this.close();
+ } else {
+ this.open();
+ }
+ }
+ };
+ return PDFFindBar;
+})();
+
+
+var FindStates = {
+ FIND_FOUND: 0,
+ FIND_NOTFOUND: 1,
+ FIND_WRAPPED: 2,
+ FIND_PENDING: 3
+};
+
+var FIND_SCROLL_OFFSET_TOP = -50;
+var FIND_SCROLL_OFFSET_LEFT = -400;
+
+/**
+ * Provides "search" or "find" functionality for the PDF.
+ * This object actually performs the search for a given string.
+ */
+var PDFFindController = (function PDFFindControllerClosure() {
+ function PDFFindController(options) {
+ this.startedTextExtraction = false;
+ this.extractTextPromises = [];
+ this.pendingFindMatches = {};
+ this.active = false; // If active, find results will be highlighted.
+ this.pageContents = []; // Stores the text for each page.
+ this.pageMatches = [];
+ this.selected = { // Currently selected match.
+ pageIdx: -1,
+ matchIdx: -1
+ };
+ this.offset = { // Where the find algorithm currently is in the document.
+ pageIdx: null,
+ matchIdx: null
+ };
+ this.pagesToSearch = null;
+ this.resumePageIdx = null;
+ this.state = null;
+ this.dirtyMatch = false;
+ this.findTimeout = null;
+ this.pdfViewer = options.pdfViewer || null;
+ this.integratedFind = options.integratedFind || false;
+ this.charactersToNormalize = {
+ '\u2018': '\'', // Left single quotation mark
+ '\u2019': '\'', // Right single quotation mark
+ '\u201A': '\'', // Single low-9 quotation mark
+ '\u201B': '\'', // Single high-reversed-9 quotation mark
+ '\u201C': '"', // Left double quotation mark
+ '\u201D': '"', // Right double quotation mark
+ '\u201E': '"', // Double low-9 quotation mark
+ '\u201F': '"', // Double high-reversed-9 quotation mark
+ '\u00BC': '1/4', // Vulgar fraction one quarter
+ '\u00BD': '1/2', // Vulgar fraction one half
+ '\u00BE': '3/4', // Vulgar fraction three quarters
+ '\u00A0': ' ' // No-break space
+ };
+ this.findBar = options.findBar || null;
+
+ // Compile the regular expression for text normalization once
+ var replace = Object.keys(this.charactersToNormalize).join('');
+ this.normalizationRegex = new RegExp('[' + replace + ']', 'g');
+
+ var events = [
+ 'find',
+ 'findagain',
+ 'findhighlightallchange',
+ 'findcasesensitivitychange'
+ ];
+
+ this.firstPagePromise = new Promise(function (resolve) {
+ this.resolveFirstPage = resolve;
+ }.bind(this));
+ this.handleEvent = this.handleEvent.bind(this);
+
+ for (var i = 0, len = events.length; i < len; i++) {
+ window.addEventListener(events[i], this.handleEvent);
+ }
+ }
+
+ PDFFindController.prototype = {
+ setFindBar: function PDFFindController_setFindBar(findBar) {
+ this.findBar = findBar;
+ },
+
+ reset: function PDFFindController_reset() {
+ this.startedTextExtraction = false;
+ this.extractTextPromises = [];
+ this.active = false;
+ },
+
+ normalize: function PDFFindController_normalize(text) {
+ var self = this;
+ return text.replace(this.normalizationRegex, function (ch) {
+ return self.charactersToNormalize[ch];
+ });
+ },
+
+ calcFindMatch: function PDFFindController_calcFindMatch(pageIndex) {
+ var pageContent = this.normalize(this.pageContents[pageIndex]);
+ var query = this.normalize(this.state.query);
+ var caseSensitive = this.state.caseSensitive;
+ var queryLen = query.length;
+
+ if (queryLen === 0) {
+ return; // Do nothing: the matches should be wiped out already.
+ }
+
+ if (!caseSensitive) {
+ pageContent = pageContent.toLowerCase();
+ query = query.toLowerCase();
+ }
+
+ var matches = [];
+ var matchIdx = -queryLen;
+ while (true) {
+ matchIdx = pageContent.indexOf(query, matchIdx + queryLen);
+ if (matchIdx === -1) {
+ break;
+ }
+ matches.push(matchIdx);
+ }
+ this.pageMatches[pageIndex] = matches;
+ this.updatePage(pageIndex);
+ if (this.resumePageIdx === pageIndex) {
+ this.resumePageIdx = null;
+ this.nextPageMatch();
+ }
+ },
+
+ extractText: function PDFFindController_extractText() {
+ if (this.startedTextExtraction) {
+ return;
+ }
+ this.startedTextExtraction = true;
+
+ this.pageContents = [];
+ var extractTextPromisesResolves = [];
+ var numPages = this.pdfViewer.pagesCount;
+ for (var i = 0; i < numPages; i++) {
+ this.extractTextPromises.push(new Promise(function (resolve) {
+ extractTextPromisesResolves.push(resolve);
+ }));
+ }
+
+ var self = this;
+ function extractPageText(pageIndex) {
+ self.pdfViewer.getPageTextContent(pageIndex).then(
+ function textContentResolved(textContent) {
+ var textItems = textContent.items;
+ var str = [];
+
+ for (var i = 0, len = textItems.length; i < len; i++) {
+ str.push(textItems[i].str);
+ }
+
+ // Store the pageContent as a string.
+ self.pageContents.push(str.join(''));
+
+ extractTextPromisesResolves[pageIndex](pageIndex);
+ if ((pageIndex + 1) < self.pdfViewer.pagesCount) {
+ extractPageText(pageIndex + 1);
+ }
+ }
+ );
+ }
+ extractPageText(0);
+ },
+
+ handleEvent: function PDFFindController_handleEvent(e) {
+ if (this.state === null || e.type !== 'findagain') {
+ this.dirtyMatch = true;
+ }
+ this.state = e.detail;
+ this.updateUIState(FindStates.FIND_PENDING);
+
+ this.firstPagePromise.then(function() {
+ this.extractText();
+
+ clearTimeout(this.findTimeout);
+ if (e.type === 'find') {
+ // Only trigger the find action after 250ms of silence.
+ this.findTimeout = setTimeout(this.nextMatch.bind(this), 250);
+ } else {
+ this.nextMatch();
+ }
+ }.bind(this));
+ },
+
+ updatePage: function PDFFindController_updatePage(index) {
+ if (this.selected.pageIdx === index) {
+ // If the page is selected, scroll the page into view, which triggers
+ // rendering the page, which adds the textLayer. Once the textLayer is
+ // build, it will scroll onto the selected match.
+ this.pdfViewer.scrollPageIntoView(index + 1);
+ }
+
+ var page = this.pdfViewer.getPageView(index);
+ if (page.textLayer) {
+ page.textLayer.updateMatches();
+ }
+ },
+
+ nextMatch: function PDFFindController_nextMatch() {
+ var previous = this.state.findPrevious;
+ var currentPageIndex = this.pdfViewer.currentPageNumber - 1;
+ var numPages = this.pdfViewer.pagesCount;
+
+ this.active = true;
+
+ if (this.dirtyMatch) {
+ // Need to recalculate the matches, reset everything.
+ this.dirtyMatch = false;
+ this.selected.pageIdx = this.selected.matchIdx = -1;
+ this.offset.pageIdx = currentPageIndex;
+ this.offset.matchIdx = null;
+ this.hadMatch = false;
+ this.resumePageIdx = null;
+ this.pageMatches = [];
+ var self = this;
+
+ for (var i = 0; i < numPages; i++) {
+ // Wipe out any previous highlighted matches.
+ this.updatePage(i);
+
+ // As soon as the text is extracted start finding the matches.
+ if (!(i in this.pendingFindMatches)) {
+ this.pendingFindMatches[i] = true;
+ this.extractTextPromises[i].then(function(pageIdx) {
+ delete self.pendingFindMatches[pageIdx];
+ self.calcFindMatch(pageIdx);
+ });
+ }
+ }
+ }
+
+ // If there's no query there's no point in searching.
+ if (this.state.query === '') {
+ this.updateUIState(FindStates.FIND_FOUND);
+ return;
+ }
+
+ // If we're waiting on a page, we return since we can't do anything else.
+ if (this.resumePageIdx) {
+ return;
+ }
+
+ var offset = this.offset;
+ // Keep track of how many pages we should maximally iterate through.
+ this.pagesToSearch = numPages;
+ // If there's already a matchIdx that means we are iterating through a
+ // page's matches.
+ if (offset.matchIdx !== null) {
+ var numPageMatches = this.pageMatches[offset.pageIdx].length;
+ if ((!previous && offset.matchIdx + 1 < numPageMatches) ||
+ (previous && offset.matchIdx > 0)) {
+ // The simple case; we just have advance the matchIdx to select
+ // the next match on the page.
+ this.hadMatch = true;
+ offset.matchIdx = (previous ? offset.matchIdx - 1 :
+ offset.matchIdx + 1);
+ this.updateMatch(true);
+ return;
+ }
+ // We went beyond the current page's matches, so we advance to
+ // the next page.
+ this.advanceOffsetPage(previous);
+ }
+ // Start searching through the page.
+ this.nextPageMatch();
+ },
+
+ matchesReady: function PDFFindController_matchesReady(matches) {
+ var offset = this.offset;
+ var numMatches = matches.length;
+ var previous = this.state.findPrevious;
+
+ if (numMatches) {
+ // There were matches for the page, so initialize the matchIdx.
+ this.hadMatch = true;
+ offset.matchIdx = (previous ? numMatches - 1 : 0);
+ this.updateMatch(true);
+ return true;
+ } else {
+ // No matches, so attempt to search the next page.
+ this.advanceOffsetPage(previous);
+ if (offset.wrapped) {
+ offset.matchIdx = null;
+ if (this.pagesToSearch < 0) {
+ // No point in wrapping again, there were no matches.
+ this.updateMatch(false);
+ // while matches were not found, searching for a page
+ // with matches should nevertheless halt.
+ return true;
+ }
+ }
+ // Matches were not found (and searching is not done).
+ return false;
+ }
+ },
+
+ /**
+ * The method is called back from the text layer when match presentation
+ * is updated.
+ * @param {number} pageIndex - page index.
+ * @param {number} index - match index.
+ * @param {Array} elements - text layer div elements array.
+ * @param {number} beginIdx - start index of the div array for the match.
+ * @param {number} endIdx - end index of the div array for the match.
+ */
+ updateMatchPosition: function PDFFindController_updateMatchPosition(
+ pageIndex, index, elements, beginIdx, endIdx) {
+ if (this.selected.matchIdx === index &&
+ this.selected.pageIdx === pageIndex) {
+ scrollIntoView(elements[beginIdx], {
+ top: FIND_SCROLL_OFFSET_TOP,
+ left: FIND_SCROLL_OFFSET_LEFT
+ });
+ }
+ },
+
+ nextPageMatch: function PDFFindController_nextPageMatch() {
+ if (this.resumePageIdx !== null) {
+ console.error('There can only be one pending page.');
+ }
+ do {
+ var pageIdx = this.offset.pageIdx;
+ var matches = this.pageMatches[pageIdx];
+ if (!matches) {
+ // The matches don't exist yet for processing by "matchesReady",
+ // so set a resume point for when they do exist.
+ this.resumePageIdx = pageIdx;
+ break;
+ }
+ } while (!this.matchesReady(matches));
+ },
+
+ advanceOffsetPage: function PDFFindController_advanceOffsetPage(previous) {
+ var offset = this.offset;
+ var numPages = this.extractTextPromises.length;
+ offset.pageIdx = (previous ? offset.pageIdx - 1 : offset.pageIdx + 1);
+ offset.matchIdx = null;
+
+ this.pagesToSearch--;
+
+ if (offset.pageIdx >= numPages || offset.pageIdx < 0) {
+ offset.pageIdx = (previous ? numPages - 1 : 0);
+ offset.wrapped = true;
+ }
+ },
+
+ updateMatch: function PDFFindController_updateMatch(found) {
+ var state = FindStates.FIND_NOTFOUND;
+ var wrapped = this.offset.wrapped;
+ this.offset.wrapped = false;
+
+ if (found) {
+ var previousPage = this.selected.pageIdx;
+ this.selected.pageIdx = this.offset.pageIdx;
+ this.selected.matchIdx = this.offset.matchIdx;
+ state = (wrapped ? FindStates.FIND_WRAPPED : FindStates.FIND_FOUND);
+ // Update the currently selected page to wipe out any selected matches.
+ if (previousPage !== -1 && previousPage !== this.selected.pageIdx) {
+ this.updatePage(previousPage);
+ }
+ }
+
+ this.updateUIState(state, this.state.findPrevious);
+ if (this.selected.pageIdx !== -1) {
+ this.updatePage(this.selected.pageIdx);
+ }
+ },
+
+ updateUIState: function PDFFindController_updateUIState(state, previous) {
+ if (this.integratedFind) {
+ FirefoxCom.request('updateFindControlState',
+ { result: state, findPrevious: previous });
+ return;
+ }
+ if (this.findBar === null) {
+ throw new Error('PDFFindController is not initialized with a ' +
+ 'PDFFindBar instance.');
+ }
+ this.findBar.updateUIState(state, previous);
+ }
+ };
+ return PDFFindController;
+})();
+
+
+var PDFHistory = {
+ initialized: false,
+ initialDestination: null,
+
+ /**
+ * @param {string} fingerprint
+ * @param {IPDFLinkService} linkService
+ */
+ initialize: function pdfHistoryInitialize(fingerprint, linkService) {
+ this.initialized = true;
+ this.reInitialized = false;
+ this.allowHashChange = true;
+ this.historyUnlocked = true;
+
+ this.previousHash = window.location.hash.substring(1);
+ this.currentBookmark = '';
+ this.currentPage = 0;
+ this.updatePreviousBookmark = false;
+ this.previousBookmark = '';
+ this.previousPage = 0;
+ this.nextHashParam = '';
+
+ this.fingerprint = fingerprint;
+ this.linkService = linkService;
+ this.currentUid = this.uid = 0;
+ this.current = {};
+
+ var state = window.history.state;
+ if (this._isStateObjectDefined(state)) {
+ // This corresponds to navigating back to the document
+ // from another page in the browser history.
+ if (state.target.dest) {
+ this.initialDestination = state.target.dest;
+ } else {
+ linkService.setHash(state.target.hash);
+ }
+ this.currentUid = state.uid;
+ this.uid = state.uid + 1;
+ this.current = state.target;
+ } else {
+ // This corresponds to the loading of a new document.
+ if (state && state.fingerprint &&
+ this.fingerprint !== state.fingerprint) {
+ // Reinitialize the browsing history when a new document
+ // is opened in the web viewer.
+ this.reInitialized = true;
+ }
+ this._pushOrReplaceState({ fingerprint: this.fingerprint }, true);
+ }
+
+ var self = this;
+ window.addEventListener('popstate', function pdfHistoryPopstate(evt) {
+ evt.preventDefault();
+ evt.stopPropagation();
+
+ if (!self.historyUnlocked) {
+ return;
+ }
+ if (evt.state) {
+ // Move back/forward in the history.
+ self._goTo(evt.state);
+ } else {
+ // Handle the user modifying the hash of a loaded document.
+ self.previousHash = window.location.hash.substring(1);
+
+ // If the history is empty when the hash changes,
+ // update the previous entry in the browser history.
+ if (self.uid === 0) {
+ var previousParams = (self.previousHash && self.currentBookmark &&
+ self.previousHash !== self.currentBookmark) ?
+ { hash: self.currentBookmark, page: self.currentPage } :
+ { page: 1 };
+ self.historyUnlocked = false;
+ self.allowHashChange = false;
+ window.history.back();
+ self._pushToHistory(previousParams, false, true);
+ window.history.forward();
+ self.historyUnlocked = true;
+ }
+ self._pushToHistory({ hash: self.previousHash }, false, true);
+ self._updatePreviousBookmark();
+ }
+ }, false);
+
+ function pdfHistoryBeforeUnload() {
+ var previousParams = self._getPreviousParams(null, true);
+ if (previousParams) {
+ var replacePrevious = (!self.current.dest &&
+ self.current.hash !== self.previousHash);
+ self._pushToHistory(previousParams, false, replacePrevious);
+ self._updatePreviousBookmark();
+ }
+ // Remove the event listener when navigating away from the document,
+ // since 'beforeunload' prevents Firefox from caching the document.
+ window.removeEventListener('beforeunload', pdfHistoryBeforeUnload, false);
+ }
+ window.addEventListener('beforeunload', pdfHistoryBeforeUnload, false);
+
+ window.addEventListener('pageshow', function pdfHistoryPageShow(evt) {
+ // If the entire viewer (including the PDF file) is cached in the browser,
+ // we need to reattach the 'beforeunload' event listener since
+ // the 'DOMContentLoaded' event is not fired on 'pageshow'.
+ window.addEventListener('beforeunload', pdfHistoryBeforeUnload, false);
+ }, false);
+ },
+
+ _isStateObjectDefined: function pdfHistory_isStateObjectDefined(state) {
+ return (state && state.uid >= 0 &&
+ state.fingerprint && this.fingerprint === state.fingerprint &&
+ state.target && state.target.hash) ? true : false;
+ },
+
+ _pushOrReplaceState: function pdfHistory_pushOrReplaceState(stateObj,
+ replace) {
+ if (replace) {
+ window.history.replaceState(stateObj, '', document.URL);
+ } else {
+ window.history.pushState(stateObj, '', document.URL);
+ }
+ },
+
+ get isHashChangeUnlocked() {
+ if (!this.initialized) {
+ return true;
+ }
+ // If the current hash changes when moving back/forward in the history,
+ // this will trigger a 'popstate' event *as well* as a 'hashchange' event.
+ // Since the hash generally won't correspond to the exact the position
+ // stored in the history's state object, triggering the 'hashchange' event
+ // can thus corrupt the browser history.
+ //
+ // When the hash changes during a 'popstate' event, we *only* prevent the
+ // first 'hashchange' event and immediately reset allowHashChange.
+ // If it is not reset, the user would not be able to change the hash.
+
+ var temp = this.allowHashChange;
+ this.allowHashChange = true;
+ return temp;
+ },
+
+ _updatePreviousBookmark: function pdfHistory_updatePreviousBookmark() {
+ if (this.updatePreviousBookmark &&
+ this.currentBookmark && this.currentPage) {
+ this.previousBookmark = this.currentBookmark;
+ this.previousPage = this.currentPage;
+ this.updatePreviousBookmark = false;
+ }
+ },
+
+ updateCurrentBookmark: function pdfHistoryUpdateCurrentBookmark(bookmark,
+ pageNum) {
+ if (this.initialized) {
+ this.currentBookmark = bookmark.substring(1);
+ this.currentPage = pageNum | 0;
+ this._updatePreviousBookmark();
+ }
+ },
+
+ updateNextHashParam: function pdfHistoryUpdateNextHashParam(param) {
+ if (this.initialized) {
+ this.nextHashParam = param;
+ }
+ },
+
+ push: function pdfHistoryPush(params, isInitialBookmark) {
+ if (!(this.initialized && this.historyUnlocked)) {
+ return;
+ }
+ if (params.dest && !params.hash) {
+ params.hash = (this.current.hash && this.current.dest &&
+ this.current.dest === params.dest) ?
+ this.current.hash :
+ this.linkService.getDestinationHash(params.dest).split('#')[1];
+ }
+ if (params.page) {
+ params.page |= 0;
+ }
+ if (isInitialBookmark) {
+ var target = window.history.state.target;
+ if (!target) {
+ // Invoked when the user specifies an initial bookmark,
+ // thus setting initialBookmark, when the document is loaded.
+ this._pushToHistory(params, false);
+ this.previousHash = window.location.hash.substring(1);
+ }
+ this.updatePreviousBookmark = this.nextHashParam ? false : true;
+ if (target) {
+ // If the current document is reloaded,
+ // avoid creating duplicate entries in the history.
+ this._updatePreviousBookmark();
+ }
+ return;
+ }
+ if (this.nextHashParam) {
+ if (this.nextHashParam === params.hash) {
+ this.nextHashParam = null;
+ this.updatePreviousBookmark = true;
+ return;
+ } else {
+ this.nextHashParam = null;
+ }
+ }
+
+ if (params.hash) {
+ if (this.current.hash) {
+ if (this.current.hash !== params.hash) {
+ this._pushToHistory(params, true);
+ } else {
+ if (!this.current.page && params.page) {
+ this._pushToHistory(params, false, true);
+ }
+ this.updatePreviousBookmark = true;
+ }
+ } else {
+ this._pushToHistory(params, true);
+ }
+ } else if (this.current.page && params.page &&
+ this.current.page !== params.page) {
+ this._pushToHistory(params, true);
+ }
+ },
+
+ _getPreviousParams: function pdfHistory_getPreviousParams(onlyCheckPage,
+ beforeUnload) {
+ if (!(this.currentBookmark && this.currentPage)) {
+ return null;
+ } else if (this.updatePreviousBookmark) {
+ this.updatePreviousBookmark = false;
+ }
+ if (this.uid > 0 && !(this.previousBookmark && this.previousPage)) {
+ // Prevent the history from getting stuck in the current state,
+ // effectively preventing the user from going back/forward in the history.
+ //
+ // This happens if the current position in the document didn't change when
+ // the history was previously updated. The reasons for this are either:
+ // 1. The current zoom value is such that the document does not need to,
+ // or cannot, be scrolled to display the destination.
+ // 2. The previous destination is broken, and doesn't actally point to a
+ // position within the document.
+ // (This is either due to a bad PDF generator, or the user making a
+ // mistake when entering a destination in the hash parameters.)
+ return null;
+ }
+ if ((!this.current.dest && !onlyCheckPage) || beforeUnload) {
+ if (this.previousBookmark === this.currentBookmark) {
+ return null;
+ }
+ } else if (this.current.page || onlyCheckPage) {
+ if (this.previousPage === this.currentPage) {
+ return null;
+ }
+ } else {
+ return null;
+ }
+ var params = { hash: this.currentBookmark, page: this.currentPage };
+ if (PresentationMode.active) {
+ params.hash = null;
+ }
+ return params;
+ },
+
+ _stateObj: function pdfHistory_stateObj(params) {
+ return { fingerprint: this.fingerprint, uid: this.uid, target: params };
+ },
+
+ _pushToHistory: function pdfHistory_pushToHistory(params,
+ addPrevious, overwrite) {
+ if (!this.initialized) {
+ return;
+ }
+ if (!params.hash && params.page) {
+ params.hash = ('page=' + params.page);
+ }
+ if (addPrevious && !overwrite) {
+ var previousParams = this._getPreviousParams();
+ if (previousParams) {
+ var replacePrevious = (!this.current.dest &&
+ this.current.hash !== this.previousHash);
+ this._pushToHistory(previousParams, false, replacePrevious);
+ }
+ }
+ this._pushOrReplaceState(this._stateObj(params),
+ (overwrite || this.uid === 0));
+ this.currentUid = this.uid++;
+ this.current = params;
+ this.updatePreviousBookmark = true;
+ },
+
+ _goTo: function pdfHistory_goTo(state) {
+ if (!(this.initialized && this.historyUnlocked &&
+ this._isStateObjectDefined(state))) {
+ return;
+ }
+ if (!this.reInitialized && state.uid < this.currentUid) {
+ var previousParams = this._getPreviousParams(true);
+ if (previousParams) {
+ this._pushToHistory(this.current, false);
+ this._pushToHistory(previousParams, false);
+ this.currentUid = state.uid;
+ window.history.back();
+ return;
+ }
+ }
+ this.historyUnlocked = false;
+
+ if (state.target.dest) {
+ this.linkService.navigateTo(state.target.dest);
+ } else {
+ this.linkService.setHash(state.target.hash);
+ }
+ this.currentUid = state.uid;
+ if (state.uid > this.uid) {
+ this.uid = state.uid;
+ }
+ this.current = state.target;
+ this.updatePreviousBookmark = true;
+
+ var currentHash = window.location.hash.substring(1);
+ if (this.previousHash !== currentHash) {
+ this.allowHashChange = false;
+ }
+ this.previousHash = currentHash;
+
+ this.historyUnlocked = true;
+ },
+
+ back: function pdfHistoryBack() {
+ this.go(-1);
+ },
+
+ forward: function pdfHistoryForward() {
+ this.go(1);
+ },
+
+ go: function pdfHistoryGo(direction) {
+ if (this.initialized && this.historyUnlocked) {
+ var state = window.history.state;
+ if (direction === -1 && state && state.uid > 0) {
+ window.history.back();
+ } else if (direction === 1 && state && state.uid < (this.uid - 1)) {
+ window.history.forward();
+ }
+ }
+ }
+};
+
+
+var SecondaryToolbar = {
+ opened: false,
+ previousContainerHeight: null,
+ newContainerHeight: null,
+
+ initialize: function secondaryToolbarInitialize(options) {
+ this.toolbar = options.toolbar;
+ this.presentationMode = options.presentationMode;
+ this.documentProperties = options.documentProperties;
+ this.buttonContainer = this.toolbar.firstElementChild;
+
+ // Define the toolbar buttons.
+ this.toggleButton = options.toggleButton;
+ this.presentationModeButton = options.presentationModeButton;
+ this.openFile = options.openFile;
+ this.print = options.print;
+ this.download = options.download;
+ this.viewBookmark = options.viewBookmark;
+ this.firstPage = options.firstPage;
+ this.lastPage = options.lastPage;
+ this.pageRotateCw = options.pageRotateCw;
+ this.pageRotateCcw = options.pageRotateCcw;
+ this.documentPropertiesButton = options.documentPropertiesButton;
+
+ // Attach the event listeners.
+ var elements = [
+ // Button to toggle the visibility of the secondary toolbar:
+ { element: this.toggleButton, handler: this.toggle },
+ // All items within the secondary toolbar
+ // (except for toggleHandTool, hand_tool.js is responsible for it):
+ { element: this.presentationModeButton,
+ handler: this.presentationModeClick },
+ { element: this.openFile, handler: this.openFileClick },
+ { element: this.print, handler: this.printClick },
+ { element: this.download, handler: this.downloadClick },
+ { element: this.viewBookmark, handler: this.viewBookmarkClick },
+ { element: this.firstPage, handler: this.firstPageClick },
+ { element: this.lastPage, handler: this.lastPageClick },
+ { element: this.pageRotateCw, handler: this.pageRotateCwClick },
+ { element: this.pageRotateCcw, handler: this.pageRotateCcwClick },
+ { element: this.documentPropertiesButton,
+ handler: this.documentPropertiesClick }
+ ];
+
+ for (var item in elements) {
+ var element = elements[item].element;
+ if (element) {
+ element.addEventListener('click', elements[item].handler.bind(this));
+ }
+ }
+ },
+
+ // Event handling functions.
+ presentationModeClick: function secondaryToolbarPresentationModeClick(evt) {
+ this.presentationMode.request();
+ this.close();
+ },
+
+ openFileClick: function secondaryToolbarOpenFileClick(evt) {
+ document.getElementById('fileInput').click();
+ this.close();
+ },
+
+ printClick: function secondaryToolbarPrintClick(evt) {
+ window.print();
+ this.close();
+ },
+
+ downloadClick: function secondaryToolbarDownloadClick(evt) {
+ PDFViewerApplication.download();
+ this.close();
+ },
+
+ viewBookmarkClick: function secondaryToolbarViewBookmarkClick(evt) {
+ this.close();
+ },
+
+ firstPageClick: function secondaryToolbarFirstPageClick(evt) {
+ PDFViewerApplication.page = 1;
+ this.close();
+ },
+
+ lastPageClick: function secondaryToolbarLastPageClick(evt) {
+ if (PDFViewerApplication.pdfDocument) {
+ PDFViewerApplication.page = PDFViewerApplication.pagesCount;
+ }
+ this.close();
+ },
+
+ pageRotateCwClick: function secondaryToolbarPageRotateCwClick(evt) {
+ PDFViewerApplication.rotatePages(90);
+ },
+
+ pageRotateCcwClick: function secondaryToolbarPageRotateCcwClick(evt) {
+ PDFViewerApplication.rotatePages(-90);
+ },
+
+ documentPropertiesClick: function secondaryToolbarDocumentPropsClick(evt) {
+ this.documentProperties.open();
+ this.close();
+ },
+
+ // Misc. functions for interacting with the toolbar.
+ setMaxHeight: function secondaryToolbarSetMaxHeight(container) {
+ if (!container || !this.buttonContainer) {
+ return;
+ }
+ this.newContainerHeight = container.clientHeight;
+ if (this.previousContainerHeight === this.newContainerHeight) {
+ return;
+ }
+ this.buttonContainer.setAttribute('style',
+ 'max-height: ' + (this.newContainerHeight - SCROLLBAR_PADDING) + 'px;');
+ this.previousContainerHeight = this.newContainerHeight;
+ },
+
+ open: function secondaryToolbarOpen() {
+ if (this.opened) {
+ return;
+ }
+ this.opened = true;
+ this.toggleButton.classList.add('toggled');
+ this.toolbar.classList.remove('hidden');
+ },
+
+ close: function secondaryToolbarClose(target) {
+ if (!this.opened) {
+ return;
+ } else if (target && !this.toolbar.contains(target)) {
+ return;
+ }
+ this.opened = false;
+ this.toolbar.classList.add('hidden');
+ this.toggleButton.classList.remove('toggled');
+ },
+
+ toggle: function secondaryToolbarToggle() {
+ if (this.opened) {
+ this.close();
+ } else {
+ this.open();
+ }
+ }
+};
+
+
+var DELAY_BEFORE_HIDING_CONTROLS = 3000; // in ms
+var SELECTOR = 'presentationControls';
+var DELAY_BEFORE_RESETTING_SWITCH_IN_PROGRESS = 1000; // in ms
+
+var PresentationMode = {
+ active: false,
+ args: null,
+ contextMenuOpen: false,
+ prevCoords: { x: null, y: null },
+
+ initialize: function presentationModeInitialize(options) {
+ this.container = options.container;
+ this.secondaryToolbar = options.secondaryToolbar;
+
+ this.viewer = this.container.firstElementChild;
+
+ this.firstPage = options.firstPage;
+ this.lastPage = options.lastPage;
+ this.pageRotateCw = options.pageRotateCw;
+ this.pageRotateCcw = options.pageRotateCcw;
+
+ this.firstPage.addEventListener('click', function() {
+ this.contextMenuOpen = false;
+ this.secondaryToolbar.firstPageClick();
+ }.bind(this));
+ this.lastPage.addEventListener('click', function() {
+ this.contextMenuOpen = false;
+ this.secondaryToolbar.lastPageClick();
+ }.bind(this));
+
+ this.pageRotateCw.addEventListener('click', function() {
+ this.contextMenuOpen = false;
+ this.secondaryToolbar.pageRotateCwClick();
+ }.bind(this));
+ this.pageRotateCcw.addEventListener('click', function() {
+ this.contextMenuOpen = false;
+ this.secondaryToolbar.pageRotateCcwClick();
+ }.bind(this));
+ },
+
+ get isFullscreen() {
+ return (document.fullscreenElement ||
+ document.mozFullScreen ||
+ document.webkitIsFullScreen ||
+ document.msFullscreenElement);
+ },
+
+ /**
+ * Initialize a timeout that is used to specify switchInProgress when the
+ * browser transitions to fullscreen mode. Since resize events are triggered
+ * multiple times during the switch to fullscreen mode, this is necessary in
+ * order to prevent the page from being scrolled partially, or completely,
+ * out of view when Presentation Mode is enabled.
+ * Note: This is only an issue at certain zoom levels, e.g. 'page-width'.
+ */
+ _setSwitchInProgress: function presentationMode_setSwitchInProgress() {
+ if (this.switchInProgress) {
+ clearTimeout(this.switchInProgress);
+ }
+ this.switchInProgress = setTimeout(function switchInProgressTimeout() {
+ delete this.switchInProgress;
+ this._notifyStateChange();
+ }.bind(this), DELAY_BEFORE_RESETTING_SWITCH_IN_PROGRESS);
+ },
+
+ _resetSwitchInProgress: function presentationMode_resetSwitchInProgress() {
+ if (this.switchInProgress) {
+ clearTimeout(this.switchInProgress);
+ delete this.switchInProgress;
+ }
+ },
+
+ request: function presentationModeRequest() {
+ if (!PDFViewerApplication.supportsFullscreen || this.isFullscreen ||
+ !this.viewer.hasChildNodes()) {
+ return false;
+ }
+ this._setSwitchInProgress();
+ this._notifyStateChange();
+
+ if (this.container.requestFullscreen) {
+ this.container.requestFullscreen();
+ } else if (this.container.mozRequestFullScreen) {
+ this.container.mozRequestFullScreen();
+ } else if (this.container.webkitRequestFullscreen) {
+ this.container.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
+ } else if (this.container.msRequestFullscreen) {
+ this.container.msRequestFullscreen();
+ } else {
+ return false;
+ }
+
+ this.args = {
+ page: PDFViewerApplication.page,
+ previousScale: PDFViewerApplication.currentScaleValue
+ };
+
+ return true;
+ },
+
+ _notifyStateChange: function presentationModeNotifyStateChange() {
+ var event = document.createEvent('CustomEvent');
+ event.initCustomEvent('presentationmodechanged', true, true, {
+ active: PresentationMode.active,
+ switchInProgress: !!PresentationMode.switchInProgress
+ });
+ window.dispatchEvent(event);
+ },
+
+ enter: function presentationModeEnter() {
+ this.active = true;
+ this._resetSwitchInProgress();
+ this._notifyStateChange();
+
+ // Ensure that the correct page is scrolled into view when entering
+ // Presentation Mode, by waiting until fullscreen mode in enabled.
+ // Note: This is only necessary in non-Mozilla browsers.
+ setTimeout(function enterPresentationModeTimeout() {
+ PDFViewerApplication.page = this.args.page;
+ PDFViewerApplication.setScale('page-fit', true);
+ }.bind(this), 0);
+
+ window.addEventListener('mousemove', this.mouseMove, false);
+ window.addEventListener('mousedown', this.mouseDown, false);
+ window.addEventListener('contextmenu', this.contextMenu, false);
+
+ this.showControls();
+ HandTool.enterPresentationMode();
+ this.contextMenuOpen = false;
+ this.container.setAttribute('contextmenu', 'viewerContextMenu');
+
+ // Text selection is disabled in Presentation Mode, thus it's not possible
+ // for the user to deselect text that is selected (e.g. with "Select all")
+ // when entering Presentation Mode, hence we remove any active selection.
+ window.getSelection().removeAllRanges();
+ },
+
+ exit: function presentationModeExit() {
+ var page = PDFViewerApplication.page;
+
+ // Ensure that the correct page is scrolled into view when exiting
+ // Presentation Mode, by waiting until fullscreen mode is disabled.
+ // Note: This is only necessary in non-Mozilla browsers.
+ setTimeout(function exitPresentationModeTimeout() {
+ this.active = false;
+ this._notifyStateChange();
+
+ PDFViewerApplication.setScale(this.args.previousScale, true);
+ PDFViewerApplication.page = page;
+ this.args = null;
+ }.bind(this), 0);
+
+ window.removeEventListener('mousemove', this.mouseMove, false);
+ window.removeEventListener('mousedown', this.mouseDown, false);
+ window.removeEventListener('contextmenu', this.contextMenu, false);
+
+ this.hideControls();
+ PDFViewerApplication.clearMouseScrollState();
+ HandTool.exitPresentationMode();
+ this.container.removeAttribute('contextmenu');
+ this.contextMenuOpen = false;
+
+ // Ensure that the thumbnail of the current page is visible
+ // when exiting presentation mode.
+ scrollIntoView(document.getElementById('thumbnailContainer' + page));
+ },
+
+ showControls: function presentationModeShowControls() {
+ if (this.controlsTimeout) {
+ clearTimeout(this.controlsTimeout);
+ } else {
+ this.container.classList.add(SELECTOR);
+ }
+ this.controlsTimeout = setTimeout(function hideControlsTimeout() {
+ this.container.classList.remove(SELECTOR);
+ delete this.controlsTimeout;
+ }.bind(this), DELAY_BEFORE_HIDING_CONTROLS);
+ },
+
+ hideControls: function presentationModeHideControls() {
+ if (!this.controlsTimeout) {
+ return;
+ }
+ this.container.classList.remove(SELECTOR);
+ clearTimeout(this.controlsTimeout);
+ delete this.controlsTimeout;
+ },
+
+ mouseMove: function presentationModeMouseMove(evt) {
+ // Workaround for a bug in WebKit browsers that causes the 'mousemove' event
+ // to be fired when the cursor is changed. For details, see:
+ // http://code.google.com/p/chromium/issues/detail?id=103041.
+
+ var currCoords = { x: evt.clientX, y: evt.clientY };
+ var prevCoords = PresentationMode.prevCoords;
+ PresentationMode.prevCoords = currCoords;
+
+ if (currCoords.x === prevCoords.x && currCoords.y === prevCoords.y) {
+ return;
+ }
+ PresentationMode.showControls();
+ },
+
+ mouseDown: function presentationModeMouseDown(evt) {
+ var self = PresentationMode;
+ if (self.contextMenuOpen) {
+ self.contextMenuOpen = false;
+ evt.preventDefault();
+ return;
+ }
+
+ if (evt.button === 0) {
+ // Enable clicking of links in presentation mode. Please note:
+ // Only links pointing to destinations in the current PDF document work.
+ var isInternalLink = (evt.target.href &&
+ evt.target.classList.contains('internalLink'));
+ if (!isInternalLink) {
+ // Unless an internal link was clicked, advance one page.
+ evt.preventDefault();
+ PDFViewerApplication.page += (evt.shiftKey ? -1 : 1);
+ }
+ }
+ },
+
+ contextMenu: function presentationModeContextMenu(evt) {
+ PresentationMode.contextMenuOpen = true;
+ }
+};
+
+(function presentationModeClosure() {
+ function presentationModeChange(e) {
+ if (PresentationMode.isFullscreen) {
+ PresentationMode.enter();
+ } else {
+ PresentationMode.exit();
+ }
+ }
+
+ window.addEventListener('fullscreenchange', presentationModeChange, false);
+ window.addEventListener('mozfullscreenchange', presentationModeChange, false);
+ window.addEventListener('webkitfullscreenchange', presentationModeChange,
+ false);
+ window.addEventListener('MSFullscreenChange', presentationModeChange, false);
+})();
+
+
+/* Copyright 2013 Rob Wu <gwnRob@gmail.com>
+ * https://github.com/Rob--W/grab-to-pan.js
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+'use strict';
+
+var GrabToPan = (function GrabToPanClosure() {
+ /**
+ * Construct a GrabToPan instance for a given HTML element.
+ * @param options.element {Element}
+ * @param options.ignoreTarget {function} optional. See `ignoreTarget(node)`
+ * @param options.onActiveChanged {function(boolean)} optional. Called
+ * when grab-to-pan is (de)activated. The first argument is a boolean that
+ * shows whether grab-to-pan is activated.
+ */
+ function GrabToPan(options) {
+ this.element = options.element;
+ this.document = options.element.ownerDocument;
+ if (typeof options.ignoreTarget === 'function') {
+ this.ignoreTarget = options.ignoreTarget;
+ }
+ this.onActiveChanged = options.onActiveChanged;
+
+ // Bind the contexts to ensure that `this` always points to
+ // the GrabToPan instance.
+ this.activate = this.activate.bind(this);
+ this.deactivate = this.deactivate.bind(this);
+ this.toggle = this.toggle.bind(this);
+ this._onmousedown = this._onmousedown.bind(this);
+ this._onmousemove = this._onmousemove.bind(this);
+ this._endPan = this._endPan.bind(this);
+
+ // This overlay will be inserted in the document when the mouse moves during
+ // a grab operation, to ensure that the cursor has the desired appearance.
+ var overlay = this.overlay = document.createElement('div');
+ overlay.className = 'grab-to-pan-grabbing';
+ }
+ GrabToPan.prototype = {
+ /**
+ * Class name of element which can be grabbed
+ */
+ CSS_CLASS_GRAB: 'grab-to-pan-grab',
+
+ /**
+ * Bind a mousedown event to the element to enable grab-detection.
+ */
+ activate: function GrabToPan_activate() {
+ if (!this.active) {
+ this.active = true;
+ this.element.addEventListener('mousedown', this._onmousedown, true);
+ this.element.classList.add(this.CSS_CLASS_GRAB);
+ if (this.onActiveChanged) {
+ this.onActiveChanged(true);
+ }
+ }
+ },
+
+ /**
+ * Removes all events. Any pending pan session is immediately stopped.
+ */
+ deactivate: function GrabToPan_deactivate() {
+ if (this.active) {
+ this.active = false;
+ this.element.removeEventListener('mousedown', this._onmousedown, true);
+ this._endPan();
+ this.element.classList.remove(this.CSS_CLASS_GRAB);
+ if (this.onActiveChanged) {
+ this.onActiveChanged(false);
+ }
+ }
+ },
+
+ toggle: function GrabToPan_toggle() {
+ if (this.active) {
+ this.deactivate();
+ } else {
+ this.activate();
+ }
+ },
+
+ /**
+ * Whether to not pan if the target element is clicked.
+ * Override this method to change the default behaviour.
+ *
+ * @param node {Element} The target of the event
+ * @return {boolean} Whether to not react to the click event.
+ */
+ ignoreTarget: function GrabToPan_ignoreTarget(node) {
+ // Use matchesSelector to check whether the clicked element
+ // is (a child of) an input element / link
+ return node[matchesSelector](
+ 'a[href], a[href] *, input, textarea, button, button *, select, option'
+ );
+ },
+
+ /**
+ * @private
+ */
+ _onmousedown: function GrabToPan__onmousedown(event) {
+ if (event.button !== 0 || this.ignoreTarget(event.target)) {
+ return;
+ }
+ if (event.originalTarget) {
+ try {
+ /* jshint expr:true */
+ event.originalTarget.tagName;
+ } catch (e) {
+ // Mozilla-specific: element is a scrollbar (XUL element)
+ return;
+ }
+ }
+
+ this.scrollLeftStart = this.element.scrollLeft;
+ this.scrollTopStart = this.element.scrollTop;
+ this.clientXStart = event.clientX;
+ this.clientYStart = event.clientY;
+ this.document.addEventListener('mousemove', this._onmousemove, true);
+ this.document.addEventListener('mouseup', this._endPan, true);
+ // When a scroll event occurs before a mousemove, assume that the user
+ // dragged a scrollbar (necessary for Opera Presto, Safari and IE)
+ // (not needed for Chrome/Firefox)
+ this.element.addEventListener('scroll', this._endPan, true);
+ event.preventDefault();
+ event.stopPropagation();
+ this.document.documentElement.classList.add(this.CSS_CLASS_GRABBING);
+
+ var focusedElement = document.activeElement;
+ if (focusedElement && !focusedElement.contains(event.target)) {
+ focusedElement.blur();
+ }
+ },
+
+ /**
+ * @private
+ */
+ _onmousemove: function GrabToPan__onmousemove(event) {
+ this.element.removeEventListener('scroll', this._endPan, true);
+ if (isLeftMouseReleased(event)) {
+ this._endPan();
+ return;
+ }
+ var xDiff = event.clientX - this.clientXStart;
+ var yDiff = event.clientY - this.clientYStart;
+ this.element.scrollTop = this.scrollTopStart - yDiff;
+ this.element.scrollLeft = this.scrollLeftStart - xDiff;
+ if (!this.overlay.parentNode) {
+ document.body.appendChild(this.overlay);
+ }
+ },
+
+ /**
+ * @private
+ */
+ _endPan: function GrabToPan__endPan() {
+ this.element.removeEventListener('scroll', this._endPan, true);
+ this.document.removeEventListener('mousemove', this._onmousemove, true);
+ this.document.removeEventListener('mouseup', this._endPan, true);
+ if (this.overlay.parentNode) {
+ this.overlay.parentNode.removeChild(this.overlay);
+ }
+ }
+ };
+
+ // Get the correct (vendor-prefixed) name of the matches method.
+ var matchesSelector;
+ ['webkitM', 'mozM', 'msM', 'oM', 'm'].some(function(prefix) {
+ var name = prefix + 'atches';
+ if (name in document.documentElement) {
+ matchesSelector = name;
+ }
+ name += 'Selector';
+ if (name in document.documentElement) {
+ matchesSelector = name;
+ }
+ return matchesSelector; // If found, then truthy, and [].some() ends.
+ });
+
+ // Browser sniffing because it's impossible to feature-detect
+ // whether event.which for onmousemove is reliable
+ var isNotIEorIsIE10plus = !document.documentMode || document.documentMode > 9;
+ var chrome = window.chrome;
+ var isChrome15OrOpera15plus = chrome && (chrome.webstore || chrome.app);
+ // ^ Chrome 15+ ^ Opera 15+
+ var isSafari6plus = /Apple/.test(navigator.vendor) &&
+ /Version\/([6-9]\d*|[1-5]\d+)/.test(navigator.userAgent);
+
+ /**
+ * Whether the left mouse is not pressed.
+ * @param event {MouseEvent}
+ * @return {boolean} True if the left mouse button is not pressed.
+ * False if unsure or if the left mouse button is pressed.
+ */
+ function isLeftMouseReleased(event) {
+ if ('buttons' in event && isNotIEorIsIE10plus) {
+ // http://www.w3.org/TR/DOM-Level-3-Events/#events-MouseEvent-buttons
+ // Firefox 15+
+ // Internet Explorer 10+
+ return !(event.buttons | 1);
+ }
+ if (isChrome15OrOpera15plus || isSafari6plus) {
+ // Chrome 14+
+ // Opera 15+
+ // Safari 6.0+
+ return event.which === 0;
+ }
+ }
+
+ return GrabToPan;
+})();
+
+var HandTool = {
+ initialize: function handToolInitialize(options) {
+ var toggleHandTool = options.toggleHandTool;
+ this.handTool = new GrabToPan({
+ element: options.container,
+ onActiveChanged: function(isActive) {
+ if (!toggleHandTool) {
+ return;
+ }
+ if (isActive) {
+ toggleHandTool.title =
+ mozL10n.get('hand_tool_disable.title', null, 'Disable hand tool');
+ toggleHandTool.firstElementChild.textContent =
+ mozL10n.get('hand_tool_disable_label', null, 'Disable hand tool');
+ } else {
+ toggleHandTool.title =
+ mozL10n.get('hand_tool_enable.title', null, 'Enable hand tool');
+ toggleHandTool.firstElementChild.textContent =
+ mozL10n.get('hand_tool_enable_label', null, 'Enable hand tool');
+ }
+ }
+ });
+ if (toggleHandTool) {
+ toggleHandTool.addEventListener('click', this.toggle.bind(this), false);
+
+ window.addEventListener('localized', function (evt) {
+ Preferences.get('enableHandToolOnLoad').then(function resolved(value) {
+ if (value) {
+ this.handTool.activate();
+ }
+ }.bind(this), function rejected(reason) {});
+ }.bind(this));
+ }
+ },
+
+ toggle: function handToolToggle() {
+ this.handTool.toggle();
+ SecondaryToolbar.close();
+ },
+
+ enterPresentationMode: function handToolEnterPresentationMode() {
+ if (this.handTool.active) {
+ this.wasActive = true;
+ this.handTool.deactivate();
+ }
+ },
+
+ exitPresentationMode: function handToolExitPresentationMode() {
+ if (this.wasActive) {
+ this.wasActive = null;
+ this.handTool.activate();
+ }
+ }
+};
+
+
+var OverlayManager = {
+ overlays: {},
+ active: null,
+
+ /**
+ * @param {string} name The name of the overlay that is registered. This must
+ * be equal to the ID of the overlay's DOM element.
+ * @param {function} callerCloseMethod (optional) The method that, if present,
+ * will call OverlayManager.close from the Object
+ * registering the overlay. Access to this method is
+ * necessary in order to run cleanup code when e.g.
+ * the overlay is force closed. The default is null.
+ * @param {boolean} canForceClose (optional) Indicates if opening the overlay
+ * will close an active overlay. The default is false.
+ * @returns {Promise} A promise that is resolved when the overlay has been
+ * registered.
+ */
+ register: function overlayManagerRegister(name,
+ callerCloseMethod, canForceClose) {
+ return new Promise(function (resolve) {
+ var element, container;
+ if (!name || !(element = document.getElementById(name)) ||
+ !(container = element.parentNode)) {
+ throw new Error('Not enough parameters.');
+ } else if (this.overlays[name]) {
+ throw new Error('The overlay is already registered.');
+ }
+ this.overlays[name] = { element: element,
+ container: container,
+ callerCloseMethod: (callerCloseMethod || null),
+ canForceClose: (canForceClose || false) };
+ resolve();
+ }.bind(this));
+ },
+
+ /**
+ * @param {string} name The name of the overlay that is unregistered.
+ * @returns {Promise} A promise that is resolved when the overlay has been
+ * unregistered.
+ */
+ unregister: function overlayManagerUnregister(name) {
+ return new Promise(function (resolve) {
+ if (!this.overlays[name]) {
+ throw new Error('The overlay does not exist.');
+ } else if (this.active === name) {
+ throw new Error('The overlay cannot be removed while it is active.');
+ }
+ delete this.overlays[name];
+
+ resolve();
+ }.bind(this));
+ },
+
+ /**
+ * @param {string} name The name of the overlay that should be opened.
+ * @returns {Promise} A promise that is resolved when the overlay has been
+ * opened.
+ */
+ open: function overlayManagerOpen(name) {
+ return new Promise(function (resolve) {
+ if (!this.overlays[name]) {
+ throw new Error('The overlay does not exist.');
+ } else if (this.active) {
+ if (this.overlays[name].canForceClose) {
+ this._closeThroughCaller();
+ } else if (this.active === name) {
+ throw new Error('The overlay is already active.');
+ } else {
+ throw new Error('Another overlay is currently active.');
+ }
+ }
+ this.active = name;
+ this.overlays[this.active].element.classList.remove('hidden');
+ this.overlays[this.active].container.classList.remove('hidden');
+
+ window.addEventListener('keydown', this._keyDown);
+ resolve();
+ }.bind(this));
+ },
+
+ /**
+ * @param {string} name The name of the overlay that should be closed.
+ * @returns {Promise} A promise that is resolved when the overlay has been
+ * closed.
+ */
+ close: function overlayManagerClose(name) {
+ return new Promise(function (resolve) {
+ if (!this.overlays[name]) {
+ throw new Error('The overlay does not exist.');
+ } else if (!this.active) {
+ throw new Error('The overlay is currently not active.');
+ } else if (this.active !== name) {
+ throw new Error('Another overlay is currently active.');
+ }
+ this.overlays[this.active].container.classList.add('hidden');
+ this.overlays[this.active].element.classList.add('hidden');
+ this.active = null;
+
+ window.removeEventListener('keydown', this._keyDown);
+ resolve();
+ }.bind(this));
+ },
+
+ /**
+ * @private
+ */
+ _keyDown: function overlayManager_keyDown(evt) {
+ var self = OverlayManager;
+ if (self.active && evt.keyCode === 27) { // Esc key.
+ self._closeThroughCaller();
+ evt.preventDefault();
+ }
+ },
+
+ /**
+ * @private
+ */
+ _closeThroughCaller: function overlayManager_closeThroughCaller() {
+ if (this.overlays[this.active].callerCloseMethod) {
+ this.overlays[this.active].callerCloseMethod();
+ }
+ if (this.active) {
+ this.close(this.active);
+ }
+ }
+};
+
+
+var PasswordPrompt = {
+ overlayName: null,
+ updatePassword: null,
+ reason: null,
+ passwordField: null,
+ passwordText: null,
+ passwordSubmit: null,
+ passwordCancel: null,
+
+ initialize: function secondaryToolbarInitialize(options) {
+ this.overlayName = options.overlayName;
+ this.passwordField = options.passwordField;
+ this.passwordText = options.passwordText;
+ this.passwordSubmit = options.passwordSubmit;
+ this.passwordCancel = options.passwordCancel;
+
+ // Attach the event listeners.
+ this.passwordSubmit.addEventListener('click',
+ this.verifyPassword.bind(this));
+
+ this.passwordCancel.addEventListener('click', this.close.bind(this));
+
+ this.passwordField.addEventListener('keydown', function (e) {
+ if (e.keyCode === 13) { // Enter key
+ this.verifyPassword();
+ }
+ }.bind(this));
+
+ OverlayManager.register(this.overlayName, this.close.bind(this), true);
+ },
+
+ open: function passwordPromptOpen() {
+ OverlayManager.open(this.overlayName).then(function () {
+ this.passwordField.focus();
+
+ var promptString = mozL10n.get('password_label', null,
+ 'Enter the password to open this PDF file.');
+
+ if (this.reason === PDFJS.PasswordResponses.INCORRECT_PASSWORD) {
+ promptString = mozL10n.get('password_invalid', null,
+ 'Invalid password. Please try again.');
+ }
+
+ this.passwordText.textContent = promptString;
+ }.bind(this));
+ },
+
+ close: function passwordPromptClose() {
+ OverlayManager.close(this.overlayName).then(function () {
+ this.passwordField.value = '';
+ }.bind(this));
+ },
+
+ verifyPassword: function passwordPromptVerifyPassword() {
+ var password = this.passwordField.value;
+ if (password && password.length > 0) {
+ this.close();
+ return this.updatePassword(password);
+ }
+ }
+};
+
+
+var DocumentProperties = {
+ overlayName: null,
+ rawFileSize: 0,
+
+ // Document property fields (in the viewer).
+ fileNameField: null,
+ fileSizeField: null,
+ titleField: null,
+ authorField: null,
+ subjectField: null,
+ keywordsField: null,
+ creationDateField: null,
+ modificationDateField: null,
+ creatorField: null,
+ producerField: null,
+ versionField: null,
+ pageCountField: null,
+ url: null,
+ pdfDocument: null,
+
+ initialize: function documentPropertiesInitialize(options) {
+ this.overlayName = options.overlayName;
+
+ // Set the document property fields.
+ this.fileNameField = options.fileNameField;
+ this.fileSizeField = options.fileSizeField;
+ this.titleField = options.titleField;
+ this.authorField = options.authorField;
+ this.subjectField = options.subjectField;
+ this.keywordsField = options.keywordsField;
+ this.creationDateField = options.creationDateField;
+ this.modificationDateField = options.modificationDateField;
+ this.creatorField = options.creatorField;
+ this.producerField = options.producerField;
+ this.versionField = options.versionField;
+ this.pageCountField = options.pageCountField;
+
+ // Bind the event listener for the Close button.
+ if (options.closeButton) {
+ options.closeButton.addEventListener('click', this.close.bind(this));
+ }
+
+ this.dataAvailablePromise = new Promise(function (resolve) {
+ this.resolveDataAvailable = resolve;
+ }.bind(this));
+
+ OverlayManager.register(this.overlayName, this.close.bind(this));
+ },
+
+ getProperties: function documentPropertiesGetProperties() {
+ if (!OverlayManager.active) {
+ // If the dialog was closed before dataAvailablePromise was resolved,
+ // don't bother updating the properties.
+ return;
+ }
+ // Get the file size (if it hasn't already been set).
+ this.pdfDocument.getDownloadInfo().then(function(data) {
+ if (data.length === this.rawFileSize) {
+ return;
+ }
+ this.setFileSize(data.length);
+ this.updateUI(this.fileSizeField, this.parseFileSize());
+ }.bind(this));
+
+ // Get the document properties.
+ this.pdfDocument.getMetadata().then(function(data) {
+ var fields = [
+ { field: this.fileNameField,
+ content: getPDFFileNameFromURL(this.url) },
+ { field: this.fileSizeField, content: this.parseFileSize() },
+ { field: this.titleField, content: data.info.Title },
+ { field: this.authorField, content: data.info.Author },
+ { field: this.subjectField, content: data.info.Subject },
+ { field: this.keywordsField, content: data.info.Keywords },
+ { field: this.creationDateField,
+ content: this.parseDate(data.info.CreationDate) },
+ { field: this.modificationDateField,
+ content: this.parseDate(data.info.ModDate) },
+ { field: this.creatorField, content: data.info.Creator },
+ { field: this.producerField, content: data.info.Producer },
+ { field: this.versionField, content: data.info.PDFFormatVersion },
+ { field: this.pageCountField, content: this.pdfDocument.numPages }
+ ];
+
+ // Show the properties in the dialog.
+ for (var item in fields) {
+ var element = fields[item];
+ this.updateUI(element.field, element.content);
+ }
+ }.bind(this));
+ },
+
+ updateUI: function documentPropertiesUpdateUI(field, content) {
+ if (field && content !== undefined && content !== '') {
+ field.textContent = content;
+ }
+ },
+
+ setFileSize: function documentPropertiesSetFileSize(fileSize) {
+ if (fileSize > 0) {
+ this.rawFileSize = fileSize;
+ }
+ },
+
+ parseFileSize: function documentPropertiesParseFileSize() {
+ var fileSize = this.rawFileSize, kb = fileSize / 1024;
+ if (!kb) {
+ return;
+ } else if (kb < 1024) {
+ return mozL10n.get('document_properties_kb', {
+ size_kb: (+kb.toPrecision(3)).toLocaleString(),
+ size_b: fileSize.toLocaleString()
+ }, '{{size_kb}} KB ({{size_b}} bytes)');
+ } else {
+ return mozL10n.get('document_properties_mb', {
+ size_mb: (+(kb / 1024).toPrecision(3)).toLocaleString(),
+ size_b: fileSize.toLocaleString()
+ }, '{{size_mb}} MB ({{size_b}} bytes)');
+ }
+ },
+
+ open: function documentPropertiesOpen() {
+ Promise.all([OverlayManager.open(this.overlayName),
+ this.dataAvailablePromise]).then(function () {
+ this.getProperties();
+ }.bind(this));
+ },
+
+ close: function documentPropertiesClose() {
+ OverlayManager.close(this.overlayName);
+ },
+
+ parseDate: function documentPropertiesParseDate(inputDate) {
+ // This is implemented according to the PDF specification, but note that
+ // Adobe Reader doesn't handle changing the date to universal time
+ // and doesn't use the user's time zone (they're effectively ignoring
+ // the HH' and mm' parts of the date string).
+ var dateToParse = inputDate;
+ if (dateToParse === undefined) {
+ return '';
+ }
+
+ // Remove the D: prefix if it is available.
+ if (dateToParse.substring(0,2) === 'D:') {
+ dateToParse = dateToParse.substring(2);
+ }
+
+ // Get all elements from the PDF date string.
+ // JavaScript's Date object expects the month to be between
+ // 0 and 11 instead of 1 and 12, so we're correcting for this.
+ var year = parseInt(dateToParse.substring(0,4), 10);
+ var month = parseInt(dateToParse.substring(4,6), 10) - 1;
+ var day = parseInt(dateToParse.substring(6,8), 10);
+ var hours = parseInt(dateToParse.substring(8,10), 10);
+ var minutes = parseInt(dateToParse.substring(10,12), 10);
+ var seconds = parseInt(dateToParse.substring(12,14), 10);
+ var utRel = dateToParse.substring(14,15);
+ var offsetHours = parseInt(dateToParse.substring(15,17), 10);
+ var offsetMinutes = parseInt(dateToParse.substring(18,20), 10);
+
+ // As per spec, utRel = 'Z' means equal to universal time.
+ // The other cases ('-' and '+') have to be handled here.
+ if (utRel === '-') {
+ hours += offsetHours;
+ minutes += offsetMinutes;
+ } else if (utRel === '+') {
+ hours -= offsetHours;
+ minutes -= offsetMinutes;
+ }
+
+ // Return the new date format from the user's locale.
+ var date = new Date(Date.UTC(year, month, day, hours, minutes, seconds));
+ var dateString = date.toLocaleDateString();
+ var timeString = date.toLocaleTimeString();
+ return mozL10n.get('document_properties_date_string',
+ {date: dateString, time: timeString},
+ '{{date}}, {{time}}');
+ }
+};
+
+
+var PresentationModeState = {
+ UNKNOWN: 0,
+ NORMAL: 1,
+ CHANGING: 2,
+ FULLSCREEN: 3,
+};
+
+var IGNORE_CURRENT_POSITION_ON_ZOOM = false;
+var DEFAULT_CACHE_SIZE = 10;
+
+
+var CLEANUP_TIMEOUT = 30000;
+
+var RenderingStates = {
+ INITIAL: 0,
+ RUNNING: 1,
+ PAUSED: 2,
+ FINISHED: 3
+};
+
+/**
+ * Controls rendering of the views for pages and thumbnails.
+ * @class
+ */
+var PDFRenderingQueue = (function PDFRenderingQueueClosure() {
+ /**
+ * @constructs
+ */
+ function PDFRenderingQueue() {
+ this.pdfViewer = null;
+ this.pdfThumbnailViewer = null;
+ this.onIdle = null;
+
+ this.highestPriorityPage = null;
+ this.idleTimeout = null;
+ this.printing = false;
+ this.isThumbnailViewEnabled = false;
+ }
+
+ PDFRenderingQueue.prototype = /** @lends PDFRenderingQueue.prototype */ {
+ /**
+ * @param {PDFViewer} pdfViewer
+ */
+ setViewer: function PDFRenderingQueue_setViewer(pdfViewer) {
+ this.pdfViewer = pdfViewer;
+ },
+
+ /**
+ * @param {PDFThumbnailViewer} pdfThumbnailViewer
+ */
+ setThumbnailViewer:
+ function PDFRenderingQueue_setThumbnailViewer(pdfThumbnailViewer) {
+ this.pdfThumbnailViewer = pdfThumbnailViewer;
+ },
+
+ /**
+ * @param {IRenderableView} view
+ * @returns {boolean}
+ */
+ isHighestPriority: function PDFRenderingQueue_isHighestPriority(view) {
+ return this.highestPriorityPage === view.renderingId;
+ },
+
+ renderHighestPriority: function
+ PDFRenderingQueue_renderHighestPriority(currentlyVisiblePages) {
+ if (this.idleTimeout) {
+ clearTimeout(this.idleTimeout);
+ this.idleTimeout = null;
+ }
+
+ // Pages have a higher priority than thumbnails, so check them first.
+ if (this.pdfViewer.forceRendering(currentlyVisiblePages)) {
+ return;
+ }
+ // No pages needed rendering so check thumbnails.
+ if (this.pdfThumbnailViewer && this.isThumbnailViewEnabled) {
+ if (this.pdfThumbnailViewer.forceRendering()) {
+ return;
+ }
+ }
+
+ if (this.printing) {
+ // If printing is currently ongoing do not reschedule cleanup.
+ return;
+ }
+
+ if (this.onIdle) {
+ this.idleTimeout = setTimeout(this.onIdle.bind(this), CLEANUP_TIMEOUT);
+ }
+ },
+
+ getHighestPriority: function
+ PDFRenderingQueue_getHighestPriority(visible, views, scrolledDown) {
+ // The state has changed figure out which page has the highest priority to
+ // render next (if any).
+ // Priority:
+ // 1 visible pages
+ // 2 if last scrolled down page after the visible pages
+ // 2 if last scrolled up page before the visible pages
+ var visibleViews = visible.views;
+
+ var numVisible = visibleViews.length;
+ if (numVisible === 0) {
+ return false;
+ }
+ for (var i = 0; i < numVisible; ++i) {
+ var view = visibleViews[i].view;
+ if (!this.isViewFinished(view)) {
+ return view;
+ }
+ }
+
+ // All the visible views have rendered, try to render next/previous pages.
+ if (scrolledDown) {
+ var nextPageIndex = visible.last.id;
+ // ID's start at 1 so no need to add 1.
+ if (views[nextPageIndex] &&
+ !this.isViewFinished(views[nextPageIndex])) {
+ return views[nextPageIndex];
+ }
+ } else {
+ var previousPageIndex = visible.first.id - 2;
+ if (views[previousPageIndex] &&
+ !this.isViewFinished(views[previousPageIndex])) {
+ return views[previousPageIndex];
+ }
+ }
+ // Everything that needs to be rendered has been.
+ return null;
+ },
+
+ /**
+ * @param {IRenderableView} view
+ * @returns {boolean}
+ */
+ isViewFinished: function PDFRenderingQueue_isViewFinished(view) {
+ return view.renderingState === RenderingStates.FINISHED;
+ },
+
+ /**
+ * Render a page or thumbnail view. This calls the appropriate function
+ * based on the views state. If the view is already rendered it will return
+ * false.
+ * @param {IRenderableView} view
+ */
+ renderView: function PDFRenderingQueue_renderView(view) {
+ var state = view.renderingState;
+ switch (state) {
+ case RenderingStates.FINISHED:
+ return false;
+ case RenderingStates.PAUSED:
+ this.highestPriorityPage = view.renderingId;
+ view.resume();
+ break;
+ case RenderingStates.RUNNING:
+ this.highestPriorityPage = view.renderingId;
+ break;
+ case RenderingStates.INITIAL:
+ this.highestPriorityPage = view.renderingId;
+ var continueRendering = function () {
+ this.renderHighestPriority();
+ }.bind(this);
+ view.draw().then(continueRendering, continueRendering);
+ break;
+ }
+ return true;
+ },
+ };
+
+ return PDFRenderingQueue;
+})();
+
+
+var TEXT_LAYER_RENDER_DELAY = 200; // ms
+
+/**
+ * @typedef {Object} PDFPageViewOptions
+ * @property {HTMLDivElement} container - The viewer element.
+ * @property {number} id - The page unique ID (normally its number).
+ * @property {number} scale - The page scale display.
+ * @property {PageViewport} defaultViewport - The page viewport.
+ * @property {PDFRenderingQueue} renderingQueue - The rendering queue object.
+ * @property {IPDFTextLayerFactory} textLayerFactory
+ * @property {IPDFAnnotationsLayerFactory} annotationsLayerFactory
+ */
+
+/**
+ * @class
+ * @implements {IRenderableView}
+ */
+var PDFPageView = (function PDFPageViewClosure() {
+ /**
+ * @constructs PDFPageView
+ * @param {PDFPageViewOptions} options
+ */
+ function PDFPageView(options) {
+ var container = options.container;
+ var id = options.id;
+ var scale = options.scale;
+ var defaultViewport = options.defaultViewport;
+ var renderingQueue = options.renderingQueue;
+ var textLayerFactory = options.textLayerFactory;
+ var annotationsLayerFactory = options.annotationsLayerFactory;
+
+ this.id = id;
+ this.renderingId = 'page' + id;
+
+ this.rotation = 0;
+ this.scale = scale || 1.0;
+ this.viewport = defaultViewport;
+ this.pdfPageRotate = defaultViewport.rotation;
+ this.hasRestrictedScaling = false;
+
+ this.renderingQueue = renderingQueue;
+ this.textLayerFactory = textLayerFactory;
+ this.annotationsLayerFactory = annotationsLayerFactory;
+
+ this.renderingState = RenderingStates.INITIAL;
+ this.resume = null;
+
+ this.onBeforeDraw = null;
+ this.onAfterDraw = null;
+
+ this.textLayer = null;
+
+ this.zoomLayer = null;
+
+ this.annotationLayer = null;
+
+ var div = document.createElement('div');
+ div.id = 'pageContainer' + this.id;
+ div.className = 'page';
+ div.style.width = Math.floor(this.viewport.width) + 'px';
+ div.style.height = Math.floor(this.viewport.height) + 'px';
+ div.setAttribute('data-page-number', this.id);
+ this.div = div;
+
+ container.appendChild(div);
+ }
+
+ PDFPageView.prototype = {
+ setPdfPage: function PDFPageView_setPdfPage(pdfPage) {
+ this.pdfPage = pdfPage;
+ this.pdfPageRotate = pdfPage.rotate;
+ var totalRotation = (this.rotation + this.pdfPageRotate) % 360;
+ this.viewport = pdfPage.getViewport(this.scale * CSS_UNITS,
+ totalRotation);
+ this.stats = pdfPage.stats;
+ this.reset();
+ },
+
+ destroy: function PDFPageView_destroy() {
+ this.zoomLayer = null;
+ this.reset();
+ if (this.pdfPage) {
+ this.pdfPage.destroy();
+ }
+ },
+
+ reset: function PDFPageView_reset(keepAnnotations) {
+ if (this.renderTask) {
+ this.renderTask.cancel();
+ }
+ this.resume = null;
+ this.renderingState = RenderingStates.INITIAL;
+
+ var div = this.div;
+ div.style.width = Math.floor(this.viewport.width) + 'px';
+ div.style.height = Math.floor(this.viewport.height) + 'px';
+
+ var childNodes = div.childNodes;
+ var currentZoomLayer = this.zoomLayer || null;
+ var currentAnnotationNode = (keepAnnotations && this.annotationLayer &&
+ this.annotationLayer.div) || null;
+ for (var i = childNodes.length - 1; i >= 0; i--) {
+ var node = childNodes[i];
+ if (currentZoomLayer === node || currentAnnotationNode === node) {
+ continue;
+ }
+ div.removeChild(node);
+ }
+ div.removeAttribute('data-loaded');
+
+ if (keepAnnotations) {
+ if (this.annotationLayer) {
+ // Hide annotationLayer until all elements are resized
+ // so they are not displayed on the already-resized page
+ this.annotationLayer.hide();
+ }
+ } else {
+ this.annotationLayer = null;
+ }
+
+ if (this.canvas) {
+ // Zeroing the width and height causes Firefox to release graphics
+ // resources immediately, which can greatly reduce memory consumption.
+ this.canvas.width = 0;
+ this.canvas.height = 0;
+ delete this.canvas;
+ }
+
+ this.loadingIconDiv = document.createElement('div');
+ this.loadingIconDiv.className = 'loadingIcon';
+ div.appendChild(this.loadingIconDiv);
+ },
+
+ update: function PDFPageView_update(scale, rotation) {
+ this.scale = scale || this.scale;
+
+ if (typeof rotation !== 'undefined') {
+ this.rotation = rotation;
+ }
+
+ var totalRotation = (this.rotation + this.pdfPageRotate) % 360;
+ this.viewport = this.viewport.clone({
+ scale: this.scale * CSS_UNITS,
+ rotation: totalRotation
+ });
+
+ var isScalingRestricted = false;
+ if (this.canvas && PDFJS.maxCanvasPixels > 0) {
+ var ctx = this.canvas.getContext('2d');
+ var outputScale = getOutputScale(ctx);
+ var pixelsInViewport = this.viewport.width * this.viewport.height;
+ var maxScale = Math.sqrt(PDFJS.maxCanvasPixels / pixelsInViewport);
+ if (((Math.floor(this.viewport.width) * outputScale.sx) | 0) *
+ ((Math.floor(this.viewport.height) * outputScale.sy) | 0) >
+ PDFJS.maxCanvasPixels) {
+ isScalingRestricted = true;
+ }
+ }
+
+ if (this.canvas &&
+ (PDFJS.useOnlyCssZoom ||
+ (this.hasRestrictedScaling && isScalingRestricted))) {
+ this.cssTransform(this.canvas, true);
+ return;
+ } else if (this.canvas && !this.zoomLayer) {
+ this.zoomLayer = this.canvas.parentNode;
+ this.zoomLayer.style.position = 'absolute';
+ }
+ if (this.zoomLayer) {
+ this.cssTransform(this.zoomLayer.firstChild);
+ }
+ this.reset(true);
+ },
+
+ /**
+ * Called when moved in the parent's container.
+ */
+ updatePosition: function PDFPageView_updatePosition() {
+ if (this.textLayer) {
+ this.textLayer.render(TEXT_LAYER_RENDER_DELAY);
+ }
+ },
+
+ cssTransform: function PDFPageView_transform(canvas, redrawAnnotations) {
+ // Scale canvas, canvas wrapper, and page container.
+ var width = this.viewport.width;
+ var height = this.viewport.height;
+ var div = this.div;
+ canvas.style.width = canvas.parentNode.style.width = div.style.width =
+ Math.floor(width) + 'px';
+ canvas.style.height = canvas.parentNode.style.height = div.style.height =
+ Math.floor(height) + 'px';
+ // The canvas may have been originally rotated, rotate relative to that.
+ var relativeRotation = this.viewport.rotation - canvas._viewport.rotation;
+ var absRotation = Math.abs(relativeRotation);
+ var scaleX = 1, scaleY = 1;
+ if (absRotation === 90 || absRotation === 270) {
+ // Scale x and y because of the rotation.
+ scaleX = height / width;
+ scaleY = width / height;
+ }
+ var cssTransform = 'rotate(' + relativeRotation + 'deg) ' +
+ 'scale(' + scaleX + ',' + scaleY + ')';
+ CustomStyle.setProp('transform', canvas, cssTransform);
+
+ if (this.textLayer) {
+ // Rotating the text layer is more complicated since the divs inside the
+ // the text layer are rotated.
+ // TODO: This could probably be simplified by drawing the text layer in
+ // one orientation then rotating overall.
+ var textLayerViewport = this.textLayer.viewport;
+ var textRelativeRotation = this.viewport.rotation -
+ textLayerViewport.rotation;
+ var textAbsRotation = Math.abs(textRelativeRotation);
+ var scale = width / textLayerViewport.width;
+ if (textAbsRotation === 90 || textAbsRotation === 270) {
+ scale = width / textLayerViewport.height;
+ }
+ var textLayerDiv = this.textLayer.textLayerDiv;
+ var transX, transY;
+ switch (textAbsRotation) {
+ case 0:
+ transX = transY = 0;
+ break;
+ case 90:
+ transX = 0;
+ transY = '-' + textLayerDiv.style.height;
+ break;
+ case 180:
+ transX = '-' + textLayerDiv.style.width;
+ transY = '-' + textLayerDiv.style.height;
+ break;
+ case 270:
+ transX = '-' + textLayerDiv.style.width;
+ transY = 0;
+ break;
+ default:
+ console.error('Bad rotation value.');
+ break;
+ }
+ CustomStyle.setProp('transform', textLayerDiv,
+ 'rotate(' + textAbsRotation + 'deg) ' +
+ 'scale(' + scale + ', ' + scale + ') ' +
+ 'translate(' + transX + ', ' + transY + ')');
+ CustomStyle.setProp('transformOrigin', textLayerDiv, '0% 0%');
+ }
+
+ if (redrawAnnotations && this.annotationLayer) {
+ this.annotationLayer.setupAnnotations(this.viewport);
+ }
+ },
+
+ get width() {
+ return this.viewport.width;
+ },
+
+ get height() {
+ return this.viewport.height;
+ },
+
+ getPagePoint: function PDFPageView_getPagePoint(x, y) {
+ return this.viewport.convertToPdfPoint(x, y);
+ },
+
+ draw: function PDFPageView_draw() {
+ if (this.renderingState !== RenderingStates.INITIAL) {
+ console.error('Must be in new state before drawing');
+ }
+
+ this.renderingState = RenderingStates.RUNNING;
+
+ var pdfPage = this.pdfPage;
+ var viewport = this.viewport;
+ var div = this.div;
+ // Wrap the canvas so if it has a css transform for highdpi the overflow
+ // will be hidden in FF.
+ var canvasWrapper = document.createElement('div');
+ canvasWrapper.style.width = div.style.width;
+ canvasWrapper.style.height = div.style.height;
+ canvasWrapper.classList.add('canvasWrapper');
+
+ var canvas = document.createElement('canvas');
+ canvas.id = 'page' + this.id;
+ canvasWrapper.appendChild(canvas);
+ if (this.annotationLayer) {
+ // annotationLayer needs to stay on top
+ div.insertBefore(canvasWrapper, this.annotationLayer.div);
+ } else {
+ div.appendChild(canvasWrapper);
+ }
+ this.canvas = canvas;
+
+ var ctx = canvas.getContext('2d');
+ var outputScale = getOutputScale(ctx);
+
+ if (PDFJS.useOnlyCssZoom) {
+ var actualSizeViewport = viewport.clone({ scale: CSS_UNITS });
+ // Use a scale that will make the canvas be the original intended size
+ // of the page.
+ outputScale.sx *= actualSizeViewport.width / viewport.width;
+ outputScale.sy *= actualSizeViewport.height / viewport.height;
+ outputScale.scaled = true;
+ }
+
+ if (PDFJS.maxCanvasPixels > 0) {
+ var pixelsInViewport = viewport.width * viewport.height;
+ var maxScale = Math.sqrt(PDFJS.maxCanvasPixels / pixelsInViewport);
+ if (outputScale.sx > maxScale || outputScale.sy > maxScale) {
+ outputScale.sx = maxScale;
+ outputScale.sy = maxScale;
+ outputScale.scaled = true;
+ this.hasRestrictedScaling = true;
+ } else {
+ this.hasRestrictedScaling = false;
+ }
+ }
+
+ canvas.width = (Math.floor(viewport.width) * outputScale.sx) | 0;
+ canvas.height = (Math.floor(viewport.height) * outputScale.sy) | 0;
+ canvas.style.width = Math.floor(viewport.width) + 'px';
+ canvas.style.height = Math.floor(viewport.height) + 'px';
+ // Add the viewport so it's known what it was originally drawn with.
+ canvas._viewport = viewport;
+
+ var textLayerDiv = null;
+ var textLayer = null;
+ if (this.textLayerFactory) {
+ textLayerDiv = document.createElement('div');
+ textLayerDiv.className = 'textLayer';
+ textLayerDiv.style.width = canvas.style.width;
+ textLayerDiv.style.height = canvas.style.height;
+ if (this.annotationLayer) {
+ // annotationLayer needs to stay on top
+ div.insertBefore(textLayerDiv, this.annotationLayer.div);
+ } else {
+ div.appendChild(textLayerDiv);
+ }
+
+ textLayer = this.textLayerFactory.createTextLayerBuilder(textLayerDiv,
+ this.id - 1,
+ this.viewport);
+ }
+ this.textLayer = textLayer;
+
+ // TODO(mack): use data attributes to store these
+ ctx._scaleX = outputScale.sx;
+ ctx._scaleY = outputScale.sy;
+ if (outputScale.scaled) {
+ ctx.scale(outputScale.sx, outputScale.sy);
+ }
+
+ var resolveRenderPromise, rejectRenderPromise;
+ var promise = new Promise(function (resolve, reject) {
+ resolveRenderPromise = resolve;
+ rejectRenderPromise = reject;
+ });
+
+ // Rendering area
+
+ var self = this;
+ function pageViewDrawCallback(error) {
+ // The renderTask may have been replaced by a new one, so only remove
+ // the reference to the renderTask if it matches the one that is
+ // triggering this callback.
+ if (renderTask === self.renderTask) {
+ self.renderTask = null;
+ }
+
+ if (error === 'cancelled') {
+ rejectRenderPromise(error);
+ return;
+ }
+
+ self.renderingState = RenderingStates.FINISHED;
+
+ if (self.loadingIconDiv) {
+ div.removeChild(self.loadingIconDiv);
+ delete self.loadingIconDiv;
+ }
+
+ if (self.zoomLayer) {
+ div.removeChild(self.zoomLayer);
+ self.zoomLayer = null;
+ }
+
+ self.error = error;
+ self.stats = pdfPage.stats;
+ if (self.onAfterDraw) {
+ self.onAfterDraw();
+ }
+ var event = document.createEvent('CustomEvent');
+ event.initCustomEvent('pagerendered', true, true, {
+ pageNumber: self.id
+ });
+ div.dispatchEvent(event);
+ // This custom event is deprecated, and will be removed in the future,
+ // please use the |pagerendered| event instead.
+ var deprecatedEvent = document.createEvent('CustomEvent');
+ deprecatedEvent.initCustomEvent('pagerender', true, true, {
+ pageNumber: pdfPage.pageNumber
+ });
+ div.dispatchEvent(deprecatedEvent);
+
+ if (!error) {
+ resolveRenderPromise(undefined);
+ } else {
+ rejectRenderPromise(error);
+ }
+ }
+
+ var renderContinueCallback = null;
+ if (this.renderingQueue) {
+ renderContinueCallback = function renderContinueCallback(cont) {
+ if (!self.renderingQueue.isHighestPriority(self)) {
+ self.renderingState = RenderingStates.PAUSED;
+ self.resume = function resumeCallback() {
+ self.renderingState = RenderingStates.RUNNING;
+ cont();
+ };
+ return;
+ }
+ cont();
+ };
+ }
+
+ var renderContext = {
+ canvasContext: ctx,
+ viewport: this.viewport,
+ // intent: 'default', // === 'display'
+ continueCallback: renderContinueCallback
+ };
+ var renderTask = this.renderTask = this.pdfPage.render(renderContext);
+
+ this.renderTask.promise.then(
+ function pdfPageRenderCallback() {
+ pageViewDrawCallback(null);
+ if (textLayer) {
+ self.pdfPage.getTextContent().then(
+ function textContentResolved(textContent) {
+ textLayer.setTextContent(textContent);
+ textLayer.render(TEXT_LAYER_RENDER_DELAY);
+ }
+ );
+ }
+ },
+ function pdfPageRenderError(error) {
+ pageViewDrawCallback(error);
+ }
+ );
+
+ if (this.annotationsLayerFactory) {
+ if (!this.annotationLayer) {
+ this.annotationLayer = this.annotationsLayerFactory.
+ createAnnotationsLayerBuilder(div, this.pdfPage);
+ }
+ this.annotationLayer.setupAnnotations(this.viewport);
+ }
+ div.setAttribute('data-loaded', true);
+
+ if (self.onBeforeDraw) {
+ self.onBeforeDraw();
+ }
+ return promise;
+ },
+
+ beforePrint: function PDFPageView_beforePrint() {
+ var pdfPage = this.pdfPage;
+
+ var viewport = pdfPage.getViewport(1);
+ // Use the same hack we use for high dpi displays for printing to get
+ // better output until bug 811002 is fixed in FF.
+ var PRINT_OUTPUT_SCALE = 2;
+ var canvas = document.createElement('canvas');
+ canvas.width = Math.floor(viewport.width) * PRINT_OUTPUT_SCALE;
+ canvas.height = Math.floor(viewport.height) * PRINT_OUTPUT_SCALE;
+ canvas.style.width = (PRINT_OUTPUT_SCALE * viewport.width) + 'pt';
+ canvas.style.height = (PRINT_OUTPUT_SCALE * viewport.height) + 'pt';
+ var cssScale = 'scale(' + (1 / PRINT_OUTPUT_SCALE) + ', ' +
+ (1 / PRINT_OUTPUT_SCALE) + ')';
+ CustomStyle.setProp('transform' , canvas, cssScale);
+ CustomStyle.setProp('transformOrigin' , canvas, '0% 0%');
+
+ var printContainer = document.getElementById('printContainer');
+ var canvasWrapper = document.createElement('div');
+ canvasWrapper.style.width = viewport.width + 'pt';
+ canvasWrapper.style.height = viewport.height + 'pt';
+ canvasWrapper.appendChild(canvas);
+ printContainer.appendChild(canvasWrapper);
+
+ canvas.mozPrintCallback = function(obj) {
+ var ctx = obj.context;
+
+ ctx.save();
+ ctx.fillStyle = 'rgb(255, 255, 255)';
+ ctx.fillRect(0, 0, canvas.width, canvas.height);
+ ctx.restore();
+ ctx.scale(PRINT_OUTPUT_SCALE, PRINT_OUTPUT_SCALE);
+
+ var renderContext = {
+ canvasContext: ctx,
+ viewport: viewport,
+ intent: 'print'
+ };
+
+ pdfPage.render(renderContext).promise.then(function() {
+ // Tell the printEngine that rendering this canvas/page has finished.
+ obj.done();
+ }, function(error) {
+ console.error(error);
+ // Tell the printEngine that rendering this canvas/page has failed.
+ // This will make the print proces stop.
+ if ('abort' in obj) {
+ obj.abort();
+ } else {
+ obj.done();
+ }
+ });
+ };
+ },
+ };
+
+ return PDFPageView;
+})();
+
+
+var MAX_TEXT_DIVS_TO_RENDER = 100000;
+
+var NonWhitespaceRegexp = /\S/;
+
+function isAllWhitespace(str) {
+ return !NonWhitespaceRegexp.test(str);
+}
+
+/**
+ * @typedef {Object} TextLayerBuilderOptions
+ * @property {HTMLDivElement} textLayerDiv - The text layer container.
+ * @property {number} pageIndex - The page index.
+ * @property {PageViewport} viewport - The viewport of the text layer.
+ * @property {PDFFindController} findController
+ */
+
+/**
+ * TextLayerBuilder provides text-selection functionality for the PDF.
+ * It does this by creating overlay divs over the PDF text. These divs
+ * contain text that matches the PDF text they are overlaying. This object
+ * also provides a way to highlight text that is being searched for.
+ * @class
+ */
+var TextLayerBuilder = (function TextLayerBuilderClosure() {
+ function TextLayerBuilder(options) {
+ this.textLayerDiv = options.textLayerDiv;
+ this.renderingDone = false;
+ this.divContentDone = false;
+ this.pageIdx = options.pageIndex;
+ this.pageNumber = this.pageIdx + 1;
+ this.matches = [];
+ this.viewport = options.viewport;
+ this.textDivs = [];
+ this.findController = options.findController || null;
+ }
+
+ TextLayerBuilder.prototype = {
+ _finishRendering: function TextLayerBuilder_finishRendering() {
+ this.renderingDone = true;
+
+ var event = document.createEvent('CustomEvent');
+ event.initCustomEvent('textlayerrendered', true, true, {
+ pageNumber: this.pageNumber
+ });
+ this.textLayerDiv.dispatchEvent(event);
+ },
+
+ renderLayer: function TextLayerBuilder_renderLayer() {
+ var textLayerFrag = document.createDocumentFragment();
+ var textDivs = this.textDivs;
+ var textDivsLength = textDivs.length;
+ var canvas = document.createElement('canvas');
+ var ctx = canvas.getContext('2d');
+
+ // No point in rendering many divs as it would make the browser
+ // unusable even after the divs are rendered.
+ if (textDivsLength > MAX_TEXT_DIVS_TO_RENDER) {
+ this._finishRendering();
+ return;
+ }
+
+ var lastFontSize;
+ var lastFontFamily;
+ for (var i = 0; i < textDivsLength; i++) {
+ var textDiv = textDivs[i];
+ if (textDiv.dataset.isWhitespace !== undefined) {
+ continue;
+ }
+
+ var fontSize = textDiv.style.fontSize;
+ var fontFamily = textDiv.style.fontFamily;
+
+ // Only build font string and set to context if different from last.
+ if (fontSize !== lastFontSize || fontFamily !== lastFontFamily) {
+ ctx.font = fontSize + ' ' + fontFamily;
+ lastFontSize = fontSize;
+ lastFontFamily = fontFamily;
+ }
+
+ var width = ctx.measureText(textDiv.textContent).width;
+ if (width > 0) {
+ textLayerFrag.appendChild(textDiv);
+ var transform;
+ if (textDiv.dataset.canvasWidth !== undefined) {
+ // Dataset values come of type string.
+ var textScale = textDiv.dataset.canvasWidth / width;
+ transform = 'scaleX(' + textScale + ')';
+ } else {
+ transform = '';
+ }
+ var rotation = textDiv.dataset.angle;
+ if (rotation) {
+ transform = 'rotate(' + rotation + 'deg) ' + transform;
+ }
+ if (transform) {
+ CustomStyle.setProp('transform' , textDiv, transform);
+ }
+ }
+ }
+
+ this.textLayerDiv.appendChild(textLayerFrag);
+ this._finishRendering();
+ this.updateMatches();
+ },
+
+ /**
+ * Renders the text layer.
+ * @param {number} timeout (optional) if specified, the rendering waits
+ * for specified amount of ms.
+ */
+ render: function TextLayerBuilder_render(timeout) {
+ if (!this.divContentDone || this.renderingDone) {
+ return;
+ }
+
+ if (this.renderTimer) {
+ clearTimeout(this.renderTimer);
+ this.renderTimer = null;
+ }
+
+ if (!timeout) { // Render right away
+ this.renderLayer();
+ } else { // Schedule
+ var self = this;
+ this.renderTimer = setTimeout(function() {
+ self.renderLayer();
+ self.renderTimer = null;
+ }, timeout);
+ }
+ },
+
+ appendText: function TextLayerBuilder_appendText(geom, styles) {
+ var style = styles[geom.fontName];
+ var textDiv = document.createElement('div');
+ this.textDivs.push(textDiv);
+ if (isAllWhitespace(geom.str)) {
+ textDiv.dataset.isWhitespace = true;
+ return;
+ }
+ var tx = PDFJS.Util.transform(this.viewport.transform, geom.transform);
+ var angle = Math.atan2(tx[1], tx[0]);
+ if (style.vertical) {
+ angle += Math.PI / 2;
+ }
+ var fontHeight = Math.sqrt((tx[2] * tx[2]) + (tx[3] * tx[3]));
+ var fontAscent = fontHeight;
+ if (style.ascent) {
+ fontAscent = style.ascent * fontAscent;
+ } else if (style.descent) {
+ fontAscent = (1 + style.descent) * fontAscent;
+ }
+
+ var left;
+ var top;
+ if (angle === 0) {
+ left = tx[4];
+ top = tx[5] - fontAscent;
+ } else {
+ left = tx[4] + (fontAscent * Math.sin(angle));
+ top = tx[5] - (fontAscent * Math.cos(angle));
+ }
+ textDiv.style.left = left + 'px';
+ textDiv.style.top = top + 'px';
+ textDiv.style.fontSize = fontHeight + 'px';
+ textDiv.style.fontFamily = style.fontFamily;
+
+ textDiv.textContent = geom.str;
+ // |fontName| is only used by the Font Inspector. This test will succeed
+ // when e.g. the Font Inspector is off but the Stepper is on, but it's
+ // not worth the effort to do a more accurate test.
+ if (PDFJS.pdfBug) {
+ textDiv.dataset.fontName = geom.fontName;
+ }
+ // Storing into dataset will convert number into string.
+ if (angle !== 0) {
+ textDiv.dataset.angle = angle * (180 / Math.PI);
+ }
+ // We don't bother scaling single-char text divs, because it has very
+ // little effect on text highlighting. This makes scrolling on docs with
+ // lots of such divs a lot faster.
+ if (textDiv.textContent.length > 1) {
+ if (style.vertical) {
+ textDiv.dataset.canvasWidth = geom.height * this.viewport.scale;
+ } else {
+ textDiv.dataset.canvasWidth = geom.width * this.viewport.scale;
+ }
+ }
+ },
+
+ setTextContent: function TextLayerBuilder_setTextContent(textContent) {
+ this.textContent = textContent;
+
+ var textItems = textContent.items;
+ for (var i = 0, len = textItems.length; i < len; i++) {
+ this.appendText(textItems[i], textContent.styles);
+ }
+ this.divContentDone = true;
+ },
+
+ convertMatches: function TextLayerBuilder_convertMatches(matches) {
+ var i = 0;
+ var iIndex = 0;
+ var bidiTexts = this.textContent.items;
+ var end = bidiTexts.length - 1;
+ var queryLen = (this.findController === null ?
+ 0 : this.findController.state.query.length);
+ var ret = [];
+
+ for (var m = 0, len = matches.length; m < len; m++) {
+ // Calculate the start position.
+ var matchIdx = matches[m];
+
+ // Loop over the divIdxs.
+ while (i !== end && matchIdx >= (iIndex + bidiTexts[i].str.length)) {
+ iIndex += bidiTexts[i].str.length;
+ i++;
+ }
+
+ if (i === bidiTexts.length) {
+ console.error('Could not find a matching mapping');
+ }
+
+ var match = {
+ begin: {
+ divIdx: i,
+ offset: matchIdx - iIndex
+ }
+ };
+
+ // Calculate the end position.
+ matchIdx += queryLen;
+
+ // Somewhat the same array as above, but use > instead of >= to get
+ // the end position right.
+ while (i !== end && matchIdx > (iIndex + bidiTexts[i].str.length)) {
+ iIndex += bidiTexts[i].str.length;
+ i++;
+ }
+
+ match.end = {
+ divIdx: i,
+ offset: matchIdx - iIndex
+ };
+ ret.push(match);
+ }
+
+ return ret;
+ },
+
+ renderMatches: function TextLayerBuilder_renderMatches(matches) {
+ // Early exit if there is nothing to render.
+ if (matches.length === 0) {
+ return;
+ }
+
+ var bidiTexts = this.textContent.items;
+ var textDivs = this.textDivs;
+ var prevEnd = null;
+ var pageIdx = this.pageIdx;
+ var isSelectedPage = (this.findController === null ?
+ false : (pageIdx === this.findController.selected.pageIdx));
+ var selectedMatchIdx = (this.findController === null ?
+ -1 : this.findController.selected.matchIdx);
+ var highlightAll = (this.findController === null ?
+ false : this.findController.state.highlightAll);
+ var infinity = {
+ divIdx: -1,
+ offset: undefined
+ };
+
+ function beginText(begin, className) {
+ var divIdx = begin.divIdx;
+ textDivs[divIdx].textContent = '';
+ appendTextToDiv(divIdx, 0, begin.offset, className);
+ }
+
+ function appendTextToDiv(divIdx, fromOffset, toOffset, className) {
+ var div = textDivs[divIdx];
+ var content = bidiTexts[divIdx].str.substring(fromOffset, toOffset);
+ var node = document.createTextNode(content);
+ if (className) {
+ var span = document.createElement('span');
+ span.className = className;
+ span.appendChild(node);
+ div.appendChild(span);
+ return;
+ }
+ div.appendChild(node);
+ }
+
+ var i0 = selectedMatchIdx, i1 = i0 + 1;
+ if (highlightAll) {
+ i0 = 0;
+ i1 = matches.length;
+ } else if (!isSelectedPage) {
+ // Not highlighting all and this isn't the selected page, so do nothing.
+ return;
+ }
+
+ for (var i = i0; i < i1; i++) {
+ var match = matches[i];
+ var begin = match.begin;
+ var end = match.end;
+ var isSelected = (isSelectedPage && i === selectedMatchIdx);
+ var highlightSuffix = (isSelected ? ' selected' : '');
+
+ if (this.findController) {
+ this.findController.updateMatchPosition(pageIdx, i, textDivs,
+ begin.divIdx, end.divIdx);
+ }
+
+ // Match inside new div.
+ if (!prevEnd || begin.divIdx !== prevEnd.divIdx) {
+ // If there was a previous div, then add the text at the end.
+ if (prevEnd !== null) {
+ appendTextToDiv(prevEnd.divIdx, prevEnd.offset, infinity.offset);
+ }
+ // Clear the divs and set the content until the starting point.
+ beginText(begin);
+ } else {
+ appendTextToDiv(prevEnd.divIdx, prevEnd.offset, begin.offset);
+ }
+
+ if (begin.divIdx === end.divIdx) {
+ appendTextToDiv(begin.divIdx, begin.offset, end.offset,
+ 'highlight' + highlightSuffix);
+ } else {
+ appendTextToDiv(begin.divIdx, begin.offset, infinity.offset,
+ 'highlight begin' + highlightSuffix);
+ for (var n0 = begin.divIdx + 1, n1 = end.divIdx; n0 < n1; n0++) {
+ textDivs[n0].className = 'highlight middle' + highlightSuffix;
+ }
+ beginText(end, 'highlight end' + highlightSuffix);
+ }
+ prevEnd = end;
+ }
+
+ if (prevEnd) {
+ appendTextToDiv(prevEnd.divIdx, prevEnd.offset, infinity.offset);
+ }
+ },
+
+ updateMatches: function TextLayerBuilder_updateMatches() {
+ // Only show matches when all rendering is done.
+ if (!this.renderingDone) {
+ return;
+ }
+
+ // Clear all matches.
+ var matches = this.matches;
+ var textDivs = this.textDivs;
+ var bidiTexts = this.textContent.items;
+ var clearedUntilDivIdx = -1;
+
+ // Clear all current matches.
+ for (var i = 0, len = matches.length; i < len; i++) {
+ var match = matches[i];
+ var begin = Math.max(clearedUntilDivIdx, match.begin.divIdx);
+ for (var n = begin, end = match.end.divIdx; n <= end; n++) {
+ var div = textDivs[n];
+ div.textContent = bidiTexts[n].str;
+ div.className = '';
+ }
+ clearedUntilDivIdx = match.end.divIdx + 1;
+ }
+
+ if (this.findController === null || !this.findController.active) {
+ return;
+ }
+
+ // Convert the matches on the page controller into the match format
+ // used for the textLayer.
+ this.matches = this.convertMatches(this.findController === null ?
+ [] : (this.findController.pageMatches[this.pageIdx] || []));
+ this.renderMatches(this.matches);
+ }
+ };
+ return TextLayerBuilder;
+})();
+
+/**
+ * @constructor
+ * @implements IPDFTextLayerFactory
+ */
+function DefaultTextLayerFactory() {}
+DefaultTextLayerFactory.prototype = {
+ /**
+ * @param {HTMLDivElement} textLayerDiv
+ * @param {number} pageIndex
+ * @param {PageViewport} viewport
+ * @returns {TextLayerBuilder}
+ */
+ createTextLayerBuilder: function (textLayerDiv, pageIndex, viewport) {
+ return new TextLayerBuilder({
+ textLayerDiv: textLayerDiv,
+ pageIndex: pageIndex,
+ viewport: viewport
+ });
+ }
+};
+
+
+/**
+ * @typedef {Object} AnnotationsLayerBuilderOptions
+ * @property {HTMLDivElement} pageDiv
+ * @property {PDFPage} pdfPage
+ * @property {IPDFLinkService} linkService
+ */
+
+/**
+ * @class
+ */
+var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
+ /**
+ * @param {AnnotationsLayerBuilderOptions} options
+ * @constructs AnnotationsLayerBuilder
+ */
+ function AnnotationsLayerBuilder(options) {
+ this.pageDiv = options.pageDiv;
+ this.pdfPage = options.pdfPage;
+ this.linkService = options.linkService;
+
+ this.div = null;
+ }
+ AnnotationsLayerBuilder.prototype =
+ /** @lends AnnotationsLayerBuilder.prototype */ {
+
+ /**
+ * @param {PageViewport} viewport
+ */
+ setupAnnotations:
+ function AnnotationsLayerBuilder_setupAnnotations(viewport) {
+ function bindLink(link, dest) {
+ link.href = linkService.getDestinationHash(dest);
+ link.onclick = function annotationsLayerBuilderLinksOnclick() {
+ if (dest) {
+ linkService.navigateTo(dest);
+ }
+ return false;
+ };
+ if (dest) {
+ link.className = 'internalLink';
+ }
+ }
+
+ function bindNamedAction(link, action) {
+ link.href = linkService.getAnchorUrl('');
+ link.onclick = function annotationsLayerBuilderNamedActionOnClick() {
+ linkService.executeNamedAction(action);
+ return false;
+ };
+ link.className = 'internalLink';
+ }
+
+ var linkService = this.linkService;
+ var pdfPage = this.pdfPage;
+ var self = this;
+
+ pdfPage.getAnnotations().then(function (annotationsData) {
+ viewport = viewport.clone({ dontFlip: true });
+ var transform = viewport.transform;
+ var transformStr = 'matrix(' + transform.join(',') + ')';
+ var data, element, i, ii;
+
+ if (self.div) {
+ // If an annotationLayer already exists, refresh its children's
+ // transformation matrices
+ for (i = 0, ii = annotationsData.length; i < ii; i++) {
+ data = annotationsData[i];
+ element = self.div.querySelector(
+ '[data-annotation-id="' + data.id + '"]');
+ if (element) {
+ CustomStyle.setProp('transform', element, transformStr);
+ }
+ }
+ // See PDFPageView.reset()
+ self.div.removeAttribute('hidden');
+ } else {
+ for (i = 0, ii = annotationsData.length; i < ii; i++) {
+ data = annotationsData[i];
+ if (!data || !data.hasHtml) {
+ continue;
+ }
+
+ element = PDFJS.AnnotationUtils.getHtmlElement(data,
+ pdfPage.commonObjs);
+ element.setAttribute('data-annotation-id', data.id);
+ if (typeof mozL10n !== 'undefined') {
+ mozL10n.translate(element);
+ }
+
+ var rect = data.rect;
+ var view = pdfPage.view;
+ rect = PDFJS.Util.normalizeRect([
+ rect[0],
+ view[3] - rect[1] + view[1],
+ rect[2],
+ view[3] - rect[3] + view[1]
+ ]);
+ element.style.left = rect[0] + 'px';
+ element.style.top = rect[1] + 'px';
+ element.style.position = 'absolute';
+
+ CustomStyle.setProp('transform', element, transformStr);
+ var transformOriginStr = -rect[0] + 'px ' + -rect[1] + 'px';
+ CustomStyle.setProp('transformOrigin', element, transformOriginStr);
+
+ if (data.subtype === 'Link' && !data.url) {
+ var link = element.getElementsByTagName('a')[0];
+ if (link) {
+ if (data.action) {
+ bindNamedAction(link, data.action);
+ } else {
+ bindLink(link, ('dest' in data) ? data.dest : null);
+ }
+ }
+ }
+
+ if (!self.div) {
+ var annotationLayerDiv = document.createElement('div');
+ annotationLayerDiv.className = 'annotationLayer';
+ self.pageDiv.appendChild(annotationLayerDiv);
+ self.div = annotationLayerDiv;
+ }
+
+ self.div.appendChild(element);
+ }
+ }
+ });
+ },
+
+ hide: function () {
+ if (!this.div) {
+ return;
+ }
+ this.div.setAttribute('hidden', 'true');
+ }
+ };
+ return AnnotationsLayerBuilder;
+})();
+
+/**
+ * @constructor
+ * @implements IPDFAnnotationsLayerFactory
+ */
+function DefaultAnnotationsLayerFactory() {}
+DefaultAnnotationsLayerFactory.prototype = {
+ /**
+ * @param {HTMLDivElement} pageDiv
+ * @param {PDFPage} pdfPage
+ * @returns {AnnotationsLayerBuilder}
+ */
+ createAnnotationsLayerBuilder: function (pageDiv, pdfPage) {
+ return new AnnotationsLayerBuilder({
+ pageDiv: pageDiv,
+ pdfPage: pdfPage
+ });
+ }
+};
+
+
+/**
+ * @typedef {Object} PDFViewerOptions
+ * @property {HTMLDivElement} container - The container for the viewer element.
+ * @property {HTMLDivElement} viewer - (optional) The viewer element.
+ * @property {IPDFLinkService} linkService - The navigation/linking service.
+ * @property {PDFRenderingQueue} renderingQueue - (optional) The rendering
+ * queue object.
+ * @property {boolean} removePageBorders - (optional) Removes the border shadow
+ * around the pages. The default is false.
+ */
+
+/**
+ * Simple viewer control to display PDF content/pages.
+ * @class
+ * @implements {IRenderableView}
+ */
+var PDFViewer = (function pdfViewer() {
+ function PDFPageViewBuffer(size) {
+ var data = [];
+ this.push = function cachePush(view) {
+ var i = data.indexOf(view);
+ if (i >= 0) {
+ data.splice(i, 1);
+ }
+ data.push(view);
+ if (data.length > size) {
+ data.shift().destroy();
+ }
+ };
+ this.resize = function (newSize) {
+ size = newSize;
+ while (data.length > size) {
+ data.shift().destroy();
+ }
+ };
+ }
+
+ /**
+ * @constructs PDFViewer
+ * @param {PDFViewerOptions} options
+ */
+ function PDFViewer(options) {
+ this.container = options.container;
+ this.viewer = options.viewer || options.container.firstElementChild;
+ this.linkService = options.linkService || new SimpleLinkService(this);
+ this.removePageBorders = options.removePageBorders || false;
+
+ this.defaultRenderingQueue = !options.renderingQueue;
+ if (this.defaultRenderingQueue) {
+ // Custom rendering queue is not specified, using default one
+ this.renderingQueue = new PDFRenderingQueue();
+ this.renderingQueue.setViewer(this);
+ } else {
+ this.renderingQueue = options.renderingQueue;
+ }
+
+ this.scroll = watchScroll(this.container, this._scrollUpdate.bind(this));
+ this.updateInProgress = false;
+ this.presentationModeState = PresentationModeState.UNKNOWN;
+ this._resetView();
+
+ if (this.removePageBorders) {
+ this.viewer.classList.add('removePageBorders');
+ }
+ }
+
+ PDFViewer.prototype = /** @lends PDFViewer.prototype */{
+ get pagesCount() {
+ return this.pages.length;
+ },
+
+ getPageView: function (index) {
+ return this.pages[index];
+ },
+
+ get currentPageNumber() {
+ return this._currentPageNumber;
+ },
+
+ set currentPageNumber(val) {
+ if (!this.pdfDocument) {
+ this._currentPageNumber = val;
+ return;
+ }
+
+ var event = document.createEvent('UIEvents');
+ event.initUIEvent('pagechange', true, true, window, 0);
+ event.updateInProgress = this.updateInProgress;
+
+ if (!(0 < val && val <= this.pagesCount)) {
+ event.pageNumber = this._currentPageNumber;
+ event.previousPageNumber = val;
+ this.container.dispatchEvent(event);
+ return;
+ }
+
+ event.previousPageNumber = this._currentPageNumber;
+ this._currentPageNumber = val;
+ event.pageNumber = val;
+ this.container.dispatchEvent(event);
+ },
+
+ /**
+ * @returns {number}
+ */
+ get currentScale() {
+ return this._currentScale;
+ },
+
+ /**
+ * @param {number} val - Scale of the pages in percents.
+ */
+ set currentScale(val) {
+ if (isNaN(val)) {
+ throw new Error('Invalid numeric scale');
+ }
+ if (!this.pdfDocument) {
+ this._currentScale = val;
+ this._currentScaleValue = val.toString();
+ return;
+ }
+ this._setScale(val, false);
+ },
+
+ /**
+ * @returns {string}
+ */
+ get currentScaleValue() {
+ return this._currentScaleValue;
+ },
+
+ /**
+ * @param val - The scale of the pages (in percent or predefined value).
+ */
+ set currentScaleValue(val) {
+ if (!this.pdfDocument) {
+ this._currentScale = isNaN(val) ? UNKNOWN_SCALE : val;
+ this._currentScaleValue = val;
+ return;
+ }
+ this._setScale(val, false);
+ },
+
+ /**
+ * @returns {number}
+ */
+ get pagesRotation() {
+ return this._pagesRotation;
+ },
+
+ /**
+ * @param {number} rotation - The rotation of the pages (0, 90, 180, 270).
+ */
+ set pagesRotation(rotation) {
+ this._pagesRotation = rotation;
+
+ for (var i = 0, l = this.pages.length; i < l; i++) {
+ var page = this.pages[i];
+ page.update(page.scale, rotation);
+ }
+
+ this._setScale(this._currentScaleValue, true);
+ },
+
+ /**
+ * @param pdfDocument {PDFDocument}
+ */
+ setDocument: function (pdfDocument) {
+ if (this.pdfDocument) {
+ this._resetView();
+ }
+
+ this.pdfDocument = pdfDocument;
+ if (!pdfDocument) {
+ return;
+ }
+
+ var pagesCount = pdfDocument.numPages;
+ var pagesRefMap = this.pagesRefMap = {};
+ var self = this;
+
+ var resolvePagesPromise;
+ var pagesPromise = new Promise(function (resolve) {
+ resolvePagesPromise = resolve;
+ });
+ this.pagesPromise = pagesPromise;
+ pagesPromise.then(function () {
+ var event = document.createEvent('CustomEvent');
+ event.initCustomEvent('pagesloaded', true, true, {
+ pagesCount: pagesCount
+ });
+ self.container.dispatchEvent(event);
+ });
+
+ var isOnePageRenderedResolved = false;
+ var resolveOnePageRendered = null;
+ var onePageRendered = new Promise(function (resolve) {
+ resolveOnePageRendered = resolve;
+ });
+ this.onePageRendered = onePageRendered;
+
+ var bindOnAfterAndBeforeDraw = function (pageView) {
+ pageView.onBeforeDraw = function pdfViewLoadOnBeforeDraw() {
+ // Add the page to the buffer at the start of drawing. That way it can
+ // be evicted from the buffer and destroyed even if we pause its
+ // rendering.
+ self._buffer.push(this);
+ };
+ // when page is painted, using the image as thumbnail base
+ pageView.onAfterDraw = function pdfViewLoadOnAfterDraw() {
+ if (!isOnePageRenderedResolved) {
+ isOnePageRenderedResolved = true;
+ resolveOnePageRendered();
+ }
+ };
+ };
+
+ var firstPagePromise = pdfDocument.getPage(1);
+ this.firstPagePromise = firstPagePromise;
+
+ // Fetch a single page so we can get a viewport that will be the default
+ // viewport for all pages
+ return firstPagePromise.then(function(pdfPage) {
+ var scale = this._currentScale || 1.0;
+ var viewport = pdfPage.getViewport(scale * CSS_UNITS);
+ for (var pageNum = 1; pageNum <= pagesCount; ++pageNum) {
+ var textLayerFactory = null;
+ if (!PDFJS.disableTextLayer) {
+ textLayerFactory = this;
+ }
+ var pageView = new PDFPageView({
+ container: this.viewer,
+ id: pageNum,
+ scale: scale,
+ defaultViewport: viewport.clone(),
+ renderingQueue: this.renderingQueue,
+ textLayerFactory: textLayerFactory,
+ annotationsLayerFactory: this
+ });
+ bindOnAfterAndBeforeDraw(pageView);
+ this.pages.push(pageView);
+ }
+
+ // Fetch all the pages since the viewport is needed before printing
+ // starts to create the correct size canvas. Wait until one page is
+ // rendered so we don't tie up too many resources early on.
+ onePageRendered.then(function () {
+ if (!PDFJS.disableAutoFetch) {
+ var getPagesLeft = pagesCount;
+ for (var pageNum = 1; pageNum <= pagesCount; ++pageNum) {
+ pdfDocument.getPage(pageNum).then(function (pageNum, pdfPage) {
+ var pageView = self.pages[pageNum - 1];
+ if (!pageView.pdfPage) {
+ pageView.setPdfPage(pdfPage);
+ }
+ var refStr = pdfPage.ref.num + ' ' + pdfPage.ref.gen + ' R';
+ pagesRefMap[refStr] = pageNum;
+ getPagesLeft--;
+ if (!getPagesLeft) {
+ resolvePagesPromise();
+ }
+ }.bind(null, pageNum));
+ }
+ } else {
+ // XXX: Printing is semi-broken with auto fetch disabled.
+ resolvePagesPromise();
+ }
+ });
+
+ var event = document.createEvent('CustomEvent');
+ event.initCustomEvent('pagesinit', true, true, null);
+ self.container.dispatchEvent(event);
+
+ if (this.defaultRenderingQueue) {
+ this.update();
+ }
+
+ if (this.findController) {
+ this.findController.resolveFirstPage();
+ }
+ }.bind(this));
+ },
+
+ _resetView: function () {
+ this.pages = [];
+ this._currentPageNumber = 1;
+ this._currentScale = UNKNOWN_SCALE;
+ this._currentScaleValue = null;
+ this._buffer = new PDFPageViewBuffer(DEFAULT_CACHE_SIZE);
+ this.location = null;
+ this._pagesRotation = 0;
+ this._pagesRequests = [];
+
+ var container = this.viewer;
+ while (container.hasChildNodes()) {
+ container.removeChild(container.lastChild);
+ }
+ },
+
+ _scrollUpdate: function () {
+ if (this.pagesCount === 0) {
+ return;
+ }
+ this.update();
+ for (var i = 0, ii = this.pages.length; i < ii; i++) {
+ this.pages[i].updatePosition();
+ }
+ },
+
+ _setScaleDispatchEvent: function pdfViewer_setScaleDispatchEvent(
+ newScale, newValue, preset) {
+ var event = document.createEvent('UIEvents');
+ event.initUIEvent('scalechange', true, true, window, 0);
+ event.scale = newScale;
+ if (preset) {
+ event.presetValue = newValue;
+ }
+ this.container.dispatchEvent(event);
+ },
+
+ _setScaleUpdatePages: function pdfViewer_setScaleUpdatePages(
+ newScale, newValue, noScroll, preset) {
+ this._currentScaleValue = newValue;
+ if (newScale === this._currentScale) {
+ if (preset) {
+ this._setScaleDispatchEvent(newScale, newValue, true);
+ }
+ return;
+ }
+
+ for (var i = 0, ii = this.pages.length; i < ii; i++) {
+ this.pages[i].update(newScale);
+ }
+ this._currentScale = newScale;
+
+ if (!noScroll) {
+ var page = this._currentPageNumber, dest;
+ var inPresentationMode =
+ this.presentationModeState === PresentationModeState.CHANGING ||
+ this.presentationModeState === PresentationModeState.FULLSCREEN;
+ if (this.location && !inPresentationMode &&
+ !IGNORE_CURRENT_POSITION_ON_ZOOM) {
+ page = this.location.pageNumber;
+ dest = [null, { name: 'XYZ' }, this.location.left,
+ this.location.top, null];
+ }
+ this.scrollPageIntoView(page, dest);
+ }
+
+ this._setScaleDispatchEvent(newScale, newValue, preset);
+ },
+
+ _setScale: function pdfViewer_setScale(value, noScroll) {
+ if (value === 'custom') {
+ return;
+ }
+ var scale = parseFloat(value);
+
+ if (scale > 0) {
+ this._setScaleUpdatePages(scale, value, noScroll, false);
+ } else {
+ var currentPage = this.pages[this._currentPageNumber - 1];
+ if (!currentPage) {
+ return;
+ }
+ var inPresentationMode =
+ this.presentationModeState === PresentationModeState.FULLSCREEN;
+ var hPadding = (inPresentationMode || this.removePageBorders) ?
+ 0 : SCROLLBAR_PADDING;
+ var vPadding = (inPresentationMode || this.removePageBorders) ?
+ 0 : VERTICAL_PADDING;
+ var pageWidthScale = (this.container.clientWidth - hPadding) /
+ currentPage.width * currentPage.scale;
+ var pageHeightScale = (this.container.clientHeight - vPadding) /
+ currentPage.height * currentPage.scale;
+ switch (value) {
+ case 'page-actual':
+ scale = 1;
+ break;
+ case 'page-width':
+ scale = pageWidthScale;
+ break;
+ case 'page-height':
+ scale = pageHeightScale;
+ break;
+ case 'page-fit':
+ scale = Math.min(pageWidthScale, pageHeightScale);
+ break;
+ case 'auto':
+ var isLandscape = (currentPage.width > currentPage.height);
+ // For pages in landscape mode, fit the page height to the viewer
+ // *unless* the page would thus become too wide to fit horizontally.
+ var horizontalScale = isLandscape ?
+ Math.min(pageHeightScale, pageWidthScale) : pageWidthScale;
+ scale = Math.min(MAX_AUTO_SCALE, horizontalScale);
+ break;
+ default:
+ console.error('pdfViewSetScale: \'' + value +
+ '\' is an unknown zoom value.');
+ return;
+ }
+ this._setScaleUpdatePages(scale, value, noScroll, true);
+ }
+ },
+
+ /**
+ * Scrolls page into view.
+ * @param {number} pageNumber
+ * @param {Array} dest - (optional) original PDF destination array:
+ * <page-ref> </XYZ|FitXXX> <args..>
+ */
+ scrollPageIntoView: function PDFViewer_scrollPageIntoView(pageNumber,
+ dest) {
+ var pageView = this.pages[pageNumber - 1];
+
+ if (this.presentationModeState ===
+ PresentationModeState.FULLSCREEN) {
+ if (this.linkService.page !== pageView.id) {
+ // Avoid breaking getVisiblePages in presentation mode.
+ this.linkService.page = pageView.id;
+ return;
+ }
+ dest = null;
+ // Fixes the case when PDF has different page sizes.
+ this._setScale(this.currentScaleValue, true);
+ }
+ if (!dest) {
+ scrollIntoView(pageView.div);
+ return;
+ }
+
+ var x = 0, y = 0;
+ var width = 0, height = 0, widthScale, heightScale;
+ var changeOrientation = (pageView.rotation % 180 === 0 ? false : true);
+ var pageWidth = (changeOrientation ? pageView.height : pageView.width) /
+ pageView.scale / CSS_UNITS;
+ var pageHeight = (changeOrientation ? pageView.width : pageView.height) /
+ pageView.scale / CSS_UNITS;
+ var scale = 0;
+ switch (dest[1].name) {
+ case 'XYZ':
+ x = dest[2];
+ y = dest[3];
+ scale = dest[4];
+ // If x and/or y coordinates are not supplied, default to
+ // _top_ left of the page (not the obvious bottom left,
+ // since aligning the bottom of the intended page with the
+ // top of the window is rarely helpful).
+ x = x !== null ? x : 0;
+ y = y !== null ? y : pageHeight;
+ break;
+ case 'Fit':
+ case 'FitB':
+ scale = 'page-fit';
+ break;
+ case 'FitH':
+ case 'FitBH':
+ y = dest[2];
+ scale = 'page-width';
+ break;
+ case 'FitV':
+ case 'FitBV':
+ x = dest[2];
+ width = pageWidth;
+ height = pageHeight;
+ scale = 'page-height';
+ break;
+ case 'FitR':
+ x = dest[2];
+ y = dest[3];
+ width = dest[4] - x;
+ height = dest[5] - y;
+ var viewerContainer = this.container;
+ var hPadding = this.removePageBorders ? 0 : SCROLLBAR_PADDING;
+ var vPadding = this.removePageBorders ? 0 : VERTICAL_PADDING;
+
+ widthScale = (viewerContainer.clientWidth - hPadding) /
+ width / CSS_UNITS;
+ heightScale = (viewerContainer.clientHeight - vPadding) /
+ height / CSS_UNITS;
+ scale = Math.min(Math.abs(widthScale), Math.abs(heightScale));
+ break;
+ default:
+ return;
+ }
+
+ if (scale && scale !== this.currentScale) {
+ this.currentScaleValue = scale;
+ } else if (this.currentScale === UNKNOWN_SCALE) {
+ this.currentScaleValue = DEFAULT_SCALE;
+ }
+
+ if (scale === 'page-fit' && !dest[4]) {
+ scrollIntoView(pageView.div);
+ return;
+ }
+
+ var boundingRect = [
+ pageView.viewport.convertToViewportPoint(x, y),
+ pageView.viewport.convertToViewportPoint(x + width, y + height)
+ ];
+ var left = Math.min(boundingRect[0][0], boundingRect[1][0]);
+ var top = Math.min(boundingRect[0][1], boundingRect[1][1]);
+
+ scrollIntoView(pageView.div, { left: left, top: top });
+ },
+
+ _updateLocation: function (firstPage) {
+ var currentScale = this._currentScale;
+ var currentScaleValue = this._currentScaleValue;
+ var normalizedScaleValue =
+ parseFloat(currentScaleValue) === currentScale ?
+ Math.round(currentScale * 10000) / 100 : currentScaleValue;
+
+ var pageNumber = firstPage.id;
+ var pdfOpenParams = '#page=' + pageNumber;
+ pdfOpenParams += '&zoom=' + normalizedScaleValue;
+ var currentPageView = this.pages[pageNumber - 1];
+ var container = this.container;
+ var topLeft = currentPageView.getPagePoint(
+ (container.scrollLeft - firstPage.x),
+ (container.scrollTop - firstPage.y));
+ var intLeft = Math.round(topLeft[0]);
+ var intTop = Math.round(topLeft[1]);
+ pdfOpenParams += ',' + intLeft + ',' + intTop;
+
+ this.location = {
+ pageNumber: pageNumber,
+ scale: normalizedScaleValue,
+ top: intTop,
+ left: intLeft,
+ pdfOpenParams: pdfOpenParams
+ };
+ },
+
+ update: function () {
+ var visible = this._getVisiblePages();
+ var visiblePages = visible.views;
+ if (visiblePages.length === 0) {
+ return;
+ }
+
+ this.updateInProgress = true;
+
+ var suggestedCacheSize = Math.max(DEFAULT_CACHE_SIZE,
+ 2 * visiblePages.length + 1);
+ this._buffer.resize(suggestedCacheSize);
+
+ this.renderingQueue.renderHighestPriority(visible);
+
+ var currentId = this.currentPageNumber;
+ var firstPage = visible.first;
+
+ for (var i = 0, ii = visiblePages.length, stillFullyVisible = false;
+ i < ii; ++i) {
+ var page = visiblePages[i];
+
+ if (page.percent < 100) {
+ break;
+ }
+ if (page.id === currentId) {
+ stillFullyVisible = true;
+ break;
+ }
+ }
+
+ if (!stillFullyVisible) {
+ currentId = visiblePages[0].id;
+ }
+
+ if (this.presentationModeState !== PresentationModeState.FULLSCREEN) {
+ this.currentPageNumber = currentId;
+ }
+
+ this._updateLocation(firstPage);
+
+ this.updateInProgress = false;
+
+ var event = document.createEvent('UIEvents');
+ event.initUIEvent('updateviewarea', true, true, window, 0);
+ this.container.dispatchEvent(event);
+ },
+
+ containsElement: function (element) {
+ return this.container.contains(element);
+ },
+
+ focus: function () {
+ this.container.focus();
+ },
+
+ blur: function () {
+ this.container.blur();
+ },
+
+ get isHorizontalScrollbarEnabled() {
+ return (this.presentationModeState === PresentationModeState.FULLSCREEN ?
+ false : (this.container.scrollWidth > this.container.clientWidth));
+ },
+
+ _getVisiblePages: function () {
+ if (this.presentationModeState !== PresentationModeState.FULLSCREEN) {
+ return getVisibleElements(this.container, this.pages, true);
+ } else {
+ // The algorithm in getVisibleElements doesn't work in all browsers and
+ // configurations when presentation mode is active.
+ var visible = [];
+ var currentPage = this.pages[this._currentPageNumber - 1];
+ visible.push({ id: currentPage.id, view: currentPage });
+ return { first: currentPage, last: currentPage, views: visible };
+ }
+ },
+
+ cleanup: function () {
+ for (var i = 0, ii = this.pages.length; i < ii; i++) {
+ if (this.pages[i] &&
+ this.pages[i].renderingState !== RenderingStates.FINISHED) {
+ this.pages[i].reset();
+ }
+ }
+ },
+
+ /**
+ * @param {PDFPageView} pageView
+ * @returns {PDFPage}
+ * @private
+ */
+ _ensurePdfPageLoaded: function (pageView) {
+ if (pageView.pdfPage) {
+ return Promise.resolve(pageView.pdfPage);
+ }
+ var pageNumber = pageView.id;
+ if (this._pagesRequests[pageNumber]) {
+ return this._pagesRequests[pageNumber];
+ }
+ var promise = this.pdfDocument.getPage(pageNumber).then(
+ function (pdfPage) {
+ pageView.setPdfPage(pdfPage);
+ this._pagesRequests[pageNumber] = null;
+ return pdfPage;
+ }.bind(this));
+ this._pagesRequests[pageNumber] = promise;
+ return promise;
+ },
+
+ forceRendering: function (currentlyVisiblePages) {
+ var visiblePages = currentlyVisiblePages || this._getVisiblePages();
+ var pageView = this.renderingQueue.getHighestPriority(visiblePages,
+ this.pages,
+ this.scroll.down);
+ if (pageView) {
+ this._ensurePdfPageLoaded(pageView).then(function () {
+ this.renderingQueue.renderView(pageView);
+ }.bind(this));
+ return true;
+ }
+ return false;
+ },
+
+ getPageTextContent: function (pageIndex) {
+ return this.pdfDocument.getPage(pageIndex + 1).then(function (page) {
+ return page.getTextContent();
+ });
+ },
+
+ /**
+ * @param {HTMLDivElement} textLayerDiv
+ * @param {number} pageIndex
+ * @param {PageViewport} viewport
+ * @returns {TextLayerBuilder}
+ */
+ createTextLayerBuilder: function (textLayerDiv, pageIndex, viewport) {
+ var isViewerInPresentationMode =
+ this.presentationModeState === PresentationModeState.FULLSCREEN;
+ return new TextLayerBuilder({
+ textLayerDiv: textLayerDiv,
+ pageIndex: pageIndex,
+ viewport: viewport,
+ findController: isViewerInPresentationMode ? null : this.findController
+ });
+ },
+
+ /**
+ * @param {HTMLDivElement} pageDiv
+ * @param {PDFPage} pdfPage
+ * @returns {AnnotationsLayerBuilder}
+ */
+ createAnnotationsLayerBuilder: function (pageDiv, pdfPage) {
+ return new AnnotationsLayerBuilder({
+ pageDiv: pageDiv,
+ pdfPage: pdfPage,
+ linkService: this.linkService
+ });
+ },
+
+ setFindController: function (findController) {
+ this.findController = findController;
+ },
+ };
+
+ return PDFViewer;
+})();
+
+var SimpleLinkService = (function SimpleLinkServiceClosure() {
+ function SimpleLinkService(pdfViewer) {
+ this.pdfViewer = pdfViewer;
+ }
+ SimpleLinkService.prototype = {
+ /**
+ * @returns {number}
+ */
+ get page() {
+ return this.pdfViewer.currentPageNumber;
+ },
+ /**
+ * @param {number} value
+ */
+ set page(value) {
+ this.pdfViewer.currentPageNumber = value;
+ },
+ /**
+ * @param dest - The PDF destination object.
+ */
+ navigateTo: function (dest) {},
+ /**
+ * @param dest - The PDF destination object.
+ * @returns {string} The hyperlink to the PDF object.
+ */
+ getDestinationHash: function (dest) {
+ return '#';
+ },
+ /**
+ * @param hash - The PDF parameters/hash.
+ * @returns {string} The hyperlink to the PDF object.
+ */
+ getAnchorUrl: function (hash) {
+ return '#';
+ },
+ /**
+ * @param {string} hash
+ */
+ setHash: function (hash) {},
+ /**
+ * @param {string} action
+ */
+ executeNamedAction: function (action) {},
+ };
+ return SimpleLinkService;
+})();
+
+
+var THUMBNAIL_SCROLL_MARGIN = -19;
+
+
+var THUMBNAIL_WIDTH = 98; // px
+var THUMBNAIL_CANVAS_BORDER_WIDTH = 1; // px
+
+/**
+ * @typedef {Object} PDFThumbnailViewOptions
+ * @property {HTMLDivElement} container - The viewer element.
+ * @property {number} id - The thumbnail's unique ID (normally its number).
+ * @property {PageViewport} defaultViewport - The page viewport.
+ * @property {IPDFLinkService} linkService - The navigation/linking service.
+ * @property {PDFRenderingQueue} renderingQueue - The rendering queue object.
+ */
+
+/**
+ * @class
+ * @implements {IRenderableView}
+ */
+var PDFThumbnailView = (function PDFThumbnailViewClosure() {
+ function getTempCanvas(width, height) {
+ var tempCanvas = PDFThumbnailView.tempImageCache;
+ if (!tempCanvas) {
+ tempCanvas = document.createElement('canvas');
+ PDFThumbnailView.tempImageCache = tempCanvas;
+ }
+ tempCanvas.width = width;
+ tempCanvas.height = height;
+
+ // Since this is a temporary canvas, we need to fill the canvas with a white
+ // background ourselves. |_getPageDrawContext| uses CSS rules for this.
+ var ctx = tempCanvas.getContext('2d');
+ ctx.save();
+ ctx.fillStyle = 'rgb(255, 255, 255)';
+ ctx.fillRect(0, 0, width, height);
+ ctx.restore();
+ return tempCanvas;
+ }
+
+ /**
+ * @constructs PDFThumbnailView
+ * @param {PDFThumbnailViewOptions} options
+ */
+ function PDFThumbnailView(options) {
+ var container = options.container;
+ var id = options.id;
+ var defaultViewport = options.defaultViewport;
+ var linkService = options.linkService;
+ var renderingQueue = options.renderingQueue;
+
+ this.id = id;
+ this.renderingId = 'thumbnail' + id;
+
+ this.pdfPage = null;
+ this.rotation = 0;
+ this.viewport = defaultViewport;
+ this.pdfPageRotate = defaultViewport.rotation;
+
+ this.linkService = linkService;
+ this.renderingQueue = renderingQueue;
+
+ this.hasImage = false;
+ this.resume = null;
+ this.renderingState = RenderingStates.INITIAL;
+
+ this.pageWidth = this.viewport.width;
+ this.pageHeight = this.viewport.height;
+ this.pageRatio = this.pageWidth / this.pageHeight;
+
+ this.canvasWidth = THUMBNAIL_WIDTH;
+ this.canvasHeight = (this.canvasWidth / this.pageRatio) | 0;
+ this.scale = this.canvasWidth / this.pageWidth;
+
+ var anchor = document.createElement('a');
+ anchor.href = linkService.getAnchorUrl('#page=' + id);
+ anchor.title = mozL10n.get('thumb_page_title', {page: id}, 'Page {{page}}');
+ anchor.onclick = function stopNavigation() {
+ linkService.page = id;
+ return false;
+ };
+
+ var div = document.createElement('div');
+ div.id = 'thumbnailContainer' + id;
+ div.className = 'thumbnail';
+ this.div = div;
+
+ if (id === 1) {
+ // Highlight the thumbnail of the first page when no page number is
+ // specified (or exists in cache) when the document is loaded.
+ div.classList.add('selected');
+ }
+
+ var ring = document.createElement('div');
+ ring.className = 'thumbnailSelectionRing';
+ var borderAdjustment = 2 * THUMBNAIL_CANVAS_BORDER_WIDTH;
+ ring.style.width = this.canvasWidth + borderAdjustment + 'px';
+ ring.style.height = this.canvasHeight + borderAdjustment + 'px';
+ this.ring = ring;
+
+ div.appendChild(ring);
+ anchor.appendChild(div);
+ container.appendChild(anchor);
+ }
+
+ PDFThumbnailView.prototype = {
+ setPdfPage: function PDFThumbnailView_setPdfPage(pdfPage) {
+ this.pdfPage = pdfPage;
+ this.pdfPageRotate = pdfPage.rotate;
+ var totalRotation = (this.rotation + this.pdfPageRotate) % 360;
+ this.viewport = pdfPage.getViewport(1, totalRotation);
+ this.reset();
+ },
+
+ reset: function PDFThumbnailView_reset() {
+ if (this.renderTask) {
+ this.renderTask.cancel();
+ }
+ this.hasImage = false;
+ this.resume = null;
+ this.renderingState = RenderingStates.INITIAL;
+
+ this.pageWidth = this.viewport.width;
+ this.pageHeight = this.viewport.height;
+ this.pageRatio = this.pageWidth / this.pageHeight;
+
+ this.canvasHeight = (this.canvasWidth / this.pageRatio) | 0;
+ this.scale = (this.canvasWidth / this.pageWidth);
+
+ this.div.removeAttribute('data-loaded');
+ var ring = this.ring;
+ var childNodes = ring.childNodes;
+ for (var i = childNodes.length - 1; i >= 0; i--) {
+ ring.removeChild(childNodes[i]);
+ }
+ var borderAdjustment = 2 * THUMBNAIL_CANVAS_BORDER_WIDTH;
+ ring.style.width = this.canvasWidth + borderAdjustment + 'px';
+ ring.style.height = this.canvasHeight + borderAdjustment + 'px';
+
+ if (this.canvas) {
+ // Zeroing the width and height causes Firefox to release graphics
+ // resources immediately, which can greatly reduce memory consumption.
+ this.canvas.width = 0;
+ this.canvas.height = 0;
+ delete this.canvas;
+ }
+ },
+
+ update: function PDFThumbnailView_update(rotation) {
+ if (typeof rotation !== 'undefined') {
+ this.rotation = rotation;
+ }
+ var totalRotation = (this.rotation + this.pdfPageRotate) % 360;
+ this.viewport = this.viewport.clone({
+ scale: 1,
+ rotation: totalRotation
+ });
+ this.reset();
+ },
+
+ /**
+ * @private
+ */
+ _getPageDrawContext: function PDFThumbnailView_getPageDrawContext() {
+ var canvas = document.createElement('canvas');
+ canvas.id = this.renderingId;
+
+ canvas.width = this.canvasWidth;
+ canvas.height = this.canvasHeight;
+ canvas.className = 'thumbnailImage';
+ canvas.setAttribute('aria-label', mozL10n.get('thumb_page_canvas',
+ {page: this.id}, 'Thumbnail of Page {{page}}'));
+
+ this.canvas = canvas;
+ this.div.setAttribute('data-loaded', true);
+ this.ring.appendChild(canvas);
+
+ return canvas.getContext('2d');
+ },
+
+ draw: function PDFThumbnailView_draw() {
+ if (this.renderingState !== RenderingStates.INITIAL) {
+ console.error('Must be in new state before drawing');
+ }
+ if (this.hasImage) {
+ return Promise.resolve(undefined);
+ }
+ this.hasImage = true;
+ this.renderingState = RenderingStates.RUNNING;
+
+ var resolveRenderPromise, rejectRenderPromise;
+ var promise = new Promise(function (resolve, reject) {
+ resolveRenderPromise = resolve;
+ rejectRenderPromise = reject;
+ });
+
+ var self = this;
+ function thumbnailDrawCallback(error) {
+ // The renderTask may have been replaced by a new one, so only remove
+ // the reference to the renderTask if it matches the one that is
+ // triggering this callback.
+ if (renderTask === self.renderTask) {
+ self.renderTask = null;
+ }
+ if (error === 'cancelled') {
+ rejectRenderPromise(error);
+ return;
+ }
+ self.renderingState = RenderingStates.FINISHED;
+
+ if (!error) {
+ resolveRenderPromise(undefined);
+ } else {
+ rejectRenderPromise(error);
+ }
+ }
+
+ var ctx = this._getPageDrawContext();
+ var drawViewport = this.viewport.clone({ scale: this.scale });
+ var renderContinueCallback = function renderContinueCallback(cont) {
+ if (!self.renderingQueue.isHighestPriority(self)) {
+ self.renderingState = RenderingStates.PAUSED;
+ self.resume = function resumeCallback() {
+ self.renderingState = RenderingStates.RUNNING;
+ cont();
+ };
+ return;
+ }
+ cont();
+ };
+
+ var renderContext = {
+ canvasContext: ctx,
+ viewport: drawViewport,
+ continueCallback: renderContinueCallback
+ };
+ var renderTask = this.renderTask = this.pdfPage.render(renderContext);
+
+ renderTask.promise.then(
+ function pdfPageRenderCallback() {
+ thumbnailDrawCallback(null);
+ },
+ function pdfPageRenderError(error) {
+ thumbnailDrawCallback(error);
+ }
+ );
+ return promise;
+ },
+
+ setImage: function PDFThumbnailView_setImage(pageView) {
+ var img = pageView.canvas;
+ if (this.hasImage || !img) {
+ return;
+ }
+ if (!this.pdfPage) {
+ this.setPdfPage(pageView.pdfPage);
+ }
+ this.hasImage = true;
+ this.renderingState = RenderingStates.FINISHED;
+
+ var ctx = this._getPageDrawContext();
+ var canvas = ctx.canvas;
+
+ if (img.width <= 2 * canvas.width) {
+ ctx.drawImage(img, 0, 0, img.width, img.height,
+ 0, 0, canvas.width, canvas.height);
+ return;
+ }
+ // drawImage does an awful job of rescaling the image, doing it gradually.
+ var MAX_NUM_SCALING_STEPS = 3;
+ var reducedWidth = canvas.width << MAX_NUM_SCALING_STEPS;
+ var reducedHeight = canvas.height << MAX_NUM_SCALING_STEPS;
+ var reducedImage = getTempCanvas(reducedWidth, reducedHeight);
+ var reducedImageCtx = reducedImage.getContext('2d');
+
+ while (reducedWidth > img.width || reducedHeight > img.height) {
+ reducedWidth >>= 1;
+ reducedHeight >>= 1;
+ }
+ reducedImageCtx.drawImage(img, 0, 0, img.width, img.height,
+ 0, 0, reducedWidth, reducedHeight);
+ while (reducedWidth > 2 * canvas.width) {
+ reducedImageCtx.drawImage(reducedImage,
+ 0, 0, reducedWidth, reducedHeight,
+ 0, 0, reducedWidth >> 1, reducedHeight >> 1);
+ reducedWidth >>= 1;
+ reducedHeight >>= 1;
+ }
+ ctx.drawImage(reducedImage, 0, 0, reducedWidth, reducedHeight,
+ 0, 0, canvas.width, canvas.height);
+ }
+ };
+
+ return PDFThumbnailView;
+})();
+
+PDFThumbnailView.tempImageCache = null;
+
+
+/**
+ * @typedef {Object} PDFThumbnailViewerOptions
+ * @property {HTMLDivElement} container - The container for the thumbnail
+ * elements.
+ * @property {IPDFLinkService} linkService - The navigation/linking service.
+ * @property {PDFRenderingQueue} renderingQueue - The rendering queue object.
+ */
+
+/**
+ * Simple viewer control to display thumbnails for pages.
+ * @class
+ * @implements {IRenderableView}
+ */
+var PDFThumbnailViewer = (function PDFThumbnailViewerClosure() {
+ /**
+ * @constructs PDFThumbnailViewer
+ * @param {PDFThumbnailViewerOptions} options
+ */
+ function PDFThumbnailViewer(options) {
+ this.container = options.container;
+ this.renderingQueue = options.renderingQueue;
+ this.linkService = options.linkService;
+
+ this.scroll = watchScroll(this.container, this._scrollUpdated.bind(this));
+ this._resetView();
+ }
+
+ PDFThumbnailViewer.prototype = {
+ /**
+ * @private
+ */
+ _scrollUpdated: function PDFThumbnailViewer_scrollUpdated() {
+ this.renderingQueue.renderHighestPriority();
+ },
+
+ getThumbnail: function PDFThumbnailViewer_getThumbnail(index) {
+ return this.thumbnails[index];
+ },
+
+ /**
+ * @private
+ */
+ _getVisibleThumbs: function PDFThumbnailViewer_getVisibleThumbs() {
+ return getVisibleElements(this.container, this.thumbnails);
+ },
+
+ scrollThumbnailIntoView:
+ function PDFThumbnailViewer_scrollThumbnailIntoView(page) {
+ var selected = document.querySelector('.thumbnail.selected');
+ if (selected) {
+ selected.classList.remove('selected');
+ }
+ var thumbnail = document.getElementById('thumbnailContainer' + page);
+ if (thumbnail) {
+ thumbnail.classList.add('selected');
+ }
+ var visibleThumbs = this._getVisibleThumbs();
+ var numVisibleThumbs = visibleThumbs.views.length;
+
+ // If the thumbnail isn't currently visible, scroll it into view.
+ if (numVisibleThumbs > 0) {
+ var first = visibleThumbs.first.id;
+ // Account for only one thumbnail being visible.
+ var last = (numVisibleThumbs > 1 ? visibleThumbs.last.id : first);
+ if (page <= first || page >= last) {
+ scrollIntoView(thumbnail, { top: THUMBNAIL_SCROLL_MARGIN });
+ }
+ }
+ },
+
+ get pagesRotation() {
+ return this._pagesRotation;
+ },
+
+ set pagesRotation(rotation) {
+ this._pagesRotation = rotation;
+ for (var i = 0, l = this.thumbnails.length; i < l; i++) {
+ var thumb = this.thumbnails[i];
+ thumb.update(rotation);
+ }
+ },
+
+ cleanup: function PDFThumbnailViewer_cleanup() {
+ var tempCanvas = PDFThumbnailView.tempImageCache;
+ if (tempCanvas) {
+ // Zeroing the width and height causes Firefox to release graphics
+ // resources immediately, which can greatly reduce memory consumption.
+ tempCanvas.width = 0;
+ tempCanvas.height = 0;
+ }
+ PDFThumbnailView.tempImageCache = null;
+ },
+
+ /**
+ * @private
+ */
+ _resetView: function PDFThumbnailViewer_resetView() {
+ this.thumbnails = [];
+ this._pagesRotation = 0;
+ this._pagesRequests = [];
+ },
+
+ setDocument: function PDFThumbnailViewer_setDocument(pdfDocument) {
+ if (this.pdfDocument) {
+ // cleanup of the elements and views
+ var thumbsView = this.container;
+ while (thumbsView.hasChildNodes()) {
+ thumbsView.removeChild(thumbsView.lastChild);
+ }
+ this._resetView();
+ }
+
+ this.pdfDocument = pdfDocument;
+ if (!pdfDocument) {
+ return Promise.resolve();
+ }
+
+ return pdfDocument.getPage(1).then(function (firstPage) {
+ var pagesCount = pdfDocument.numPages;
+ var viewport = firstPage.getViewport(1.0);
+ for (var pageNum = 1; pageNum <= pagesCount; ++pageNum) {
+ var thumbnail = new PDFThumbnailView({
+ container: this.container,
+ id: pageNum,
+ defaultViewport: viewport.clone(),
+ linkService: this.linkService,
+ renderingQueue: this.renderingQueue
+ });
+ this.thumbnails.push(thumbnail);
+ }
+ }.bind(this));
+ },
+
+ /**
+ * @param {PDFPageView} pageView
+ * @returns {PDFPage}
+ * @private
+ */
+ _ensurePdfPageLoaded:
+ function PDFThumbnailViewer_ensurePdfPageLoaded(thumbView) {
+ if (thumbView.pdfPage) {
+ return Promise.resolve(thumbView.pdfPage);
+ }
+ var pageNumber = thumbView.id;
+ if (this._pagesRequests[pageNumber]) {
+ return this._pagesRequests[pageNumber];
+ }
+ var promise = this.pdfDocument.getPage(pageNumber).then(
+ function (pdfPage) {
+ thumbView.setPdfPage(pdfPage);
+ this._pagesRequests[pageNumber] = null;
+ return pdfPage;
+ }.bind(this));
+ this._pagesRequests[pageNumber] = promise;
+ return promise;
+ },
+
+ ensureThumbnailVisible:
+ function PDFThumbnailViewer_ensureThumbnailVisible(page) {
+ // Ensure that the thumbnail of the current page is visible
+ // when switching from another view.
+ scrollIntoView(document.getElementById('thumbnailContainer' + page));
+ },
+
+ forceRendering: function () {
+ var visibleThumbs = this._getVisibleThumbs();
+ var thumbView = this.renderingQueue.getHighestPriority(visibleThumbs,
+ this.thumbnails,
+ this.scroll.down);
+ if (thumbView) {
+ this._ensurePdfPageLoaded(thumbView).then(function () {
+ this.renderingQueue.renderView(thumbView);
+ }.bind(this));
+ return true;
+ }
+ return false;
+ }
+ };
+
+ return PDFThumbnailViewer;
+})();
+
+
+/**
+ * @typedef {Object} PDFOutlineViewOptions
+ * @property {HTMLDivElement} container - The viewer element.
+ * @property {Array} outline - An array of outline objects.
+ * @property {IPDFLinkService} linkService - The navigation/linking service.
+ */
+
+/**
+ * @class
+ */
+var PDFOutlineView = (function PDFOutlineViewClosure() {
+ /**
+ * @constructs PDFOutlineView
+ * @param {PDFOutlineViewOptions} options
+ */
+ function PDFOutlineView(options) {
+ this.container = options.container;
+ this.outline = options.outline;
+ this.linkService = options.linkService;
+ }
+
+ PDFOutlineView.prototype = {
+ reset: function PDFOutlineView_reset() {
+ var container = this.container;
+ while (container.firstChild) {
+ container.removeChild(container.firstChild);
+ }
+ },
+
+ /**
+ * @private
+ */
+ _dispatchEvent: function PDFOutlineView_dispatchEvent(outlineCount) {
+ var event = document.createEvent('CustomEvent');
+ event.initCustomEvent('outlineloaded', true, true, {
+ outlineCount: outlineCount
+ });
+ this.container.dispatchEvent(event);
+ },
+
+ /**
+ * @private
+ */
+ _bindLink: function PDFOutlineView_bindLink(element, item) {
+ var linkService = this.linkService;
+ element.href = linkService.getDestinationHash(item.dest);
+ element.onclick = function goToDestination(e) {
+ linkService.navigateTo(item.dest);
+ return false;
+ };
+ },
+
+ render: function PDFOutlineView_render() {
+ var outline = this.outline;
+ var outlineCount = 0;
+
+ this.reset();
+
+ if (!outline) {
+ this._dispatchEvent(outlineCount);
+ return;
+ }
+
+ var queue = [{ parent: this.container, items: this.outline }];
+ while (queue.length > 0) {
+ var levelData = queue.shift();
+ for (var i = 0, len = levelData.items.length; i < len; i++) {
+ var item = levelData.items[i];
+ var div = document.createElement('div');
+ div.className = 'outlineItem';
+ var element = document.createElement('a');
+ this._bindLink(element, item);
+ element.textContent = item.title;
+ div.appendChild(element);
+
+ if (item.items.length > 0) {
+ var itemsDiv = document.createElement('div');
+ itemsDiv.className = 'outlineItems';
+ div.appendChild(itemsDiv);
+ queue.push({ parent: itemsDiv, items: item.items });
+ }
+
+ levelData.parent.appendChild(div);
+ outlineCount++;
+ }
+ }
+
+ this._dispatchEvent(outlineCount);
+ }
+ };
+
+ return PDFOutlineView;
+})();
+
+
+/**
+ * @typedef {Object} PDFAttachmentViewOptions
+ * @property {HTMLDivElement} container - The viewer element.
+ * @property {Array} attachments - An array of attachment objects.
+ * @property {DownloadManager} downloadManager - The download manager.
+ */
+
+/**
+ * @class
+ */
+var PDFAttachmentView = (function PDFAttachmentViewClosure() {
+ /**
+ * @constructs PDFAttachmentView
+ * @param {PDFAttachmentViewOptions} options
+ */
+ function PDFAttachmentView(options) {
+ this.container = options.container;
+ this.attachments = options.attachments;
+ this.downloadManager = options.downloadManager;
+ }
+
+ PDFAttachmentView.prototype = {
+ reset: function PDFAttachmentView_reset() {
+ var container = this.container;
+ while (container.firstChild) {
+ container.removeChild(container.firstChild);
+ }
+ },
+
+ /**
+ * @private
+ */
+ _dispatchEvent: function PDFAttachmentView_dispatchEvent(attachmentsCount) {
+ var event = document.createEvent('CustomEvent');
+ event.initCustomEvent('attachmentsloaded', true, true, {
+ attachmentsCount: attachmentsCount
+ });
+ this.container.dispatchEvent(event);
+ },
+
+ /**
+ * @private
+ */
+ _bindLink: function PDFAttachmentView_bindLink(button, content, filename) {
+ button.onclick = function downloadFile(e) {
+ this.downloadManager.downloadData(content, filename, '');
+ return false;
+ }.bind(this);
+ },
+
+ render: function PDFAttachmentView_render() {
+ var attachments = this.attachments;
+ var attachmentsCount = 0;
+
+ this.reset();
+
+ if (!attachments) {
+ this._dispatchEvent(attachmentsCount);
+ return;
+ }
+
+ var names = Object.keys(attachments).sort(function(a, b) {
+ return a.toLowerCase().localeCompare(b.toLowerCase());
+ });
+ attachmentsCount = names.length;
+
+ for (var i = 0; i < attachmentsCount; i++) {
+ var item = attachments[names[i]];
+ var filename = getFileName(item.filename);
+ var div = document.createElement('div');
+ div.className = 'attachmentsItem';
+ var button = document.createElement('button');
+ this._bindLink(button, item.content, filename);
+ button.textContent = filename;
+ div.appendChild(button);
+ this.container.appendChild(div);
+ }
+
+ this._dispatchEvent(attachmentsCount);
+ }
+ };
+
+ return PDFAttachmentView;
+})();
+
+
+var PDFViewerApplication = {
+ initialBookmark: document.location.hash.substring(1),
+ initialized: false,
+ fellback: false,
+ pdfDocument: null,
+ sidebarOpen: false,
+ printing: false,
+ /** @type {PDFViewer} */
+ pdfViewer: null,
+ /** @type {PDFThumbnailViewer} */
+ pdfThumbnailViewer: null,
+ /** @type {PDFRenderingQueue} */
+ pdfRenderingQueue: null,
+ pageRotation: 0,
+ updateScaleControls: true,
+ isInitialViewSet: false,
+ animationStartedPromise: null,
+ mouseScrollTimeStamp: 0,
+ mouseScrollDelta: 0,
+ preferenceSidebarViewOnLoad: SidebarView.NONE,
+ preferencePdfBugEnabled: false,
+ preferenceShowPreviousViewOnLoad: true,
+ preferenceDefaultZoomValue: '',
+ isViewerEmbedded: (window.parent !== window),
+ url: '',
+
+ // called once when the document is loaded
+ initialize: function pdfViewInitialize() {
+ var pdfRenderingQueue = new PDFRenderingQueue();
+ pdfRenderingQueue.onIdle = this.cleanup.bind(this);
+ this.pdfRenderingQueue = pdfRenderingQueue;
+
+ var container = document.getElementById('viewerContainer');
+ var viewer = document.getElementById('viewer');
+ this.pdfViewer = new PDFViewer({
+ container: container,
+ viewer: viewer,
+ renderingQueue: pdfRenderingQueue,
+ linkService: this
+ });
+ pdfRenderingQueue.setViewer(this.pdfViewer);
+
+ var thumbnailContainer = document.getElementById('thumbnailView');
+ this.pdfThumbnailViewer = new PDFThumbnailViewer({
+ container: thumbnailContainer,
+ renderingQueue: pdfRenderingQueue,
+ linkService: this
+ });
+ pdfRenderingQueue.setThumbnailViewer(this.pdfThumbnailViewer);
+
+ Preferences.initialize();
+
+ this.findController = new PDFFindController({
+ pdfViewer: this.pdfViewer,
+ integratedFind: this.supportsIntegratedFind
+ });
+ this.pdfViewer.setFindController(this.findController);
+
+ this.findBar = new PDFFindBar({
+ bar: document.getElementById('findbar'),
+ toggleButton: document.getElementById('viewFind'),
+ findField: document.getElementById('findInput'),
+ highlightAllCheckbox: document.getElementById('findHighlightAll'),
+ caseSensitiveCheckbox: document.getElementById('findMatchCase'),
+ findMsg: document.getElementById('findMsg'),
+ findStatusIcon: document.getElementById('findStatusIcon'),
+ findPreviousButton: document.getElementById('findPrevious'),
+ findNextButton: document.getElementById('findNext'),
+ findController: this.findController
+ });
+
+ this.findController.setFindBar(this.findBar);
+
+ HandTool.initialize({
+ container: container,
+ toggleHandTool: document.getElementById('toggleHandTool')
+ });
+
+ SecondaryToolbar.initialize({
+ toolbar: document.getElementById('secondaryToolbar'),
+ presentationMode: PresentationMode,
+ toggleButton: document.getElementById('secondaryToolbarToggle'),
+ presentationModeButton:
+ document.getElementById('secondaryPresentationMode'),
+ openFile: document.getElementById('secondaryOpenFile'),
+ print: document.getElementById('secondaryPrint'),
+ download: document.getElementById('secondaryDownload'),
+ viewBookmark: document.getElementById('secondaryViewBookmark'),
+ firstPage: document.getElementById('firstPage'),
+ lastPage: document.getElementById('lastPage'),
+ pageRotateCw: document.getElementById('pageRotateCw'),
+ pageRotateCcw: document.getElementById('pageRotateCcw'),
+ documentProperties: DocumentProperties,
+ documentPropertiesButton: document.getElementById('documentProperties')
+ });
+
+ PresentationMode.initialize({
+ container: container,
+ secondaryToolbar: SecondaryToolbar,
+ firstPage: document.getElementById('contextFirstPage'),
+ lastPage: document.getElementById('contextLastPage'),
+ pageRotateCw: document.getElementById('contextPageRotateCw'),
+ pageRotateCcw: document.getElementById('contextPageRotateCcw')
+ });
+
+ PasswordPrompt.initialize({
+ overlayName: 'passwordOverlay',
+ passwordField: document.getElementById('password'),
+ passwordText: document.getElementById('passwordText'),
+ passwordSubmit: document.getElementById('passwordSubmit'),
+ passwordCancel: document.getElementById('passwordCancel')
+ });
+
+ DocumentProperties.initialize({
+ overlayName: 'documentPropertiesOverlay',
+ closeButton: document.getElementById('documentPropertiesClose'),
+ fileNameField: document.getElementById('fileNameField'),
+ fileSizeField: document.getElementById('fileSizeField'),
+ titleField: document.getElementById('titleField'),
+ authorField: document.getElementById('authorField'),
+ subjectField: document.getElementById('subjectField'),
+ keywordsField: document.getElementById('keywordsField'),
+ creationDateField: document.getElementById('creationDateField'),
+ modificationDateField: document.getElementById('modificationDateField'),
+ creatorField: document.getElementById('creatorField'),
+ producerField: document.getElementById('producerField'),
+ versionField: document.getElementById('versionField'),
+ pageCountField: document.getElementById('pageCountField')
+ });
+
+ var self = this;
+ var initializedPromise = Promise.all([
+ Preferences.get('enableWebGL').then(function resolved(value) {
+ PDFJS.disableWebGL = !value;
+ }),
+ Preferences.get('sidebarViewOnLoad').then(function resolved(value) {
+ self.preferenceSidebarViewOnLoad = value;
+ }),
+ Preferences.get('pdfBugEnabled').then(function resolved(value) {
+ self.preferencePdfBugEnabled = value;
+ }),
+ Preferences.get('showPreviousViewOnLoad').then(function resolved(value) {
+ self.preferenceShowPreviousViewOnLoad = value;
+ }),
+ Preferences.get('defaultZoomValue').then(function resolved(value) {
+ self.preferenceDefaultZoomValue = value;
+ }),
+ Preferences.get('disableTextLayer').then(function resolved(value) {
+ if (PDFJS.disableTextLayer === true) {
+ return;
+ }
+ PDFJS.disableTextLayer = value;
+ }),
+ Preferences.get('disableRange').then(function resolved(value) {
+ if (PDFJS.disableRange === true) {
+ return;
+ }
+ PDFJS.disableRange = value;
+ }),
+ Preferences.get('disableAutoFetch').then(function resolved(value) {
+ PDFJS.disableAutoFetch = value;
+ }),
+ Preferences.get('disableFontFace').then(function resolved(value) {
+ if (PDFJS.disableFontFace === true) {
+ return;
+ }
+ PDFJS.disableFontFace = value;
+ }),
+ Preferences.get('useOnlyCssZoom').then(function resolved(value) {
+ PDFJS.useOnlyCssZoom = value;
+ })
+ // TODO move more preferences and other async stuff here
+ ]).catch(function (reason) { });
+
+ return initializedPromise.then(function () {
+ PDFViewerApplication.initialized = true;
+ });
+ },
+
+ zoomIn: function pdfViewZoomIn(ticks) {
+ var newScale = this.pdfViewer.currentScale;
+ do {
+ newScale = (newScale * DEFAULT_SCALE_DELTA).toFixed(2);
+ newScale = Math.ceil(newScale * 10) / 10;
+ newScale = Math.min(MAX_SCALE, newScale);
+ } while (--ticks && newScale < MAX_SCALE);
+ this.setScale(newScale, true);
+ },
+
+ zoomOut: function pdfViewZoomOut(ticks) {
+ var newScale = this.pdfViewer.currentScale;
+ do {
+ newScale = (newScale / DEFAULT_SCALE_DELTA).toFixed(2);
+ newScale = Math.floor(newScale * 10) / 10;
+ newScale = Math.max(MIN_SCALE, newScale);
+ } while (--ticks && newScale > MIN_SCALE);
+ this.setScale(newScale, true);
+ },
+
+ get currentScaleValue() {
+ return this.pdfViewer.currentScaleValue;
+ },
+
+ get pagesCount() {
+ return this.pdfDocument.numPages;
+ },
+
+ set page(val) {
+ this.pdfViewer.currentPageNumber = val;
+ },
+
+ get page() {
+ return this.pdfViewer.currentPageNumber;
+ },
+
+ get supportsPrinting() {
+ var canvas = document.createElement('canvas');
+ var value = 'mozPrintCallback' in canvas;
+
+ return PDFJS.shadow(this, 'supportsPrinting', value);
+ },
+
+ get supportsFullscreen() {
+ var doc = document.documentElement;
+ var support = doc.requestFullscreen || doc.mozRequestFullScreen ||
+ doc.webkitRequestFullScreen || doc.msRequestFullscreen;
+
+ if (document.fullscreenEnabled === false ||
+ document.mozFullScreenEnabled === false ||
+ document.webkitFullscreenEnabled === false ||
+ document.msFullscreenEnabled === false) {
+ support = false;
+ }
+ if (support && PDFJS.disableFullscreen === true) {
+ support = false;
+ }
+
+ return PDFJS.shadow(this, 'supportsFullscreen', support);
+ },
+
+ get supportsIntegratedFind() {
+ var support = false;
+
+ return PDFJS.shadow(this, 'supportsIntegratedFind', support);
+ },
+
+ get supportsDocumentFonts() {
+ var support = true;
+
+ return PDFJS.shadow(this, 'supportsDocumentFonts', support);
+ },
+
+ get supportsDocumentColors() {
+ var support = true;
+
+ return PDFJS.shadow(this, 'supportsDocumentColors', support);
+ },
+
+ get loadingBar() {
+ var bar = new ProgressBar('#loadingBar', {});
+
+ return PDFJS.shadow(this, 'loadingBar', bar);
+ },
+
+
+ setTitleUsingUrl: function pdfViewSetTitleUsingUrl(url) {
+ this.url = url;
+ try {
+ this.setTitle(decodeURIComponent(getFileName(url)) || url);
+ } catch (e) {
+ // decodeURIComponent may throw URIError,
+ // fall back to using the unprocessed url in that case
+ this.setTitle(url);
+ }
+ },
+
+ setTitle: function pdfViewSetTitle(title) {
+ if (this.isViewerEmbedded) {
+ // Embedded PDF viewers should not be changing their parent page's title.
+ return;
+ }
+ document.title = title;
+ },
+
+ close: function pdfViewClose() {
+ var errorWrapper = document.getElementById('errorWrapper');
+ errorWrapper.setAttribute('hidden', 'true');
+
+ if (!this.pdfDocument) {
+ return;
+ }
+
+ this.pdfDocument.destroy();
+ this.pdfDocument = null;
+
+ this.pdfThumbnailViewer.setDocument(null);
+ this.pdfViewer.setDocument(null);
+
+ if (typeof PDFBug !== 'undefined') {
+ PDFBug.cleanup();
+ }
+ },
+
+ // TODO(mack): This function signature should really be pdfViewOpen(url, args)
+ open: function pdfViewOpen(file, scale, password,
+ pdfDataRangeTransport, args) {
+ if (this.pdfDocument) {
+ // Reload the preferences if a document was previously opened.
+ Preferences.reload();
+ }
+ this.close();
+
+ var parameters = {password: password};
+ if (typeof file === 'string') { // URL
+ this.setTitleUsingUrl(file);
+ parameters.url = file;
+ } else if (file && 'byteLength' in file) { // ArrayBuffer
+ parameters.data = file;
+ } else if (file.url && file.originalUrl) {
+ this.setTitleUsingUrl(file.originalUrl);
+ parameters.url = file.url;
+ }
+ if (args) {
+ for (var prop in args) {
+ parameters[prop] = args[prop];
+ }
+ }
+
+ var self = this;
+ self.loading = true;
+ self.downloadComplete = false;
+
+ var passwordNeeded = function passwordNeeded(updatePassword, reason) {
+ PasswordPrompt.updatePassword = updatePassword;
+ PasswordPrompt.reason = reason;
+ PasswordPrompt.open();
+ };
+
+ function getDocumentProgress(progressData) {
+ self.progress(progressData.loaded / progressData.total);
+ }
+
+ PDFJS.getDocument(parameters, pdfDataRangeTransport, passwordNeeded,
+ getDocumentProgress).then(
+ function getDocumentCallback(pdfDocument) {
+ self.load(pdfDocument, scale);
+ self.loading = false;
+ },
+ function getDocumentError(exception) {
+ var message = exception && exception.message;
+ var loadingErrorMessage = mozL10n.get('loading_error', null,
+ 'An error occurred while loading the PDF.');
+
+ if (exception instanceof PDFJS.InvalidPDFException) {
+ // change error message also for other builds
+ loadingErrorMessage = mozL10n.get('invalid_file_error', null,
+ 'Invalid or corrupted PDF file.');
+ } else if (exception instanceof PDFJS.MissingPDFException) {
+ // special message for missing PDF's
+ loadingErrorMessage = mozL10n.get('missing_file_error', null,
+ 'Missing PDF file.');
+ } else if (exception instanceof PDFJS.UnexpectedResponseException) {
+ loadingErrorMessage = mozL10n.get('unexpected_response_error', null,
+ 'Unexpected server response.');
+ }
+
+ var moreInfo = {
+ message: message
+ };
+ self.error(loadingErrorMessage, moreInfo);
+ self.loading = false;
+ }
+ );
+
+ if (args && args.length) {
+ DocumentProperties.setFileSize(args.length);
+ }
+ },
+
+ download: function pdfViewDownload() {
+ function downloadByUrl() {
+ downloadManager.downloadUrl(url, filename);
+ }
+
+ var url = this.url.split('#')[0];
+ var filename = getPDFFileNameFromURL(url);
+ var downloadManager = new DownloadManager();
+ downloadManager.onerror = function (err) {
+ // This error won't really be helpful because it's likely the
+ // fallback won't work either (or is already open).
+ PDFViewerApplication.error('PDF failed to download.');
+ };
+
+ if (!this.pdfDocument) { // the PDF is not ready yet
+ downloadByUrl();
+ return;
+ }
+
+ if (!this.downloadComplete) { // the PDF is still downloading
+ downloadByUrl();
+ return;
+ }
+
+ this.pdfDocument.getData().then(
+ function getDataSuccess(data) {
+ var blob = PDFJS.createBlob(data, 'application/pdf');
+ downloadManager.download(blob, url, filename);
+ },
+ downloadByUrl // Error occurred try downloading with just the url.
+ ).then(null, downloadByUrl);
+ },
+
+ fallback: function pdfViewFallback(featureId) {
+ return;
+ },
+
+ navigateTo: function pdfViewNavigateTo(dest) {
+ var destString = '';
+ var self = this;
+
+ var goToDestination = function(destRef) {
+ self.pendingRefStr = null;
+ // dest array looks like that: <page-ref> </XYZ|FitXXX> <args..>
+ var pageNumber = destRef instanceof Object ?
+ self.pagesRefMap[destRef.num + ' ' + destRef.gen + ' R'] :
+ (destRef + 1);
+ if (pageNumber) {
+ if (pageNumber > self.pagesCount) {
+ pageNumber = self.pagesCount;
+ }
+ self.pdfViewer.scrollPageIntoView(pageNumber, dest);
+
+ // Update the browsing history.
+ PDFHistory.push({ dest: dest, hash: destString, page: pageNumber });
+ } else {
+ self.pdfDocument.getPageIndex(destRef).then(function (pageIndex) {
+ var pageNum = pageIndex + 1;
+ self.pagesRefMap[destRef.num + ' ' + destRef.gen + ' R'] = pageNum;
+ goToDestination(destRef);
+ });
+ }
+ };
+
+ var destinationPromise;
+ if (typeof dest === 'string') {
+ destString = dest;
+ destinationPromise = this.pdfDocument.getDestination(dest);
+ } else {
+ destinationPromise = Promise.resolve(dest);
+ }
+ destinationPromise.then(function(destination) {
+ dest = destination;
+ if (!(destination instanceof Array)) {
+ return; // invalid destination
+ }
+ goToDestination(destination[0]);
+ });
+ },
+
+ executeNamedAction: function pdfViewExecuteNamedAction(action) {
+ // See PDF reference, table 8.45 - Named action
+ switch (action) {
+ case 'GoToPage':
+ document.getElementById('pageNumber').focus();
+ break;
+
+ case 'GoBack':
+ PDFHistory.back();
+ break;
+
+ case 'GoForward':
+ PDFHistory.forward();
+ break;
+
+ case 'Find':
+ if (!this.supportsIntegratedFind) {
+ this.findBar.toggle();
+ }
+ break;
+
+ case 'NextPage':
+ this.page++;
+ break;
+
+ case 'PrevPage':
+ this.page--;
+ break;
+
+ case 'LastPage':
+ this.page = this.pagesCount;
+ break;
+
+ case 'FirstPage':
+ this.page = 1;
+ break;
+
+ default:
+ break; // No action according to spec
+ }
+ },
+
+ getDestinationHash: function pdfViewGetDestinationHash(dest) {
+ if (typeof dest === 'string') {
+ return this.getAnchorUrl('#' + escape(dest));
+ }
+ if (dest instanceof Array) {
+ var destRef = dest[0]; // see navigateTo method for dest format
+ var pageNumber = destRef instanceof Object ?
+ this.pagesRefMap[destRef.num + ' ' + destRef.gen + ' R'] :
+ (destRef + 1);
+ if (pageNumber) {
+ var pdfOpenParams = this.getAnchorUrl('#page=' + pageNumber);
+ var destKind = dest[1];
+ if (typeof destKind === 'object' && 'name' in destKind &&
+ destKind.name === 'XYZ') {
+ var scale = (dest[4] || this.currentScaleValue);
+ var scaleNumber = parseFloat(scale);
+ if (scaleNumber) {
+ scale = scaleNumber * 100;
+ }
+ pdfOpenParams += '&zoom=' + scale;
+ if (dest[2] || dest[3]) {
+ pdfOpenParams += ',' + (dest[2] || 0) + ',' + (dest[3] || 0);
+ }
+ }
+ return pdfOpenParams;
+ }
+ }
+ return '';
+ },
+
+ /**
+ * Prefix the full url on anchor links to make sure that links are resolved
+ * relative to the current URL instead of the one defined in <base href>.
+ * @param {String} anchor The anchor hash, including the #.
+ */
+ getAnchorUrl: function getAnchorUrl(anchor) {
+ return anchor;
+ },
+
+ /**
+ * Show the error box.
+ * @param {String} message A message that is human readable.
+ * @param {Object} moreInfo (optional) Further information about the error
+ * that is more technical. Should have a 'message'
+ * and optionally a 'stack' property.
+ */
+ error: function pdfViewError(message, moreInfo) {
+ var moreInfoText = mozL10n.get('error_version_info',
+ {version: PDFJS.version || '?', build: PDFJS.build || '?'},
+ 'PDF.js v{{version}} (build: {{build}})') + '\n';
+ if (moreInfo) {
+ moreInfoText +=
+ mozL10n.get('error_message', {message: moreInfo.message},
+ 'Message: {{message}}');
+ if (moreInfo.stack) {
+ moreInfoText += '\n' +
+ mozL10n.get('error_stack', {stack: moreInfo.stack},
+ 'Stack: {{stack}}');
+ } else {
+ if (moreInfo.filename) {
+ moreInfoText += '\n' +
+ mozL10n.get('error_file', {file: moreInfo.filename},
+ 'File: {{file}}');
+ }
+ if (moreInfo.lineNumber) {
+ moreInfoText += '\n' +
+ mozL10n.get('error_line', {line: moreInfo.lineNumber},
+ 'Line: {{line}}');
+ }
+ }
+ }
+
+ var errorWrapper = document.getElementById('errorWrapper');
+ errorWrapper.removeAttribute('hidden');
+
+ var errorMessage = document.getElementById('errorMessage');
+ errorMessage.textContent = message;
+
+ var closeButton = document.getElementById('errorClose');
+ closeButton.onclick = function() {
+ errorWrapper.setAttribute('hidden', 'true');
+ };
+
+ var errorMoreInfo = document.getElementById('errorMoreInfo');
+ var moreInfoButton = document.getElementById('errorShowMore');
+ var lessInfoButton = document.getElementById('errorShowLess');
+ moreInfoButton.onclick = function() {
+ errorMoreInfo.removeAttribute('hidden');
+ moreInfoButton.setAttribute('hidden', 'true');
+ lessInfoButton.removeAttribute('hidden');
+ errorMoreInfo.style.height = errorMoreInfo.scrollHeight + 'px';
+ };
+ lessInfoButton.onclick = function() {
+ errorMoreInfo.setAttribute('hidden', 'true');
+ moreInfoButton.removeAttribute('hidden');
+ lessInfoButton.setAttribute('hidden', 'true');
+ };
+ moreInfoButton.oncontextmenu = noContextMenuHandler;
+ lessInfoButton.oncontextmenu = noContextMenuHandler;
+ closeButton.oncontextmenu = noContextMenuHandler;
+ moreInfoButton.removeAttribute('hidden');
+ lessInfoButton.setAttribute('hidden', 'true');
+ errorMoreInfo.value = moreInfoText;
+ },
+
+ progress: function pdfViewProgress(level) {
+ var percent = Math.round(level * 100);
+ // When we transition from full request to range requests, it's possible
+ // that we discard some of the loaded data. This can cause the loading
+ // bar to move backwards. So prevent this by only updating the bar if it
+ // increases.
+ if (percent > this.loadingBar.percent || isNaN(percent)) {
+ this.loadingBar.percent = percent;
+
+ // When disableAutoFetch is enabled, it's not uncommon for the entire file
+ // to never be fetched (depends on e.g. the file structure). In this case
+ // the loading bar will not be completely filled, nor will it be hidden.
+ // To prevent displaying a partially filled loading bar permanently, we
+ // hide it when no data has been loaded during a certain amount of time.
+ if (PDFJS.disableAutoFetch && percent) {
+ if (this.disableAutoFetchLoadingBarTimeout) {
+ clearTimeout(this.disableAutoFetchLoadingBarTimeout);
+ this.disableAutoFetchLoadingBarTimeout = null;
+ }
+ this.loadingBar.show();
+
+ this.disableAutoFetchLoadingBarTimeout = setTimeout(function () {
+ this.loadingBar.hide();
+ this.disableAutoFetchLoadingBarTimeout = null;
+ }.bind(this), DISABLE_AUTO_FETCH_LOADING_BAR_TIMEOUT);
+ }
+ }
+ },
+
+ load: function pdfViewLoad(pdfDocument, scale) {
+ var self = this;
+ scale = scale || UNKNOWN_SCALE;
+
+ this.findController.reset();
+
+ this.pdfDocument = pdfDocument;
+
+ DocumentProperties.url = this.url;
+ DocumentProperties.pdfDocument = pdfDocument;
+ DocumentProperties.resolveDataAvailable();
+
+ var downloadedPromise = pdfDocument.getDownloadInfo().then(function() {
+ self.downloadComplete = true;
+ self.loadingBar.hide();
+ });
+
+ var pagesCount = pdfDocument.numPages;
+ document.getElementById('numPages').textContent =
+ mozL10n.get('page_of', {pageCount: pagesCount}, 'of {{pageCount}}');
+ document.getElementById('pageNumber').max = pagesCount;
+
+ var id = this.documentFingerprint = pdfDocument.fingerprint;
+ var store = this.store = new ViewHistory(id);
+
+ var pdfViewer = this.pdfViewer;
+ pdfViewer.currentScale = scale;
+ pdfViewer.setDocument(pdfDocument);
+ var firstPagePromise = pdfViewer.firstPagePromise;
+ var pagesPromise = pdfViewer.pagesPromise;
+ var onePageRendered = pdfViewer.onePageRendered;
+
+ this.pageRotation = 0;
+ this.isInitialViewSet = false;
+ this.pagesRefMap = pdfViewer.pagesRefMap;
+
+ this.pdfThumbnailViewer.setDocument(pdfDocument);
+
+ firstPagePromise.then(function(pdfPage) {
+ downloadedPromise.then(function () {
+ var event = document.createEvent('CustomEvent');
+ event.initCustomEvent('documentload', true, true, {});
+ window.dispatchEvent(event);
+ });
+
+ self.loadingBar.setWidth(document.getElementById('viewer'));
+
+ if (!PDFJS.disableHistory && !self.isViewerEmbedded) {
+ // The browsing history is only enabled when the viewer is standalone,
+ // i.e. not when it is embedded in a web page.
+ if (!self.preferenceShowPreviousViewOnLoad && window.history.state) {
+ window.history.replaceState(null, '');
+ }
+ PDFHistory.initialize(self.documentFingerprint, self);
+ }
+
+ store.initializedPromise.then(function resolved() {
+ var storedHash = null;
+ if (self.preferenceShowPreviousViewOnLoad &&
+ store.get('exists', false)) {
+ var pageNum = store.get('page', '1');
+ var zoom = self.preferenceDefaultZoomValue ||
+ store.get('zoom', self.pdfViewer.currentScale);
+ var left = store.get('scrollLeft', '0');
+ var top = store.get('scrollTop', '0');
+
+ storedHash = 'page=' + pageNum + '&zoom=' + zoom + ',' +
+ left + ',' + top;
+ } else if (self.preferenceDefaultZoomValue) {
+ storedHash = 'page=1&zoom=' + self.preferenceDefaultZoomValue;
+ }
+ self.setInitialView(storedHash, scale);
+
+ // Make all navigation keys work on document load,
+ // unless the viewer is embedded in a web page.
+ if (!self.isViewerEmbedded) {
+ self.pdfViewer.focus();
+ }
+ }, function rejected(reason) {
+ console.error(reason);
+ self.setInitialView(null, scale);
+ });
+ });
+
+ pagesPromise.then(function() {
+ if (self.supportsPrinting) {
+ pdfDocument.getJavaScript().then(function(javaScript) {
+ if (javaScript.length) {
+ console.warn('Warning: JavaScript is not supported');
+ self.fallback(PDFJS.UNSUPPORTED_FEATURES.javaScript);
+ }
+ // Hack to support auto printing.
+ var regex = /\bprint\s*\(/g;
+ for (var i = 0, ii = javaScript.length; i < ii; i++) {
+ var js = javaScript[i];
+ if (js && regex.test(js)) {
+ setTimeout(function() {
+ window.print();
+ });
+ return;
+ }
+ }
+ });
+ }
+ });
+
+ // outline depends on pagesRefMap
+ var promises = [pagesPromise, this.animationStartedPromise];
+ Promise.all(promises).then(function() {
+ pdfDocument.getOutline().then(function(outline) {
+ var container = document.getElementById('outlineView');
+ self.outline = new PDFOutlineView({
+ container: container,
+ outline: outline,
+ linkService: self
+ });
+ self.outline.render();
+ document.getElementById('viewOutline').disabled = !outline;
+
+ if (!outline && !container.classList.contains('hidden')) {
+ self.switchSidebarView('thumbs');
+ }
+ if (outline &&
+ self.preferenceSidebarViewOnLoad === SidebarView.OUTLINE) {
+ self.switchSidebarView('outline', true);
+ }
+ });
+ pdfDocument.getAttachments().then(function(attachments) {
+ var container = document.getElementById('attachmentsView');
+ self.attachments = new PDFAttachmentView({
+ container: container,
+ attachments: attachments,
+ downloadManager: new DownloadManager()
+ });
+ self.attachments.render();
+ document.getElementById('viewAttachments').disabled = !attachments;
+
+ if (!attachments && !container.classList.contains('hidden')) {
+ self.switchSidebarView('thumbs');
+ }
+ if (attachments &&
+ self.preferenceSidebarViewOnLoad === SidebarView.ATTACHMENTS) {
+ self.switchSidebarView('attachments', true);
+ }
+ });
+ });
+
+ if (self.preferenceSidebarViewOnLoad === SidebarView.THUMBS) {
+ Promise.all([firstPagePromise, onePageRendered]).then(function () {
+ self.switchSidebarView('thumbs', true);
+ });
+ }
+
+ pdfDocument.getMetadata().then(function(data) {
+ var info = data.info, metadata = data.metadata;
+ self.documentInfo = info;
+ self.metadata = metadata;
+
+ // Provides some basic debug information
+ console.log('PDF ' + pdfDocument.fingerprint + ' [' +
+ info.PDFFormatVersion + ' ' + (info.Producer || '-').trim() +
+ ' / ' + (info.Creator || '-').trim() + ']' +
+ ' (PDF.js: ' + (PDFJS.version || '-') +
+ (!PDFJS.disableWebGL ? ' [WebGL]' : '') + ')');
+
+ var pdfTitle;
+ if (metadata && metadata.has('dc:title')) {
+ var title = metadata.get('dc:title');
+ // Ghostscript sometimes return 'Untitled', sets the title to 'Untitled'
+ if (title !== 'Untitled') {
+ pdfTitle = title;
+ }
+ }
+
+ if (!pdfTitle && info && info['Title']) {
+ pdfTitle = info['Title'];
+ }
+
+ if (pdfTitle) {
+ self.setTitle(pdfTitle + ' - ' + document.title);
+ }
+
+ if (info.IsAcroFormPresent) {
+ console.warn('Warning: AcroForm/XFA is not supported');
+ self.fallback(PDFJS.UNSUPPORTED_FEATURES.forms);
+ }
+
+ });
+ },
+
+ setInitialView: function pdfViewSetInitialView(storedHash, scale) {
+ this.isInitialViewSet = true;
+
+ // When opening a new file (when one is already loaded in the viewer):
+ // Reset 'currentPageNumber', since otherwise the page's scale will be wrong
+ // if 'currentPageNumber' is larger than the number of pages in the file.
+ document.getElementById('pageNumber').value =
+ this.pdfViewer.currentPageNumber = 1;
+
+ if (PDFHistory.initialDestination) {
+ this.navigateTo(PDFHistory.initialDestination);
+ PDFHistory.initialDestination = null;
+ } else if (this.initialBookmark) {
+ this.setHash(this.initialBookmark);
+ PDFHistory.push({ hash: this.initialBookmark }, !!this.initialBookmark);
+ this.initialBookmark = null;
+ } else if (storedHash) {
+ this.setHash(storedHash);
+ } else if (scale) {
+ this.setScale(scale, true);
+ this.page = 1;
+ }
+
+ if (this.pdfViewer.currentScale === UNKNOWN_SCALE) {
+ // Scale was not initialized: invalid bookmark or scale was not specified.
+ // Setting the default one.
+ this.setScale(DEFAULT_SCALE, true);
+ }
+ },
+
+ cleanup: function pdfViewCleanup() {
+ this.pdfViewer.cleanup();
+ this.pdfThumbnailViewer.cleanup();
+ this.pdfDocument.cleanup();
+ },
+
+ forceRendering: function pdfViewForceRendering() {
+ this.pdfRenderingQueue.printing = this.printing;
+ this.pdfRenderingQueue.isThumbnailViewEnabled = this.sidebarOpen;
+ this.pdfRenderingQueue.renderHighestPriority();
+ },
+
+ setHash: function pdfViewSetHash(hash) {
+ if (!this.isInitialViewSet) {
+ this.initialBookmark = hash;
+ return;
+ }
+ if (!hash) {
+ return;
+ }
+
+ if (hash.indexOf('=') >= 0) {
+ var params = this.parseQueryString(hash);
+ // borrowing syntax from "Parameters for Opening PDF Files"
+ if ('nameddest' in params) {
+ PDFHistory.updateNextHashParam(params.nameddest);
+ this.navigateTo(params.nameddest);
+ return;
+ }
+ var pageNumber, dest;
+ if ('page' in params) {
+ pageNumber = (params.page | 0) || 1;
+ }
+ if ('zoom' in params) {
+ // Build the destination array.
+ var zoomArgs = params.zoom.split(','); // scale,left,top
+ var zoomArg = zoomArgs[0];
+ var zoomArgNumber = parseFloat(zoomArg);
+
+ if (zoomArg.indexOf('Fit') === -1) {
+ // If the zoomArg is a number, it has to get divided by 100. If it's
+ // a string, it should stay as it is.
+ dest = [null, { name: 'XYZ' },
+ zoomArgs.length > 1 ? (zoomArgs[1] | 0) : null,
+ zoomArgs.length > 2 ? (zoomArgs[2] | 0) : null,
+ (zoomArgNumber ? zoomArgNumber / 100 : zoomArg)];
+ } else {
+ if (zoomArg === 'Fit' || zoomArg === 'FitB') {
+ dest = [null, { name: zoomArg }];
+ } else if ((zoomArg === 'FitH' || zoomArg === 'FitBH') ||
+ (zoomArg === 'FitV' || zoomArg === 'FitBV')) {
+ dest = [null, { name: zoomArg },
+ zoomArgs.length > 1 ? (zoomArgs[1] | 0) : null];
+ } else if (zoomArg === 'FitR') {
+ if (zoomArgs.length !== 5) {
+ console.error('pdfViewSetHash: ' +
+ 'Not enough parameters for \'FitR\'.');
+ } else {
+ dest = [null, { name: zoomArg },
+ (zoomArgs[1] | 0), (zoomArgs[2] | 0),
+ (zoomArgs[3] | 0), (zoomArgs[4] | 0)];
+ }
+ } else {
+ console.error('pdfViewSetHash: \'' + zoomArg +
+ '\' is not a valid zoom value.');
+ }
+ }
+ }
+ if (dest) {
+ this.pdfViewer.scrollPageIntoView(pageNumber || this.page, dest);
+ } else if (pageNumber) {
+ this.page = pageNumber; // simple page
+ }
+ if ('pagemode' in params) {
+ if (params.pagemode === 'thumbs' || params.pagemode === 'bookmarks' ||
+ params.pagemode === 'attachments') {
+ this.switchSidebarView((params.pagemode === 'bookmarks' ?
+ 'outline' : params.pagemode), true);
+ } else if (params.pagemode === 'none' && this.sidebarOpen) {
+ document.getElementById('sidebarToggle').click();
+ }
+ }
+ } else if (/^\d+$/.test(hash)) { // page number
+ this.page = hash;
+ } else { // named destination
+ PDFHistory.updateNextHashParam(unescape(hash));
+ this.navigateTo(unescape(hash));
+ }
+ },
+
+ refreshThumbnailViewer: function pdfViewRefreshThumbnailViewer() {
+ var pdfViewer = this.pdfViewer;
+ var thumbnailViewer = this.pdfThumbnailViewer;
+
+ // set thumbnail images of rendered pages
+ var pagesCount = pdfViewer.pagesCount;
+ for (var pageIndex = 0; pageIndex < pagesCount; pageIndex++) {
+ var pageView = pdfViewer.getPageView(pageIndex);
+ if (pageView && pageView.renderingState === RenderingStates.FINISHED) {
+ var thumbnailView = thumbnailViewer.getThumbnail(pageIndex);
+ thumbnailView.setImage(pageView);
+ }
+ }
+
+ thumbnailViewer.scrollThumbnailIntoView(this.page);
+ },
+
+ switchSidebarView: function pdfViewSwitchSidebarView(view, openSidebar) {
+ if (openSidebar && !this.sidebarOpen) {
+ document.getElementById('sidebarToggle').click();
+ }
+ var thumbsView = document.getElementById('thumbnailView');
+ var outlineView = document.getElementById('outlineView');
+ var attachmentsView = document.getElementById('attachmentsView');
+
+ var thumbsButton = document.getElementById('viewThumbnail');
+ var outlineButton = document.getElementById('viewOutline');
+ var attachmentsButton = document.getElementById('viewAttachments');
+
+ switch (view) {
+ case 'thumbs':
+ var wasAnotherViewVisible = thumbsView.classList.contains('hidden');
+
+ thumbsButton.classList.add('toggled');
+ outlineButton.classList.remove('toggled');
+ attachmentsButton.classList.remove('toggled');
+ thumbsView.classList.remove('hidden');
+ outlineView.classList.add('hidden');
+ attachmentsView.classList.add('hidden');
+
+ this.forceRendering();
+
+ if (wasAnotherViewVisible) {
+ this.pdfThumbnailViewer.ensureThumbnailVisible(this.page);
+ }
+ break;
+
+ case 'outline':
+ thumbsButton.classList.remove('toggled');
+ outlineButton.classList.add('toggled');
+ attachmentsButton.classList.remove('toggled');
+ thumbsView.classList.add('hidden');
+ outlineView.classList.remove('hidden');
+ attachmentsView.classList.add('hidden');
+
+ if (outlineButton.getAttribute('disabled')) {
+ return;
+ }
+ break;
+
+ case 'attachments':
+ thumbsButton.classList.remove('toggled');
+ outlineButton.classList.remove('toggled');
+ attachmentsButton.classList.add('toggled');
+ thumbsView.classList.add('hidden');
+ outlineView.classList.add('hidden');
+ attachmentsView.classList.remove('hidden');
+
+ if (attachmentsButton.getAttribute('disabled')) {
+ return;
+ }
+ break;
+ }
+ },
+
+ // Helper function to parse query string (e.g. ?param1=value&parm2=...).
+ parseQueryString: function pdfViewParseQueryString(query) {
+ var parts = query.split('&');
+ var params = {};
+ for (var i = 0, ii = parts.length; i < ii; ++i) {
+ var param = parts[i].split('=');
+ var key = param[0].toLowerCase();
+ var value = param.length > 1 ? param[1] : null;
+ params[decodeURIComponent(key)] = decodeURIComponent(value);
+ }
+ return params;
+ },
+
+ beforePrint: function pdfViewSetupBeforePrint() {
+ if (!this.supportsPrinting) {
+ var printMessage = mozL10n.get('printing_not_supported', null,
+ 'Warning: Printing is not fully supported by this browser.');
+ this.error(printMessage);
+ return;
+ }
+
+ var alertNotReady = false;
+ var i, ii;
+ if (!this.pagesCount) {
+ alertNotReady = true;
+ } else {
+ for (i = 0, ii = this.pagesCount; i < ii; ++i) {
+ if (!this.pdfViewer.getPageView(i).pdfPage) {
+ alertNotReady = true;
+ break;
+ }
+ }
+ }
+ if (alertNotReady) {
+ var notReadyMessage = mozL10n.get('printing_not_ready', null,
+ 'Warning: The PDF is not fully loaded for printing.');
+ window.alert(notReadyMessage);
+ return;
+ }
+
+ this.printing = true;
+ this.forceRendering();
+
+ var body = document.querySelector('body');
+ body.setAttribute('data-mozPrintCallback', true);
+ for (i = 0, ii = this.pagesCount; i < ii; ++i) {
+ this.pdfViewer.getPageView(i).beforePrint();
+ }
+
+ },
+
+ afterPrint: function pdfViewSetupAfterPrint() {
+ var div = document.getElementById('printContainer');
+ while (div.hasChildNodes()) {
+ div.removeChild(div.lastChild);
+ }
+
+ this.printing = false;
+ this.forceRendering();
+ },
+
+ setScale: function (value, resetAutoSettings) {
+ this.updateScaleControls = !!resetAutoSettings;
+ this.pdfViewer.currentScaleValue = value;
+ this.updateScaleControls = true;
+ },
+
+ rotatePages: function pdfViewRotatePages(delta) {
+ var pageNumber = this.page;
+ this.pageRotation = (this.pageRotation + 360 + delta) % 360;
+ this.pdfViewer.pagesRotation = this.pageRotation;
+ this.pdfThumbnailViewer.pagesRotation = this.pageRotation;
+
+ this.forceRendering();
+
+ this.pdfViewer.scrollPageIntoView(pageNumber);
+ },
+
+ /**
+ * This function flips the page in presentation mode if the user scrolls up
+ * or down with large enough motion and prevents page flipping too often.
+ *
+ * @this {PDFView}
+ * @param {number} mouseScrollDelta The delta value from the mouse event.
+ */
+ mouseScroll: function pdfViewMouseScroll(mouseScrollDelta) {
+ var MOUSE_SCROLL_COOLDOWN_TIME = 50;
+
+ var currentTime = (new Date()).getTime();
+ var storedTime = this.mouseScrollTimeStamp;
+
+ // In case one page has already been flipped there is a cooldown time
+ // which has to expire before next page can be scrolled on to.
+ if (currentTime > storedTime &&
+ currentTime - storedTime < MOUSE_SCROLL_COOLDOWN_TIME) {
+ return;
+ }
+
+ // In case the user decides to scroll to the opposite direction than before
+ // clear the accumulated delta.
+ if ((this.mouseScrollDelta > 0 && mouseScrollDelta < 0) ||
+ (this.mouseScrollDelta < 0 && mouseScrollDelta > 0)) {
+ this.clearMouseScrollState();
+ }
+
+ this.mouseScrollDelta += mouseScrollDelta;
+
+ var PAGE_FLIP_THRESHOLD = 120;
+ if (Math.abs(this.mouseScrollDelta) >= PAGE_FLIP_THRESHOLD) {
+
+ var PageFlipDirection = {
+ UP: -1,
+ DOWN: 1
+ };
+
+ // In presentation mode scroll one page at a time.
+ var pageFlipDirection = (this.mouseScrollDelta > 0) ?
+ PageFlipDirection.UP :
+ PageFlipDirection.DOWN;
+ this.clearMouseScrollState();
+ var currentPage = this.page;
+
+ // In case we are already on the first or the last page there is no need
+ // to do anything.
+ if ((currentPage === 1 && pageFlipDirection === PageFlipDirection.UP) ||
+ (currentPage === this.pagesCount &&
+ pageFlipDirection === PageFlipDirection.DOWN)) {
+ return;
+ }
+
+ this.page += pageFlipDirection;
+ this.mouseScrollTimeStamp = currentTime;
+ }
+ },
+
+ /**
+ * This function clears the member attributes used with mouse scrolling in
+ * presentation mode.
+ *
+ * @this {PDFView}
+ */
+ clearMouseScrollState: function pdfViewClearMouseScrollState() {
+ this.mouseScrollTimeStamp = 0;
+ this.mouseScrollDelta = 0;
+ }
+};
+window.PDFView = PDFViewerApplication; // obsolete name, using it as an alias
+
+
+function webViewerLoad(evt) {
+ PDFViewerApplication.initialize().then(webViewerInitialized);
+}
+
+function webViewerInitialized() {
+ var queryString = document.location.search.substring(1);
+ var params = PDFViewerApplication.parseQueryString(queryString);
+ var file = 'file' in params ? params.file : DEFAULT_URL;
+
+ var fileInput = document.createElement('input');
+ fileInput.id = 'fileInput';
+ fileInput.className = 'fileInput';
+ fileInput.setAttribute('type', 'file');
+ fileInput.oncontextmenu = noContextMenuHandler;
+ document.body.appendChild(fileInput);
+
+ if (!window.File || !window.FileReader || !window.FileList || !window.Blob) {
+ document.getElementById('openFile').setAttribute('hidden', 'true');
+ document.getElementById('secondaryOpenFile').setAttribute('hidden', 'true');
+ } else {
+ document.getElementById('fileInput').value = null;
+ }
+
+ var locale = PDFJS.locale || navigator.language;
+
+ if (PDFViewerApplication.preferencePdfBugEnabled) {
+ // Special debugging flags in the hash section of the URL.
+ var hash = document.location.hash.substring(1);
+ var hashParams = PDFViewerApplication.parseQueryString(hash);
+
+ if ('disableworker' in hashParams) {
+ PDFJS.disableWorker = (hashParams['disableworker'] === 'true');
+ }
+ if ('disablerange' in hashParams) {
+ PDFJS.disableRange = (hashParams['disablerange'] === 'true');
+ }
+ if ('disablestream' in hashParams) {
+ PDFJS.disableStream = (hashParams['disablestream'] === 'true');
+ }
+ if ('disableautofetch' in hashParams) {
+ PDFJS.disableAutoFetch = (hashParams['disableautofetch'] === 'true');
+ }
+ if ('disablefontface' in hashParams) {
+ PDFJS.disableFontFace = (hashParams['disablefontface'] === 'true');
+ }
+ if ('disablehistory' in hashParams) {
+ PDFJS.disableHistory = (hashParams['disablehistory'] === 'true');
+ }
+ if ('webgl' in hashParams) {
+ PDFJS.disableWebGL = (hashParams['webgl'] !== 'true');
+ }
+ if ('useonlycsszoom' in hashParams) {
+ PDFJS.useOnlyCssZoom = (hashParams['useonlycsszoom'] === 'true');
+ }
+ if ('verbosity' in hashParams) {
+ PDFJS.verbosity = hashParams['verbosity'] | 0;
+ }
+ if ('ignorecurrentpositiononzoom' in hashParams) {
+ IGNORE_CURRENT_POSITION_ON_ZOOM =
+ (hashParams['ignorecurrentpositiononzoom'] === 'true');
+ }
+ if ('locale' in hashParams) {
+ locale = hashParams['locale'];
+ }
+ if ('textlayer' in hashParams) {
+ switch (hashParams['textlayer']) {
+ case 'off':
+ PDFJS.disableTextLayer = true;
+ break;
+ case 'visible':
+ case 'shadow':
+ case 'hover':
+ var viewer = document.getElementById('viewer');
+ viewer.classList.add('textLayer-' + hashParams['textlayer']);
+ break;
+ }
+ }
+ if ('pdfbug' in hashParams) {
+ PDFJS.pdfBug = true;
+ var pdfBug = hashParams['pdfbug'];
+ var enabled = pdfBug.split(',');
+ PDFBug.enable(enabled);
+ PDFBug.init();
+ }
+ }
+
+ mozL10n.setLanguage(locale);
+
+ if (!PDFViewerApplication.supportsPrinting) {
+ document.getElementById('print').classList.add('hidden');
+ document.getElementById('secondaryPrint').classList.add('hidden');
+ }
+
+ if (!PDFViewerApplication.supportsFullscreen) {
+ document.getElementById('presentationMode').classList.add('hidden');
+ document.getElementById('secondaryPresentationMode').
+ classList.add('hidden');
+ }
+
+ if (PDFViewerApplication.supportsIntegratedFind) {
+ document.getElementById('viewFind').classList.add('hidden');
+ }
+
+ // Listen for unsupported features to trigger the fallback UI.
+ PDFJS.UnsupportedManager.listen(
+ PDFViewerApplication.fallback.bind(PDFViewerApplication));
+
+ // Suppress context menus for some controls
+ document.getElementById('scaleSelect').oncontextmenu = noContextMenuHandler;
+
+ var mainContainer = document.getElementById('mainContainer');
+ var outerContainer = document.getElementById('outerContainer');
+ mainContainer.addEventListener('transitionend', function(e) {
+ if (e.target === mainContainer) {
+ var event = document.createEvent('UIEvents');
+ event.initUIEvent('resize', false, false, window, 0);
+ window.dispatchEvent(event);
+ outerContainer.classList.remove('sidebarMoving');
+ }
+ }, true);
+
+ document.getElementById('sidebarToggle').addEventListener('click',
+ function() {
+ this.classList.toggle('toggled');
+ outerContainer.classList.add('sidebarMoving');
+ outerContainer.classList.toggle('sidebarOpen');
+ PDFViewerApplication.sidebarOpen =
+ outerContainer.classList.contains('sidebarOpen');
+ if (PDFViewerApplication.sidebarOpen) {
+ PDFViewerApplication.refreshThumbnailViewer();
+ }
+ PDFViewerApplication.forceRendering();
+ });
+
+ document.getElementById('viewThumbnail').addEventListener('click',
+ function() {
+ PDFViewerApplication.switchSidebarView('thumbs');
+ });
+
+ document.getElementById('viewOutline').addEventListener('click',
+ function() {
+ PDFViewerApplication.switchSidebarView('outline');
+ });
+
+ document.getElementById('viewAttachments').addEventListener('click',
+ function() {
+ PDFViewerApplication.switchSidebarView('attachments');
+ });
+
+ document.getElementById('previous').addEventListener('click',
+ function() {
+ PDFViewerApplication.page--;
+ });
+
+ document.getElementById('next').addEventListener('click',
+ function() {
+ PDFViewerApplication.page++;
+ });
+
+ document.getElementById('zoomIn').addEventListener('click',
+ function() {
+ PDFViewerApplication.zoomIn();
+ });
+
+ document.getElementById('zoomOut').addEventListener('click',
+ function() {
+ PDFViewerApplication.zoomOut();
+ });
+
+ document.getElementById('pageNumber').addEventListener('click', function() {
+ this.select();
+ });
+
+ document.getElementById('pageNumber').addEventListener('change', function() {
+ // Handle the user inputting a floating point number.
+ PDFViewerApplication.page = (this.value | 0);
+
+ if (this.value !== (this.value | 0).toString()) {
+ this.value = PDFViewerApplication.page;
+ }
+ });
+
+ document.getElementById('scaleSelect').addEventListener('change',
+ function() {
+ PDFViewerApplication.setScale(this.value, false);
+ });
+
+ document.getElementById('presentationMode').addEventListener('click',
+ SecondaryToolbar.presentationModeClick.bind(SecondaryToolbar));
+
+ document.getElementById('openFile').addEventListener('click',
+ SecondaryToolbar.openFileClick.bind(SecondaryToolbar));
+
+ document.getElementById('print').addEventListener('click',
+ SecondaryToolbar.printClick.bind(SecondaryToolbar));
+
+ document.getElementById('download').addEventListener('click',
+ SecondaryToolbar.downloadClick.bind(SecondaryToolbar));
+
+
+ if (file && file.lastIndexOf('file:', 0) === 0) {
+ // file:-scheme. Load the contents in the main thread because QtWebKit
+ // cannot load file:-URLs in a Web Worker. file:-URLs are usually loaded
+ // very quickly, so there is no need to set up progress event listeners.
+ PDFViewerApplication.setTitleUsingUrl(file);
+ var xhr = new XMLHttpRequest();
+ xhr.onload = function() {
+ PDFViewerApplication.open(new Uint8Array(xhr.response), 0);
+ };
+ try {
+ xhr.open('GET', file);
+ xhr.responseType = 'arraybuffer';
+ xhr.send();
+ } catch (e) {
+ PDFViewerApplication.error(mozL10n.get('loading_error', null,
+ 'An error occurred while loading the PDF.'), e);
+ }
+ return;
+ }
+
+ if (file) {
+ PDFViewerApplication.open(file, 0);
+ }
+}
+
+document.addEventListener('DOMContentLoaded', webViewerLoad, true);
+
+document.addEventListener('pagerendered', function (e) {
+ var pageNumber = e.detail.pageNumber;
+ var pageIndex = pageNumber - 1;
+ var pageView = PDFViewerApplication.pdfViewer.getPageView(pageIndex);
+
+ if (PDFViewerApplication.sidebarOpen) {
+ var thumbnailView = PDFViewerApplication.pdfThumbnailViewer.
+ getThumbnail(pageIndex);
+ thumbnailView.setImage(pageView);
+ }
+
+ if (PDFJS.pdfBug && Stats.enabled && pageView.stats) {
+ Stats.add(pageNumber, pageView.stats);
+ }
+
+ if (pageView.error) {
+ PDFViewerApplication.error(mozL10n.get('rendering_error', null,
+ 'An error occurred while rendering the page.'), pageView.error);
+ }
+
+
+ // If the page is still visible when it has finished rendering,
+ // ensure that the page number input loading indicator is hidden.
+ if (pageNumber === PDFViewerApplication.page) {
+ var pageNumberInput = document.getElementById('pageNumber');
+ pageNumberInput.classList.remove(PAGE_NUMBER_LOADING_INDICATOR);
+ }
+}, true);
+
+document.addEventListener('textlayerrendered', function (e) {
+ var pageIndex = e.detail.pageNumber - 1;
+ var pageView = PDFViewerApplication.pdfViewer.getPageView(pageIndex);
+
+}, true);
+
+window.addEventListener('presentationmodechanged', function (e) {
+ var active = e.detail.active;
+ var switchInProgress = e.detail.switchInProgress;
+ PDFViewerApplication.pdfViewer.presentationModeState =
+ switchInProgress ? PresentationModeState.CHANGING :
+ active ? PresentationModeState.FULLSCREEN : PresentationModeState.NORMAL;
+});
+
+function updateViewarea() {
+ if (!PDFViewerApplication.initialized) {
+ return;
+ }
+ PDFViewerApplication.pdfViewer.update();
+}
+
+window.addEventListener('updateviewarea', function () {
+ if (!PDFViewerApplication.initialized) {
+ return;
+ }
+
+ var location = PDFViewerApplication.pdfViewer.location;
+
+ PDFViewerApplication.store.initializedPromise.then(function() {
+ PDFViewerApplication.store.setMultiple({
+ 'exists': true,
+ 'page': location.pageNumber,
+ 'zoom': location.scale,
+ 'scrollLeft': location.left,
+ 'scrollTop': location.top
+ }).catch(function() {
+ // unable to write to storage
+ });
+ });
+ var href = PDFViewerApplication.getAnchorUrl(location.pdfOpenParams);
+ document.getElementById('viewBookmark').href = href;
+ document.getElementById('secondaryViewBookmark').href = href;
+
+ // Update the current bookmark in the browsing history.
+ PDFHistory.updateCurrentBookmark(location.pdfOpenParams, location.pageNumber);
+
+ // Show/hide the loading indicator in the page number input element.
+ var pageNumberInput = document.getElementById('pageNumber');
+ var currentPage =
+ PDFViewerApplication.pdfViewer.getPageView(PDFViewerApplication.page - 1);
+
+ if (currentPage.renderingState === RenderingStates.FINISHED) {
+ pageNumberInput.classList.remove(PAGE_NUMBER_LOADING_INDICATOR);
+ } else {
+ pageNumberInput.classList.add(PAGE_NUMBER_LOADING_INDICATOR);
+ }
+}, true);
+
+window.addEventListener('resize', function webViewerResize(evt) {
+ if (PDFViewerApplication.initialized &&
+ (document.getElementById('pageAutoOption').selected ||
+ /* Note: the scale is constant for |pageActualOption|. */
+ document.getElementById('pageFitOption').selected ||
+ document.getElementById('pageWidthOption').selected)) {
+ var selectedScale = document.getElementById('scaleSelect').value;
+ PDFViewerApplication.setScale(selectedScale, false);
+ }
+ updateViewarea();
+
+ // Set the 'max-height' CSS property of the secondary toolbar.
+ SecondaryToolbar.setMaxHeight(document.getElementById('viewerContainer'));
+});
+
+window.addEventListener('hashchange', function webViewerHashchange(evt) {
+ if (PDFHistory.isHashChangeUnlocked) {
+ PDFViewerApplication.setHash(document.location.hash.substring(1));
+ }
+});
+
+window.addEventListener('change', function webViewerChange(evt) {
+ var files = evt.target.files;
+ if (!files || files.length === 0) {
+ return;
+ }
+ var file = files[0];
+
+ if (!PDFJS.disableCreateObjectURL &&
+ typeof URL !== 'undefined' && URL.createObjectURL) {
+ PDFViewerApplication.open(URL.createObjectURL(file), 0);
+ } else {
+ // Read the local file into a Uint8Array.
+ var fileReader = new FileReader();
+ fileReader.onload = function webViewerChangeFileReaderOnload(evt) {
+ var buffer = evt.target.result;
+ var uint8Array = new Uint8Array(buffer);
+ PDFViewerApplication.open(uint8Array, 0);
+ };
+ fileReader.readAsArrayBuffer(file);
+ }
+
+ PDFViewerApplication.setTitleUsingUrl(file.name);
+
+ // URL does not reflect proper document location - hiding some icons.
+ document.getElementById('viewBookmark').setAttribute('hidden', 'true');
+ document.getElementById('secondaryViewBookmark').
+ setAttribute('hidden', 'true');
+ document.getElementById('download').setAttribute('hidden', 'true');
+ document.getElementById('secondaryDownload').setAttribute('hidden', 'true');
+}, true);
+
+function selectScaleOption(value) {
+ var options = document.getElementById('scaleSelect').options;
+ var predefinedValueFound = false;
+ for (var i = 0; i < options.length; i++) {
+ var option = options[i];
+ if (option.value !== value) {
+ option.selected = false;
+ continue;
+ }
+ option.selected = true;
+ predefinedValueFound = true;
+ }
+ return predefinedValueFound;
+}
+
+window.addEventListener('localized', function localized(evt) {
+ document.getElementsByTagName('html')[0].dir = mozL10n.getDirection();
+
+ PDFViewerApplication.animationStartedPromise.then(function() {
+ // Adjust the width of the zoom box to fit the content.
+ // Note: If the window is narrow enough that the zoom box is not visible,
+ // we temporarily show it to be able to adjust its width.
+ var container = document.getElementById('scaleSelectContainer');
+ if (container.clientWidth === 0) {
+ container.setAttribute('style', 'display: inherit;');
+ }
+ if (container.clientWidth > 0) {
+ var select = document.getElementById('scaleSelect');
+ select.setAttribute('style', 'min-width: inherit;');
+ var width = select.clientWidth + SCALE_SELECT_CONTAINER_PADDING;
+ select.setAttribute('style', 'min-width: ' +
+ (width + SCALE_SELECT_PADDING) + 'px;');
+ container.setAttribute('style', 'min-width: ' + width + 'px; ' +
+ 'max-width: ' + width + 'px;');
+ }
+
+ // Set the 'max-height' CSS property of the secondary toolbar.
+ SecondaryToolbar.setMaxHeight(document.getElementById('viewerContainer'));
+ });
+}, true);
+
+window.addEventListener('scalechange', function scalechange(evt) {
+ document.getElementById('zoomOut').disabled = (evt.scale === MIN_SCALE);
+ document.getElementById('zoomIn').disabled = (evt.scale === MAX_SCALE);
+
+ var customScaleOption = document.getElementById('customScaleOption');
+ customScaleOption.selected = false;
+
+ if (!PDFViewerApplication.updateScaleControls &&
+ (document.getElementById('pageAutoOption').selected ||
+ document.getElementById('pageActualOption').selected ||
+ document.getElementById('pageFitOption').selected ||
+ document.getElementById('pageWidthOption').selected)) {
+ updateViewarea();
+ return;
+ }
+
+ if (evt.presetValue) {
+ selectScaleOption(evt.presetValue);
+ updateViewarea();
+ return;
+ }
+
+ var predefinedValueFound = selectScaleOption('' + evt.scale);
+ if (!predefinedValueFound) {
+ var customScale = Math.round(evt.scale * 10000) / 100;
+ customScaleOption.textContent =
+ mozL10n.get('page_scale_percent', { scale: customScale }, '{{scale}}%');
+ customScaleOption.selected = true;
+ }
+ updateViewarea();
+}, true);
+
+window.addEventListener('pagechange', function pagechange(evt) {
+ var page = evt.pageNumber;
+ if (evt.previousPageNumber !== page) {
+ document.getElementById('pageNumber').value = page;
+ if (PDFViewerApplication.sidebarOpen) {
+ PDFViewerApplication.pdfThumbnailViewer.scrollThumbnailIntoView(page);
+ }
+ }
+ var numPages = PDFViewerApplication.pagesCount;
+
+ document.getElementById('previous').disabled = (page <= 1);
+ document.getElementById('next').disabled = (page >= numPages);
+
+ document.getElementById('firstPage').disabled = (page <= 1);
+ document.getElementById('lastPage').disabled = (page >= numPages);
+
+ // we need to update stats
+ if (PDFJS.pdfBug && Stats.enabled) {
+ var pageView = PDFViewerApplication.pdfViewer.getPageView(page - 1);
+ if (pageView.stats) {
+ Stats.add(page, pageView.stats);
+ }
+ }
+
+ // checking if the this.page was called from the updateViewarea function
+ if (evt.updateInProgress) {
+ return;
+ }
+ // Avoid scrolling the first page during loading
+ if (this.loading && page === 1) {
+ return;
+ }
+ PDFViewerApplication.pdfViewer.scrollPageIntoView(page);
+}, true);
+
+function handleMouseWheel(evt) {
+ var MOUSE_WHEEL_DELTA_FACTOR = 40;
+ var ticks = (evt.type === 'DOMMouseScroll') ? -evt.detail :
+ evt.wheelDelta / MOUSE_WHEEL_DELTA_FACTOR;
+ var direction = (ticks < 0) ? 'zoomOut' : 'zoomIn';
+
+ if (PresentationMode.active) {
+ evt.preventDefault();
+ PDFViewerApplication.mouseScroll(ticks * MOUSE_WHEEL_DELTA_FACTOR);
+ } else if (evt.ctrlKey || evt.metaKey) {
+ // Only zoom the pages, not the entire viewer
+ evt.preventDefault();
+ PDFViewerApplication[direction](Math.abs(ticks));
+ }
+}
+
+window.addEventListener('DOMMouseScroll', handleMouseWheel);
+window.addEventListener('mousewheel', handleMouseWheel);
+
+window.addEventListener('click', function click(evt) {
+ if (!PresentationMode.active) {
+ if (SecondaryToolbar.opened &&
+ PDFViewerApplication.pdfViewer.containsElement(evt.target)) {
+ SecondaryToolbar.close();
+ }
+ } else if (evt.button === 0) {
+ // Necessary since preventDefault() in 'mousedown' won't stop
+ // the event propagation in all circumstances in presentation mode.
+ evt.preventDefault();
+ }
+}, false);
+
+window.addEventListener('keydown', function keydown(evt) {
+ if (OverlayManager.active) {
+ return;
+ }
+
+ var handled = false;
+ var cmd = (evt.ctrlKey ? 1 : 0) |
+ (evt.altKey ? 2 : 0) |
+ (evt.shiftKey ? 4 : 0) |
+ (evt.metaKey ? 8 : 0);
+
+ // First, handle the key bindings that are independent whether an input
+ // control is selected or not.
+ if (cmd === 1 || cmd === 8 || cmd === 5 || cmd === 12) {
+ // either CTRL or META key with optional SHIFT.
+ var pdfViewer = PDFViewerApplication.pdfViewer;
+ var inPresentationMode = pdfViewer &&
+ (pdfViewer.presentationModeState === PresentationModeState.CHANGING ||
+ pdfViewer.presentationModeState === PresentationModeState.FULLSCREEN);
+
+ switch (evt.keyCode) {
+ case 70: // f
+ if (!PDFViewerApplication.supportsIntegratedFind) {
+ PDFViewerApplication.findBar.open();
+ handled = true;
+ }
+ break;
+ case 71: // g
+ if (!PDFViewerApplication.supportsIntegratedFind) {
+ PDFViewerApplication.findBar.dispatchEvent('again',
+ cmd === 5 || cmd === 12);
+ handled = true;
+ }
+ break;
+ case 61: // FF/Mac '='
+ case 107: // FF '+' and '='
+ case 187: // Chrome '+'
+ case 171: // FF with German keyboard
+ if (!inPresentationMode) {
+ PDFViewerApplication.zoomIn();
+ }
+ handled = true;
+ break;
+ case 173: // FF/Mac '-'
+ case 109: // FF '-'
+ case 189: // Chrome '-'
+ if (!inPresentationMode) {
+ PDFViewerApplication.zoomOut();
+ }
+ handled = true;
+ break;
+ case 48: // '0'
+ case 96: // '0' on Numpad of Swedish keyboard
+ if (!inPresentationMode) {
+ // keeping it unhandled (to restore page zoom to 100%)
+ setTimeout(function () {
+ // ... and resetting the scale after browser adjusts its scale
+ PDFViewerApplication.setScale(DEFAULT_SCALE, true);
+ });
+ handled = false;
+ }
+ break;
+ }
+ }
+
+ // CTRL or META without shift
+ if (cmd === 1 || cmd === 8) {
+ switch (evt.keyCode) {
+ case 83: // s
+ PDFViewerApplication.download();
+ handled = true;
+ break;
+ }
+ }
+
+ // CTRL+ALT or Option+Command
+ if (cmd === 3 || cmd === 10) {
+ switch (evt.keyCode) {
+ case 80: // p
+ SecondaryToolbar.presentationModeClick();
+ handled = true;
+ break;
+ case 71: // g
+ // focuses input#pageNumber field
+ document.getElementById('pageNumber').select();
+ handled = true;
+ break;
+ }
+ }
+
+ if (handled) {
+ evt.preventDefault();
+ return;
+ }
+
+ // Some shortcuts should not get handled if a control/input element
+ // is selected.
+ var curElement = document.activeElement || document.querySelector(':focus');
+ var curElementTagName = curElement && curElement.tagName.toUpperCase();
+ if (curElementTagName === 'INPUT' ||
+ curElementTagName === 'TEXTAREA' ||
+ curElementTagName === 'SELECT') {
+ // Make sure that the secondary toolbar is closed when Escape is pressed.
+ if (evt.keyCode !== 27) { // 'Esc'
+ return;
+ }
+ }
+
+ if (cmd === 0) { // no control key pressed at all.
+ switch (evt.keyCode) {
+ case 38: // up arrow
+ case 33: // pg up
+ case 8: // backspace
+ if (!PresentationMode.active &&
+ PDFViewerApplication.currentScaleValue !== 'page-fit') {
+ break;
+ }
+ /* in presentation mode */
+ /* falls through */
+ case 37: // left arrow
+ // horizontal scrolling using arrow keys
+ if (PDFViewerApplication.pdfViewer.isHorizontalScrollbarEnabled) {
+ break;
+ }
+ /* falls through */
+ case 75: // 'k'
+ case 80: // 'p'
+ PDFViewerApplication.page--;
+ handled = true;
+ break;
+ case 27: // esc key
+ if (SecondaryToolbar.opened) {
+ SecondaryToolbar.close();
+ handled = true;
+ }
+ if (!PDFViewerApplication.supportsIntegratedFind &&
+ PDFViewerApplication.findBar.opened) {
+ PDFViewerApplication.findBar.close();
+ handled = true;
+ }
+ break;
+ case 40: // down arrow
+ case 34: // pg down
+ case 32: // spacebar
+ if (!PresentationMode.active &&
+ PDFViewerApplication.currentScaleValue !== 'page-fit') {
+ break;
+ }
+ /* falls through */
+ case 39: // right arrow
+ // horizontal scrolling using arrow keys
+ if (PDFViewerApplication.pdfViewer.isHorizontalScrollbarEnabled) {
+ break;
+ }
+ /* falls through */
+ case 74: // 'j'
+ case 78: // 'n'
+ PDFViewerApplication.page++;
+ handled = true;
+ break;
+
+ case 36: // home
+ if (PresentationMode.active || PDFViewerApplication.page > 1) {
+ PDFViewerApplication.page = 1;
+ handled = true;
+ }
+ break;
+ case 35: // end
+ if (PresentationMode.active || (PDFViewerApplication.pdfDocument &&
+ PDFViewerApplication.page < PDFViewerApplication.pagesCount)) {
+ PDFViewerApplication.page = PDFViewerApplication.pagesCount;
+ handled = true;
+ }
+ break;
+
+ case 72: // 'h'
+ if (!PresentationMode.active) {
+ HandTool.toggle();
+ }
+ break;
+ case 82: // 'r'
+ PDFViewerApplication.rotatePages(90);
+ break;
+ }
+ }
+
+ if (cmd === 4) { // shift-key
+ switch (evt.keyCode) {
+ case 32: // spacebar
+ if (!PresentationMode.active &&
+ PDFViewerApplication.currentScaleValue !== 'page-fit') {
+ break;
+ }
+ PDFViewerApplication.page--;
+ handled = true;
+ break;
+
+ case 82: // 'r'
+ PDFViewerApplication.rotatePages(-90);
+ break;
+ }
+ }
+
+ if (!handled && !PresentationMode.active) {
+ // 33=Page Up 34=Page Down 35=End 36=Home
+ // 37=Left 38=Up 39=Right 40=Down
+ if (evt.keyCode >= 33 && evt.keyCode <= 40 &&
+ !PDFViewerApplication.pdfViewer.containsElement(curElement)) {
+ // The page container is not focused, but a page navigation key has been
+ // pressed. Change the focus to the viewer container to make sure that
+ // navigation by keyboard works as expected.
+ PDFViewerApplication.pdfViewer.focus();
+ }
+ // 32=Spacebar
+ if (evt.keyCode === 32 && curElementTagName !== 'BUTTON') {
+ if (!PDFViewerApplication.pdfViewer.containsElement(curElement)) {
+ PDFViewerApplication.pdfViewer.focus();
+ }
+ }
+ }
+
+ if (cmd === 2) { // alt-key
+ switch (evt.keyCode) {
+ case 37: // left arrow
+ if (PresentationMode.active) {
+ PDFHistory.back();
+ handled = true;
+ }
+ break;
+ case 39: // right arrow
+ if (PresentationMode.active) {
+ PDFHistory.forward();
+ handled = true;
+ }
+ break;
+ }
+ }
+
+ if (handled) {
+ evt.preventDefault();
+ PDFViewerApplication.clearMouseScrollState();
+ }
+});
+
+window.addEventListener('beforeprint', function beforePrint(evt) {
+ PDFViewerApplication.beforePrint();
+});
+
+window.addEventListener('afterprint', function afterPrint(evt) {
+ PDFViewerApplication.afterPrint();
+});
+
+(function animationStartedClosure() {
+ // The offsetParent is not set until the pdf.js iframe or object is visible.
+ // Waiting for first animation.
+ PDFViewerApplication.animationStartedPromise = new Promise(
+ function (resolve) {
+ window.requestAnimationFrame(resolve);
+ });
+})();
+
+
diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp
index 0c35bc52..e99ec4db 100644
--- a/pdf-as-web/src/main/webapp/index.jsp
+++ b/pdf-as-web/src/main/webapp/index.jsp
@@ -8,16 +8,16 @@
<link rel="stylesheet" href="assets/css/style.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script>
+ <script src="assets/js/pdf.js/build/pdf.js"></script>
<script src="assets/js/dragNdrop.js"></script>
- <script src="assets/js/jspdf/jspdf.js"></script>
+
</head>
<body>
<header>
<p>header</p>
</header>
- <div id="leftMain">
-
+ <div id="sidebar">
<div id="fileSelector" class="container">
<h3 class="center">File Selector</h3>
<div id="dropzone" class="center">
@@ -34,19 +34,19 @@
<fieldset>
<table>
<tr>
- <td><input type="radio" id="handy" name="sign" value="handy"></td>
- <td><label for="handy">Handy</td>
- <td><label for="handy"><img src="assets/img/mobileBKU.png" alt="Sign via mobile BKU"/></td>
+ <td><input type="radio" id="mobileBKU" name="connector" value="mobileBKU" checked></td>
+ <td><label for="mobileBKU">Handy</td>
+ <td><label for="mobileBKU"><img src="assets/img/mobileBKU.png" alt="Sign via mobile BKU"/></td>
</tr>
<tr>
- <td><input type="radio" id="localBKU" name="sign" value="localBKU" checked></td>
+ <td><input type="radio" id="localBKU" name="connector" value="localBKU"></td>
<td><label for="localBKU">Lokale BKU</label></td>
<td><label for="localBKU"><img src="assets/img/onlineBKU.png" alt="Sign via local BKU" /></label></td>
</tr>
<tr>
- <td><input type="radio" id="onlineBKU" name="sign" value="onlineBKU"></td>
+ <td><input type="radio" id="onlineBKU" name="connector" value="onlineBKU"></td>
<td><label for="onlineBKU">Online BKU</label></td>
<td><label for="onlineBKU"><img src="assets/img/onlineBKU.png" alt="Sign via online BKU"/></label></td>
@@ -59,10 +59,14 @@
<div id="language" class="container">
<h3 class="center">Language</h3>
<fieldset>
- <input type="radio" id="langEn" name="lang" value="langEn" checked><label>Englisch</label><br>
- <input type="radio" id="langDe" name="lang" value="langDe"><label>Deutsch</label><br>
+ <input type="radio" id="EN" name="locale" value="EN" checked><label>Englisch</label><br>
+ <input type="radio" id="DE" name="locale" value="DE"><label>Deutsch</label><br>
</fieldset>
</div>
+
+ <div id="btnSign">
+ <h3 class="center">Sign Document</h3>
+ </div>
</div>