pdfjs-dist 2.3.200 → 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 (185) hide show
  1. package/README.md +4 -0
  2. package/bower.json +1 -1
  3. package/build/pdf.js +6499 -17971
  4. package/build/pdf.js.map +1 -1
  5. package/build/pdf.min.js +22 -1
  6. package/build/pdf.worker.entry.js +5 -3
  7. package/build/pdf.worker.js +19303 -29896
  8. package/build/pdf.worker.js.map +1 -1
  9. package/build/pdf.worker.min.js +22 -1
  10. package/es5/build/pdf.js +25473 -0
  11. package/es5/build/pdf.js.map +1 -0
  12. package/{lib/shared/global_scope.js → es5/build/pdf.worker.entry.js} +5 -10
  13. package/es5/build/pdf.worker.js +57878 -0
  14. package/es5/build/pdf.worker.js.map +1 -0
  15. package/es5/web/images/annotation-check.svg +11 -0
  16. package/es5/web/images/annotation-comment.svg +16 -0
  17. package/es5/web/images/annotation-help.svg +26 -0
  18. package/es5/web/images/annotation-insert.svg +10 -0
  19. package/es5/web/images/annotation-key.svg +11 -0
  20. package/es5/web/images/annotation-newparagraph.svg +11 -0
  21. package/es5/web/images/annotation-noicon.svg +7 -0
  22. package/es5/web/images/annotation-note.svg +42 -0
  23. package/es5/web/images/annotation-paragraph.svg +16 -0
  24. package/es5/web/images/loading-icon.gif +0 -0
  25. package/es5/web/images/shadow.png +0 -0
  26. package/es5/web/images/texture.png +0 -0
  27. package/es5/web/pdf_viewer.css +407 -0
  28. package/es5/web/pdf_viewer.js +7757 -0
  29. package/es5/web/pdf_viewer.js.map +1 -0
  30. package/image_decoders/pdf.image_decoders.js +1333 -4839
  31. package/image_decoders/pdf.image_decoders.js.map +1 -1
  32. package/image_decoders/pdf.image_decoders.min.js +22 -1
  33. package/lib/README.md +7 -0
  34. package/lib/core/annotation.js +683 -1066
  35. package/lib/core/arithmetic_decoder.js +81 -97
  36. package/lib/core/bidi.js +54 -46
  37. package/lib/core/ccitt.js +88 -81
  38. package/lib/core/ccitt_stream.js +15 -14
  39. package/lib/core/cff_parser.js +196 -193
  40. package/lib/core/charsets.js +4 -4
  41. package/lib/core/chunked_stream.js +441 -569
  42. package/lib/core/cmap.js +220 -279
  43. package/lib/core/colorspace.js +699 -863
  44. package/lib/core/core_utils.js +59 -80
  45. package/lib/core/crypto.js +379 -437
  46. package/lib/core/document.js +564 -673
  47. package/lib/core/encodings.js +15 -15
  48. package/lib/core/evaluator.js +983 -889
  49. package/lib/core/font_renderer.js +128 -171
  50. package/lib/core/fonts.js +451 -400
  51. package/lib/core/function.js +289 -285
  52. package/lib/core/glyphlist.js +4527 -4527
  53. package/lib/core/image.js +138 -117
  54. package/lib/core/image_utils.js +46 -63
  55. package/lib/core/jbig2.js +324 -332
  56. package/lib/core/jbig2_stream.js +18 -17
  57. package/lib/core/jpeg_stream.js +133 -24
  58. package/lib/core/jpg.js +238 -210
  59. package/lib/core/jpx.js +158 -157
  60. package/lib/core/jpx_stream.js +28 -28
  61. package/lib/core/metrics.js +2928 -2928
  62. package/lib/core/murmurhash3.js +87 -102
  63. package/lib/core/obj.js +1111 -1302
  64. package/lib/core/operator_list.js +55 -42
  65. package/lib/core/parser.js +956 -987
  66. package/lib/core/pattern.js +69 -69
  67. package/lib/core/pdf_manager.js +149 -316
  68. package/lib/core/primitives.js +45 -77
  69. package/lib/core/ps_parser.js +175 -214
  70. package/lib/core/standard_fonts.js +237 -236
  71. package/lib/core/stream.js +83 -77
  72. package/lib/core/type1_parser.js +78 -68
  73. package/lib/core/unicode.js +1654 -1654
  74. package/lib/core/worker.js +148 -196
  75. package/lib/core/worker_stream.js +101 -210
  76. package/lib/display/annotation_layer.js +733 -1155
  77. package/lib/display/api.js +1539 -1928
  78. package/lib/display/api_compatibility.js +10 -8
  79. package/lib/display/canvas.js +159 -158
  80. package/lib/display/content_disposition.js +36 -55
  81. package/lib/display/display_utils.js +298 -551
  82. package/lib/display/fetch_stream.js +181 -305
  83. package/lib/display/font_loader.js +273 -416
  84. package/lib/display/metadata.js +86 -98
  85. package/lib/display/network.js +376 -511
  86. package/lib/display/network_utils.js +20 -19
  87. package/lib/display/node_stream.js +276 -460
  88. package/lib/display/pattern_helper.js +76 -44
  89. package/lib/display/svg.js +1137 -1405
  90. package/lib/display/text_layer.js +75 -82
  91. package/lib/display/transport_stream.js +236 -374
  92. package/lib/display/webgl.js +70 -83
  93. package/lib/display/worker_options.js +3 -3
  94. package/lib/display/xml_parser.js +303 -392
  95. package/lib/examples/node/domstubs.js +37 -37
  96. package/lib/pdf.js +22 -21
  97. package/lib/pdf.worker.js +5 -5
  98. package/lib/shared/compatibility.js +2 -251
  99. package/lib/shared/is_node.js +7 -6
  100. package/lib/shared/message_handler.js +222 -194
  101. package/lib/shared/util.js +269 -405
  102. package/lib/test/unit/annotation_spec.js +1089 -1014
  103. package/lib/test/unit/api_spec.js +617 -544
  104. package/lib/test/unit/bidi_spec.js +7 -7
  105. package/lib/test/unit/cff_parser_spec.js +63 -62
  106. package/lib/test/unit/clitests_helper.js +7 -9
  107. package/lib/test/unit/cmap_spec.js +84 -86
  108. package/lib/test/unit/colorspace_spec.js +154 -154
  109. package/lib/test/unit/core_utils_spec.js +125 -105
  110. package/lib/test/unit/crypto_spec.js +181 -181
  111. package/lib/test/unit/custom_spec.js +22 -24
  112. package/lib/test/unit/display_svg_spec.js +35 -36
  113. package/lib/test/unit/display_utils_spec.js +139 -149
  114. package/lib/test/unit/document_spec.js +16 -16
  115. package/lib/test/unit/encodings_spec.js +12 -34
  116. package/lib/test/unit/evaluator_spec.js +81 -95
  117. package/lib/test/unit/fetch_stream_spec.js +30 -30
  118. package/lib/test/unit/function_spec.js +206 -204
  119. package/lib/test/unit/jasmine-boot.js +48 -32
  120. package/lib/test/unit/message_handler_spec.js +172 -162
  121. package/lib/test/unit/metadata_spec.js +69 -69
  122. package/lib/test/unit/murmurhash3_spec.js +12 -12
  123. package/lib/test/unit/network_spec.js +12 -12
  124. package/lib/test/unit/network_utils_spec.js +152 -152
  125. package/lib/test/unit/node_stream_spec.js +74 -90
  126. package/lib/test/unit/parser_spec.js +107 -113
  127. package/lib/test/unit/pdf_find_controller_spec.js +55 -86
  128. package/lib/test/unit/pdf_find_utils_spec.js +32 -32
  129. package/lib/test/unit/pdf_history_spec.js +32 -32
  130. package/lib/test/unit/primitives_spec.js +117 -115
  131. package/lib/test/unit/stream_spec.js +16 -14
  132. package/lib/test/unit/test_utils.js +119 -285
  133. package/lib/test/unit/testreporter.js +19 -19
  134. package/lib/test/unit/type1_parser_spec.js +41 -41
  135. package/lib/test/unit/ui_utils_spec.js +318 -426
  136. package/lib/test/unit/unicode_spec.js +42 -42
  137. package/lib/test/unit/util_spec.js +122 -143
  138. package/lib/web/annotation_layer_builder.js +66 -103
  139. package/lib/web/app.js +1166 -1196
  140. package/lib/web/app_options.js +61 -77
  141. package/lib/web/base_viewer.js +804 -850
  142. package/lib/web/chromecom.js +164 -249
  143. package/lib/web/debugger.js +149 -205
  144. package/lib/web/download_manager.js +38 -57
  145. package/lib/web/firefox_print_service.js +35 -30
  146. package/lib/web/firefoxcom.js +175 -374
  147. package/lib/web/genericcom.js +26 -108
  148. package/lib/web/genericl10n.js +24 -153
  149. package/lib/web/grab_to_pan.js +30 -30
  150. package/lib/web/interfaces.js +80 -258
  151. package/lib/web/overlay_manager.js +70 -246
  152. package/lib/web/password_prompt.js +38 -64
  153. package/lib/web/pdf_attachment_viewer.js +105 -130
  154. package/lib/web/pdf_cursor_tools.js +75 -102
  155. package/lib/web/pdf_document_properties.js +227 -376
  156. package/lib/web/pdf_find_bar.js +137 -171
  157. package/lib/web/pdf_find_controller.js +492 -549
  158. package/lib/web/pdf_find_utils.js +13 -13
  159. package/lib/web/pdf_history.js +395 -406
  160. package/lib/web/pdf_link_service.js +302 -349
  161. package/lib/web/pdf_outline_viewer.js +148 -209
  162. package/lib/web/pdf_page_view.js +449 -507
  163. package/lib/web/pdf_presentation_mode.js +304 -357
  164. package/lib/web/pdf_print_service.js +90 -104
  165. package/lib/web/pdf_rendering_queue.js +87 -108
  166. package/lib/web/pdf_sidebar.js +264 -304
  167. package/lib/web/pdf_sidebar_resizer.js +92 -119
  168. package/lib/web/pdf_single_page_viewer.js +77 -126
  169. package/lib/web/pdf_thumbnail_view.js +276 -297
  170. package/lib/web/pdf_thumbnail_viewer.js +186 -206
  171. package/lib/web/pdf_viewer.component.js +20 -21
  172. package/lib/web/pdf_viewer.js +55 -115
  173. package/lib/web/preferences.js +66 -273
  174. package/lib/web/secondary_toolbar.js +164 -196
  175. package/lib/web/text_layer_builder.js +284 -317
  176. package/lib/web/toolbar.js +216 -211
  177. package/lib/web/ui_utils.js +303 -404
  178. package/lib/web/view_history.js +49 -222
  179. package/lib/web/viewer_compatibility.js +7 -5
  180. package/package.json +2 -9
  181. package/web/pdf_viewer.css +25 -18
  182. package/web/pdf_viewer.js +3481 -4764
  183. package/web/pdf_viewer.js.map +1 -1
  184. package/webpack.js +14 -5
  185. package/lib/shared/streams_polyfill.js +0 -43
@@ -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
+ }