pdfjs-dist 2.0.943 → 2.4.456

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pdfjs-dist might be problematic. Click here for more details.

Files changed (192) hide show
  1. package/CODE_OF_CONDUCT.md +15 -0
  2. package/README.md +4 -0
  3. package/bower.json +1 -1
  4. package/build/pdf.js +8286 -14230
  5. package/build/pdf.js.map +1 -1
  6. package/build/pdf.min.js +22 -1
  7. package/build/pdf.worker.entry.js +5 -3
  8. package/build/pdf.worker.js +25500 -26628
  9. package/build/pdf.worker.js.map +1 -1
  10. package/build/pdf.worker.min.js +22 -1
  11. package/es5/build/pdf.js +25473 -0
  12. package/es5/build/pdf.js.map +1 -0
  13. package/{lib/shared/global_scope.js → es5/build/pdf.worker.entry.js} +5 -10
  14. package/es5/build/pdf.worker.js +57878 -0
  15. package/es5/build/pdf.worker.js.map +1 -0
  16. package/es5/web/images/annotation-check.svg +11 -0
  17. package/es5/web/images/annotation-comment.svg +16 -0
  18. package/es5/web/images/annotation-help.svg +26 -0
  19. package/es5/web/images/annotation-insert.svg +10 -0
  20. package/es5/web/images/annotation-key.svg +11 -0
  21. package/es5/web/images/annotation-newparagraph.svg +11 -0
  22. package/es5/web/images/annotation-noicon.svg +7 -0
  23. package/es5/web/images/annotation-note.svg +42 -0
  24. package/es5/web/images/annotation-paragraph.svg +16 -0
  25. package/es5/web/images/loading-icon.gif +0 -0
  26. package/es5/web/images/shadow.png +0 -0
  27. package/es5/web/images/texture.png +0 -0
  28. package/es5/web/pdf_viewer.css +407 -0
  29. package/es5/web/pdf_viewer.js +7757 -0
  30. package/es5/web/pdf_viewer.js.map +1 -0
  31. package/image_decoders/pdf.image_decoders.js +2887 -4094
  32. package/image_decoders/pdf.image_decoders.js.map +1 -1
  33. package/image_decoders/pdf.image_decoders.min.js +22 -1
  34. package/lib/README.md +7 -0
  35. package/lib/core/annotation.js +855 -778
  36. package/lib/core/arithmetic_decoder.js +325 -311
  37. package/lib/core/bidi.js +117 -50
  38. package/lib/core/ccitt.js +251 -89
  39. package/lib/core/ccitt_stream.js +26 -16
  40. package/lib/core/cff_parser.js +525 -197
  41. package/lib/core/charsets.js +6 -5
  42. package/lib/core/chunked_stream.js +541 -406
  43. package/lib/core/cmap.js +368 -253
  44. package/lib/core/colorspace.js +781 -800
  45. package/lib/core/core_utils.js +152 -0
  46. package/lib/core/crypto.js +609 -422
  47. package/lib/core/document.js +649 -481
  48. package/lib/core/encodings.js +33 -24
  49. package/lib/core/evaluator.js +1471 -736
  50. package/lib/core/font_renderer.js +289 -149
  51. package/lib/core/fonts.js +1067 -413
  52. package/lib/core/function.js +517 -287
  53. package/lib/core/glyphlist.js +4529 -4527
  54. package/lib/core/image.js +232 -114
  55. package/lib/core/image_utils.js +94 -0
  56. package/lib/core/jbig2.js +711 -342
  57. package/lib/core/jbig2_stream.js +31 -19
  58. package/lib/core/jpeg_stream.js +151 -26
  59. package/lib/core/jpg.js +433 -181
  60. package/lib/core/jpx.js +551 -143
  61. package/lib/core/jpx_stream.js +40 -28
  62. package/lib/core/metrics.js +2931 -2931
  63. package/lib/core/murmurhash3.js +104 -97
  64. package/lib/core/obj.js +1561 -1053
  65. package/lib/core/operator_list.js +192 -64
  66. package/lib/core/parser.js +1162 -864
  67. package/lib/core/pattern.js +224 -75
  68. package/lib/core/pdf_manager.js +154 -285
  69. package/lib/core/primitives.js +145 -69
  70. package/lib/core/ps_parser.js +212 -162
  71. package/lib/core/standard_fonts.js +245 -244
  72. package/lib/core/stream.js +353 -81
  73. package/lib/core/type1_parser.js +218 -68
  74. package/lib/core/unicode.js +1682 -1655
  75. package/lib/core/worker.js +233 -302
  76. package/lib/core/worker_stream.js +168 -0
  77. package/lib/display/annotation_layer.js +808 -862
  78. package/lib/display/api.js +1778 -1462
  79. package/lib/display/api_compatibility.js +14 -9
  80. package/lib/display/canvas.js +463 -140
  81. package/lib/display/content_disposition.js +86 -58
  82. package/lib/display/display_utils.js +524 -0
  83. package/lib/display/fetch_stream.js +202 -274
  84. package/lib/display/font_loader.js +311 -333
  85. package/lib/display/metadata.js +98 -88
  86. package/lib/display/network.js +343 -347
  87. package/lib/display/network_utils.js +46 -26
  88. package/lib/display/node_stream.js +326 -404
  89. package/lib/display/pattern_helper.js +168 -69
  90. package/lib/display/svg.js +1296 -885
  91. package/lib/display/text_layer.js +229 -103
  92. package/lib/display/transport_stream.js +290 -250
  93. package/lib/display/webgl.js +116 -83
  94. package/lib/display/worker_options.js +6 -5
  95. package/lib/display/xml_parser.js +358 -337
  96. package/lib/examples/node/domstubs.js +95 -39
  97. package/lib/pdf.js +49 -31
  98. package/lib/pdf.worker.js +7 -5
  99. package/lib/shared/compatibility.js +3 -145
  100. package/lib/shared/is_node.js +8 -7
  101. package/lib/shared/message_handler.js +367 -314
  102. package/lib/shared/util.js +421 -415
  103. package/lib/test/unit/annotation_spec.js +1570 -690
  104. package/lib/test/unit/api_spec.js +855 -493
  105. package/lib/test/unit/bidi_spec.js +12 -12
  106. package/lib/test/unit/cff_parser_spec.js +88 -61
  107. package/lib/test/unit/clitests_helper.js +9 -12
  108. package/lib/test/unit/cmap_spec.js +140 -88
  109. package/lib/test/unit/colorspace_spec.js +204 -152
  110. package/lib/test/unit/core_utils_spec.js +211 -0
  111. package/lib/test/unit/crypto_spec.js +194 -182
  112. package/lib/test/unit/custom_spec.js +50 -64
  113. package/lib/test/unit/display_svg_spec.js +53 -38
  114. package/lib/test/unit/display_utils_spec.js +263 -0
  115. package/lib/test/unit/document_spec.js +17 -22
  116. package/lib/test/unit/encodings_spec.js +15 -57
  117. package/lib/test/unit/evaluator_spec.js +90 -83
  118. package/lib/test/unit/fetch_stream_spec.js +111 -0
  119. package/lib/test/unit/function_spec.js +219 -205
  120. package/lib/test/unit/jasmine-boot.js +68 -39
  121. package/lib/test/unit/message_handler_spec.js +187 -160
  122. package/lib/test/unit/metadata_spec.js +87 -34
  123. package/lib/test/unit/murmurhash3_spec.js +13 -13
  124. package/lib/test/unit/network_spec.js +26 -59
  125. package/lib/test/unit/network_utils_spec.js +187 -121
  126. package/lib/test/unit/node_stream_spec.js +98 -90
  127. package/lib/test/unit/parser_spec.js +173 -131
  128. package/lib/test/unit/pdf_find_controller_spec.js +148 -67
  129. package/lib/test/unit/pdf_find_utils_spec.js +35 -34
  130. package/lib/test/unit/pdf_history_spec.js +45 -33
  131. package/lib/test/unit/primitives_spec.js +161 -126
  132. package/lib/test/unit/stream_spec.js +22 -15
  133. package/lib/test/unit/test_utils.js +149 -98
  134. package/lib/test/unit/testreporter.js +36 -18
  135. package/lib/test/unit/type1_parser_spec.js +46 -44
  136. package/lib/test/unit/ui_utils_spec.js +388 -372
  137. package/lib/test/unit/unicode_spec.js +49 -46
  138. package/lib/test/unit/util_spec.js +144 -248
  139. package/lib/web/annotation_layer_builder.js +75 -95
  140. package/lib/web/app.js +1538 -1147
  141. package/lib/web/app_options.js +116 -104
  142. package/lib/web/base_viewer.js +950 -775
  143. package/lib/web/chromecom.js +217 -225
  144. package/lib/web/debugger.js +236 -148
  145. package/lib/web/download_manager.js +50 -50
  146. package/lib/web/firefox_print_service.js +51 -33
  147. package/lib/web/firefoxcom.js +225 -352
  148. package/lib/web/genericcom.js +30 -93
  149. package/lib/web/genericl10n.js +26 -143
  150. package/lib/web/grab_to_pan.js +57 -33
  151. package/lib/web/interfaces.js +105 -232
  152. package/lib/web/overlay_manager.js +73 -227
  153. package/lib/web/password_prompt.js +44 -62
  154. package/lib/web/pdf_attachment_viewer.js +118 -123
  155. package/lib/web/pdf_cursor_tools.js +89 -93
  156. package/lib/web/pdf_document_properties.js +242 -281
  157. package/lib/web/pdf_find_bar.js +157 -163
  158. package/lib/web/pdf_find_controller.js +598 -454
  159. package/lib/web/pdf_find_utils.js +32 -16
  160. package/lib/web/pdf_history.js +481 -355
  161. package/lib/web/pdf_link_service.js +355 -323
  162. package/lib/web/pdf_outline_viewer.js +167 -152
  163. package/lib/web/pdf_page_view.js +511 -457
  164. package/lib/web/pdf_presentation_mode.js +347 -335
  165. package/lib/web/pdf_print_service.js +133 -103
  166. package/lib/web/pdf_rendering_queue.js +98 -100
  167. package/lib/web/pdf_sidebar.js +323 -299
  168. package/lib/web/pdf_sidebar_resizer.js +107 -108
  169. package/lib/web/pdf_single_page_viewer.js +94 -146
  170. package/lib/web/pdf_thumbnail_view.js +319 -269
  171. package/lib/web/pdf_thumbnail_viewer.js +219 -199
  172. package/lib/web/pdf_viewer.component.js +111 -32
  173. package/lib/web/pdf_viewer.js +61 -101
  174. package/lib/web/preferences.js +87 -272
  175. package/lib/web/secondary_toolbar.js +207 -220
  176. package/lib/web/text_layer_builder.js +322 -322
  177. package/lib/web/toolbar.js +227 -180
  178. package/lib/web/ui_utils.js +476 -421
  179. package/lib/web/view_history.js +59 -208
  180. package/lib/web/viewer_compatibility.js +9 -6
  181. package/package.json +2 -9
  182. package/web/pdf_viewer.css +36 -22
  183. package/web/pdf_viewer.js +4407 -4516
  184. package/web/pdf_viewer.js.map +1 -1
  185. package/webpack.js +14 -5
  186. package/external/streams/streams-lib.js +0 -3962
  187. package/external/url/url-lib.js +0 -627
  188. package/lib/display/dom_utils.js +0 -441
  189. package/lib/shared/streams_polyfill.js +0 -39
  190. package/lib/shared/url_polyfill.js +0 -50
  191. package/lib/test/unit/dom_utils_spec.js +0 -89
  192. package/lib/web/dom_events.js +0 -140
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="40"
5
+ height="40"
6
+ viewBox="0 0 40 40">
7
+ <path
8
+ d="M 1.5006714,23.536225 6.8925879,18.994244 14.585721,26.037937 34.019683,4.5410479 38.499329,9.2235032 14.585721,35.458952 z"
9
+ id="path4"
10
+ style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.25402856;stroke-opacity:1" />
11
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ height="40"
5
+ width="40"
6
+ viewBox="0 0 40 40">
7
+ <rect
8
+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
9
+ width="33.76017"
10
+ height="33.76017"
11
+ x="3.119915"
12
+ y="3.119915" />
13
+ <path
14
+ d="m 20.677967,8.54499 c -7.342801,0 -13.295293,4.954293 -13.295293,11.065751 0,2.088793 0.3647173,3.484376 1.575539,5.150563 L 6.0267418,31.45501 13.560595,29.011117 c 2.221262,1.387962 4.125932,1.665377 7.117372,1.665377 7.3428,0 13.295291,-4.954295 13.295291,-11.065753 0,-6.111458 -5.952491,-11.065751 -13.295291,-11.065751 z"
15
+ style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.93031836;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"/>
16
+ </svg>
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="40"
5
+ height="40"
6
+ viewBox="0 0 40 40">
7
+ <g
8
+ transform="translate(0,-60)"
9
+ id="layer1">
10
+ <rect
11
+ width="36.460953"
12
+ height="34.805603"
13
+ x="1.7695236"
14
+ y="62.597198"
15
+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.30826771;stroke-opacity:1" />
16
+ <g
17
+ transform="matrix(0.88763677,0,0,0.88763677,2.2472646,8.9890584)">
18
+ <path
19
+ d="M 20,64.526342 C 11.454135,64.526342 4.5263421,71.454135 4.5263421,80 4.5263421,88.545865 11.454135,95.473658 20,95.473658 28.545865,95.473658 35.473658,88.545865 35.473658,80 35.473658,71.454135 28.545865,64.526342 20,64.526342 z m -0.408738,9.488564 c 3.527079,0 6.393832,2.84061 6.393832,6.335441 0,3.494831 -2.866753,6.335441 -6.393832,6.335441 -3.527079,0 -6.393832,-2.84061 -6.393832,-6.335441 0,-3.494831 2.866753,-6.335441 6.393832,-6.335441 z"
20
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.02768445;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
21
+ <path
22
+ d="m 7.2335209,71.819938 4.9702591,4.161823 c -1.679956,2.581606 -1.443939,6.069592 0.159325,8.677725 l -5.1263071,3.424463 c 0.67516,1.231452 3.0166401,3.547686 4.2331971,4.194757 l 3.907728,-4.567277 c 2.541952,1.45975 5.730694,1.392161 8.438683,-0.12614 l 3.469517,6.108336 c 1.129779,-0.44367 4.742234,-3.449633 5.416358,-5.003859 l -5.46204,-4.415541 c 1.44319,-2.424098 1.651175,-5.267515 0.557303,-7.748623 l 5.903195,-3.833951 C 33.14257,71.704996 30.616217,69.018606 29.02952,67.99296 l -4.118813,4.981678 C 22.411934,71.205099 18.900853,70.937534 16.041319,72.32916 l -3.595408,-5.322091 c -1.345962,0.579488 -4.1293881,2.921233 -5.2123901,4.812869 z m 8.1010311,3.426672 c 2.75284,-2.446266 6.769149,-2.144694 9.048998,0.420874 2.279848,2.56557 2.113919,6.596919 -0.638924,9.043185 -2.752841,2.446267 -6.775754,2.13726 -9.055604,-0.428308 -2.279851,-2.565568 -2.107313,-6.589485 0.64553,-9.035751 z"
23
+ style="fill:#000000;fill-opacity:1;stroke:none" />
24
+ </g>
25
+ </g>
26
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="64"
5
+ height="64"
6
+ viewBox="0 0 64 64">
7
+ <path
8
+ d="M 32.003143,1.4044602 57.432701,62.632577 6.5672991,62.627924 z"
9
+ style="fill:#ffff00;fill-opacity:0.94117647;fill-rule:nonzero;stroke:#000000;stroke-width:1.00493038;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
10
+ </svg>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="64"
5
+ height="64"
6
+ viewBox="0 0 64 64">
7
+ <path
8
+ d="M 25.470843,9.4933766 C 25.30219,12.141818 30.139101,14.445969 34.704831,13.529144 40.62635,12.541995 41.398833,7.3856498 35.97505,5.777863 31.400921,4.1549155 25.157674,6.5445892 25.470843,9.4933766 z M 4.5246282,17.652051 C 4.068249,11.832873 9.2742983,5.9270407 18.437379,3.0977088 29.751911,-0.87185184 45.495663,1.4008022 53.603953,7.1104009 c 9.275765,6.1889221 7.158128,16.2079421 -3.171076,21.5939521 -1.784316,1.635815 -6.380222,1.21421 -7.068351,3.186186 -1.04003,0.972427 -1.288046,2.050158 -1.232864,3.168203 1.015111,2.000108 -3.831548,1.633216 -3.270553,3.759574 0.589477,5.264544 -0.179276,10.53738 -0.362842,15.806257 -0.492006,2.184998 1.163456,4.574232 -0.734888,6.610642 -2.482919,2.325184 -7.30604,2.189143 -9.193497,-0.274767 -2.733688,-1.740626 -8.254447,-3.615254 -6.104247,-6.339626 3.468112,-1.708686 -2.116197,-3.449897 0.431242,-5.080274 5.058402,-1.39256 -2.393215,-2.304318 -0.146889,-4.334645 3.069198,-0.977415 2.056986,-2.518352 -0.219121,-3.540397 1.876567,-1.807151 1.484149,-4.868919 -2.565455,-5.942205 0.150866,-1.805474 2.905737,-4.136876 -1.679967,-5.20493 C 10.260902,27.882167 4.6872697,22.95045 4.5245945,17.652051 z"
9
+ id="path604"
10
+ style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.72665179;stroke-opacity:1" />
11
+ </svg>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="64"
5
+ height="64"
6
+ viewBox="0 0 64 64">
7
+ <path
8
+ d="M 32.003143,10.913072 57.432701,53.086929 6.567299,53.083723 z"
9
+ id="path2985"
10
+ 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" />
11
+ </svg>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="40"
5
+ height="40"
6
+ viewBox="0 0 40 40">
7
+ </svg>
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="40"
5
+ height="40"
6
+ viewBox="0 0 40 40">
7
+ <rect
8
+ width="36.075428"
9
+ height="31.096582"
10
+ x="1.962286"
11
+ y="4.4517088"
12
+ id="rect4"
13
+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.23004246;stroke-opacity:1" />
14
+ <rect
15
+ width="27.96859"
16
+ height="1.5012145"
17
+ x="6.0157046"
18
+ y="10.285"
19
+ id="rect6"
20
+ style="fill:#000000;fill-opacity:1;stroke:none" />
21
+ <rect
22
+ width="27.96859"
23
+ height="0.85783684"
24
+ x="6.0157056"
25
+ y="23.21689"
26
+ id="rect8"
27
+ style="fill:#000000;fill-opacity:1;stroke:none" />
28
+ <rect
29
+ width="27.96859"
30
+ height="0.85783684"
31
+ x="5.8130345"
32
+ y="28.964394"
33
+ id="rect10"
34
+ style="fill:#000000;fill-opacity:1;stroke:none" />
35
+ <rect
36
+ width="27.96859"
37
+ height="0.85783684"
38
+ x="6.0157046"
39
+ y="17.426493"
40
+ id="rect12"
41
+ style="fill:#000000;fill-opacity:1;stroke:none" />
42
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="40"
5
+ height="40"
6
+ viewBox="0 0 40 40">
7
+ <rect
8
+ width="33.76017"
9
+ height="33.76017"
10
+ x="3.119915"
11
+ y="3.119915"
12
+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
13
+ <path
14
+ 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"
15
+ 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" />
16
+ </svg>
Binary file
Binary file
Binary file
@@ -0,0 +1,407 @@
1
+ /* Copyright 2014 Mozilla Foundation
2
+ *
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+
16
+ .textLayer {
17
+ position: absolute;
18
+ left: 0;
19
+ top: 0;
20
+ right: 0;
21
+ bottom: 0;
22
+ overflow: hidden;
23
+ opacity: 0.2;
24
+ line-height: 1.0;
25
+ }
26
+
27
+ .textLayer > span {
28
+ color: transparent;
29
+ position: absolute;
30
+ white-space: pre;
31
+ cursor: text;
32
+ -webkit-transform-origin: 0% 0%;
33
+ transform-origin: 0% 0%;
34
+ }
35
+
36
+ .textLayer .highlight {
37
+ margin: -1px;
38
+ padding: 1px;
39
+ background-color: rgba(180, 0, 170, 1);
40
+ border-radius: 4px;
41
+ }
42
+
43
+ .textLayer .highlight.begin {
44
+ border-radius: 4px 0px 0px 4px;
45
+ }
46
+
47
+ .textLayer .highlight.end {
48
+ border-radius: 0px 4px 4px 0px;
49
+ }
50
+
51
+ .textLayer .highlight.middle {
52
+ border-radius: 0px;
53
+ }
54
+
55
+ .textLayer .highlight.selected {
56
+ background-color: rgba(0, 100, 0, 1);
57
+ }
58
+
59
+ .textLayer ::-moz-selection {
60
+ background: rgba(0, 0, 255, 1);
61
+ }
62
+
63
+ .textLayer ::selection {
64
+ background: rgba(0, 0, 255, 1);
65
+ }
66
+
67
+ .textLayer .endOfContent {
68
+ display: block;
69
+ position: absolute;
70
+ left: 0px;
71
+ top: 100%;
72
+ right: 0px;
73
+ bottom: 0px;
74
+ z-index: -1;
75
+ cursor: default;
76
+ -webkit-user-select: none;
77
+ -moz-user-select: none;
78
+ -ms-user-select: none;
79
+ user-select: none;
80
+ }
81
+
82
+ .textLayer .endOfContent.active {
83
+ top: 0px;
84
+ }
85
+
86
+
87
+ .annotationLayer section {
88
+ position: absolute;
89
+ }
90
+
91
+ .annotationLayer .linkAnnotation > a,
92
+ .annotationLayer .buttonWidgetAnnotation.pushButton > a {
93
+ position: absolute;
94
+ font-size: 1em;
95
+ top: 0;
96
+ left: 0;
97
+ width: 100%;
98
+ height: 100%;
99
+ }
100
+
101
+ .annotationLayer .linkAnnotation > a:hover,
102
+ .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
103
+ opacity: 0.2;
104
+ background: rgba(255, 255, 0, 1);
105
+ box-shadow: 0px 2px 10px rgba(255, 255, 0, 1);
106
+ }
107
+
108
+ .annotationLayer .textAnnotation img {
109
+ position: absolute;
110
+ cursor: pointer;
111
+ }
112
+
113
+ .annotationLayer .textWidgetAnnotation input,
114
+ .annotationLayer .textWidgetAnnotation textarea,
115
+ .annotationLayer .choiceWidgetAnnotation select,
116
+ .annotationLayer .buttonWidgetAnnotation.checkBox input,
117
+ .annotationLayer .buttonWidgetAnnotation.radioButton input {
118
+ background-color: rgba(0, 54, 255, 0.13);
119
+ border: 1px solid transparent;
120
+ box-sizing: border-box;
121
+ font-size: 9px;
122
+ height: 100%;
123
+ margin: 0;
124
+ padding: 0 3px;
125
+ vertical-align: top;
126
+ width: 100%;
127
+ }
128
+
129
+ .annotationLayer .choiceWidgetAnnotation select option {
130
+ padding: 0;
131
+ }
132
+
133
+ .annotationLayer .buttonWidgetAnnotation.radioButton input {
134
+ border-radius: 50%;
135
+ }
136
+
137
+ .annotationLayer .textWidgetAnnotation textarea {
138
+ font: message-box;
139
+ font-size: 9px;
140
+ resize: none;
141
+ }
142
+
143
+ .annotationLayer .textWidgetAnnotation input[disabled],
144
+ .annotationLayer .textWidgetAnnotation textarea[disabled],
145
+ .annotationLayer .choiceWidgetAnnotation select[disabled],
146
+ .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
147
+ .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
148
+ background: none;
149
+ border: 1px solid transparent;
150
+ cursor: not-allowed;
151
+ }
152
+
153
+ .annotationLayer .textWidgetAnnotation input:hover,
154
+ .annotationLayer .textWidgetAnnotation textarea:hover,
155
+ .annotationLayer .choiceWidgetAnnotation select:hover,
156
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
157
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
158
+ border: 1px solid rgba(0, 0, 0, 1);
159
+ }
160
+
161
+ .annotationLayer .textWidgetAnnotation input:focus,
162
+ .annotationLayer .textWidgetAnnotation textarea:focus,
163
+ .annotationLayer .choiceWidgetAnnotation select:focus {
164
+ background: none;
165
+ border: 1px solid transparent;
166
+ }
167
+
168
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
169
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
170
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
171
+ background-color: rgba(0, 0, 0, 1);
172
+ content: '';
173
+ display: block;
174
+ position: absolute;
175
+ }
176
+
177
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
178
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
179
+ height: 80%;
180
+ left: 45%;
181
+ width: 1px;
182
+ }
183
+
184
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
185
+ -webkit-transform: rotate(45deg);
186
+ transform: rotate(45deg);
187
+ }
188
+
189
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
190
+ -webkit-transform: rotate(-45deg);
191
+ transform: rotate(-45deg);
192
+ }
193
+
194
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
195
+ border-radius: 50%;
196
+ height: 50%;
197
+ left: 30%;
198
+ top: 20%;
199
+ width: 50%;
200
+ }
201
+
202
+ .annotationLayer .textWidgetAnnotation input.comb {
203
+ font-family: monospace;
204
+ padding-left: 2px;
205
+ padding-right: 0;
206
+ }
207
+
208
+ .annotationLayer .textWidgetAnnotation input.comb:focus {
209
+ /*
210
+ * Letter spacing is placed on the right side of each character. Hence, the
211
+ * letter spacing of the last character may be placed outside the visible
212
+ * area, causing horizontal scrolling. We avoid this by extending the width
213
+ * when the element has focus and revert this when it loses focus.
214
+ */
215
+ width: 115%;
216
+ }
217
+
218
+ .annotationLayer .buttonWidgetAnnotation.checkBox input,
219
+ .annotationLayer .buttonWidgetAnnotation.radioButton input {
220
+ -webkit-appearance: none;
221
+ -moz-appearance: none;
222
+ appearance: none;
223
+ padding: 0;
224
+ }
225
+
226
+ .annotationLayer .popupWrapper {
227
+ position: absolute;
228
+ width: 20em;
229
+ }
230
+
231
+ .annotationLayer .popup {
232
+ position: absolute;
233
+ z-index: 200;
234
+ max-width: 20em;
235
+ background-color: rgba(255, 255, 153, 1);
236
+ box-shadow: 0px 2px 5px rgba(136, 136, 136, 1);
237
+ border-radius: 2px;
238
+ padding: 6px;
239
+ margin-left: 5px;
240
+ cursor: pointer;
241
+ font: message-box;
242
+ font-size: 9px;
243
+ word-wrap: break-word;
244
+ }
245
+
246
+ .annotationLayer .popup > * {
247
+ font-size: 9px;
248
+ }
249
+
250
+ .annotationLayer .popup h1 {
251
+ display: inline-block;
252
+ }
253
+
254
+ .annotationLayer .popup span {
255
+ display: inline-block;
256
+ margin-left: 5px;
257
+ }
258
+
259
+ .annotationLayer .popup p {
260
+ border-top: 1px solid rgba(51, 51, 51, 1);
261
+ margin-top: 2px;
262
+ padding-top: 2px;
263
+ }
264
+
265
+ .annotationLayer .highlightAnnotation,
266
+ .annotationLayer .underlineAnnotation,
267
+ .annotationLayer .squigglyAnnotation,
268
+ .annotationLayer .strikeoutAnnotation,
269
+ .annotationLayer .freeTextAnnotation,
270
+ .annotationLayer .lineAnnotation svg line,
271
+ .annotationLayer .squareAnnotation svg rect,
272
+ .annotationLayer .circleAnnotation svg ellipse,
273
+ .annotationLayer .polylineAnnotation svg polyline,
274
+ .annotationLayer .polygonAnnotation svg polygon,
275
+ .annotationLayer .caretAnnotation,
276
+ .annotationLayer .inkAnnotation svg polyline,
277
+ .annotationLayer .stampAnnotation,
278
+ .annotationLayer .fileAttachmentAnnotation {
279
+ cursor: pointer;
280
+ }
281
+
282
+ .pdfViewer .canvasWrapper {
283
+ overflow: hidden;
284
+ }
285
+
286
+ .pdfViewer .page {
287
+ direction: ltr;
288
+ width: 816px;
289
+ height: 1056px;
290
+ margin: 1px auto -8px auto;
291
+ position: relative;
292
+ overflow: visible;
293
+ border: 9px solid transparent;
294
+ background-clip: content-box;
295
+ -webkit-border-image: url(images/shadow.png) 9 9 repeat;
296
+ -o-border-image: url(images/shadow.png) 9 9 repeat;
297
+ border-image: url(images/shadow.png) 9 9 repeat;
298
+ background-color: rgba(255, 255, 255, 1);
299
+ }
300
+
301
+ .pdfViewer.removePageBorders .page {
302
+ margin: 0px auto 10px auto;
303
+ border: none;
304
+ }
305
+
306
+ .pdfViewer.singlePageView {
307
+ display: inline-block;
308
+ }
309
+
310
+ .pdfViewer.singlePageView .page {
311
+ margin: 0;
312
+ border: none;
313
+ }
314
+
315
+ .pdfViewer.scrollHorizontal, .pdfViewer.scrollWrapped, .spread {
316
+ margin-left: 3.5px;
317
+ margin-right: 3.5px;
318
+ text-align: center;
319
+ }
320
+
321
+ .pdfViewer.scrollHorizontal, .spread {
322
+ white-space: nowrap;
323
+ }
324
+
325
+ .pdfViewer.removePageBorders,
326
+ .pdfViewer.scrollHorizontal .spread,
327
+ .pdfViewer.scrollWrapped .spread {
328
+ margin-left: 0;
329
+ margin-right: 0;
330
+ }
331
+
332
+ .spread .page,
333
+ .pdfViewer.scrollHorizontal .page,
334
+ .pdfViewer.scrollWrapped .page,
335
+ .pdfViewer.scrollHorizontal .spread,
336
+ .pdfViewer.scrollWrapped .spread {
337
+ display: inline-block;
338
+ vertical-align: middle;
339
+ }
340
+
341
+ .spread .page,
342
+ .pdfViewer.scrollHorizontal .page,
343
+ .pdfViewer.scrollWrapped .page {
344
+ margin-left: -3.5px;
345
+ margin-right: -3.5px;
346
+ }
347
+
348
+ .pdfViewer.removePageBorders .spread .page,
349
+ .pdfViewer.removePageBorders.scrollHorizontal .page,
350
+ .pdfViewer.removePageBorders.scrollWrapped .page {
351
+ margin-left: 5px;
352
+ margin-right: 5px;
353
+ }
354
+
355
+ .pdfViewer .page canvas {
356
+ margin: 0;
357
+ display: block;
358
+ }
359
+
360
+ .pdfViewer .page canvas[hidden] {
361
+ display: none;
362
+ }
363
+
364
+ .pdfViewer .page .loadingIcon {
365
+ position: absolute;
366
+ display: block;
367
+ left: 0;
368
+ top: 0;
369
+ right: 0;
370
+ bottom: 0;
371
+ background: url('images/loading-icon.gif') center no-repeat;
372
+ }
373
+
374
+ .pdfPresentationMode .pdfViewer {
375
+ margin-left: 0;
376
+ margin-right: 0;
377
+ }
378
+
379
+ .pdfPresentationMode .pdfViewer .page,
380
+ .pdfPresentationMode .pdfViewer .spread {
381
+ display: block;
382
+ }
383
+
384
+ .pdfPresentationMode .pdfViewer .page,
385
+ .pdfPresentationMode .pdfViewer.removePageBorders .page {
386
+ margin-left: auto;
387
+ margin-right: auto;
388
+ }
389
+
390
+ .pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
391
+ margin-bottom: 100% !important;
392
+ }
393
+
394
+ .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
395
+ margin-bottom: 100%;
396
+ border: 0;
397
+ }
398
+
399
+ .pdfPresentationMode:-moz-full-screen .pdfViewer .page {
400
+ margin-bottom: 100%;
401
+ border: 0;
402
+ }
403
+
404
+ .pdfPresentationMode:fullscreen .pdfViewer .page {
405
+ margin-bottom: 100%;
406
+ border: 0;
407
+ }