pdfjs-dist 2.1.266 → 2.5.207

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 (191) 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 +8382 -18492
  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 +20417 -29816
  9. package/build/pdf.worker.js.map +1 -1
  10. package/build/pdf.worker.min.js +22 -1
  11. package/es5/build/pdf.js +25688 -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 +58239 -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 +403 -0
  29. package/es5/web/pdf_viewer.js +7742 -0
  30. package/es5/web/pdf_viewer.js.map +1 -0
  31. package/image_decoders/pdf.image_decoders.js +1475 -4897
  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 +750 -899
  36. package/lib/core/arithmetic_decoder.js +81 -97
  37. package/lib/core/bidi.js +54 -46
  38. package/lib/core/ccitt.js +88 -81
  39. package/lib/core/ccitt_stream.js +15 -14
  40. package/lib/core/cff_parser.js +235 -183
  41. package/lib/core/charsets.js +4 -4
  42. package/lib/core/chunked_stream.js +447 -542
  43. package/lib/core/cmap.js +222 -264
  44. package/lib/core/colorspace.js +699 -863
  45. package/lib/core/core_utils.js +152 -0
  46. package/lib/core/crypto.js +379 -437
  47. package/lib/core/document.js +573 -660
  48. package/lib/core/encodings.js +15 -15
  49. package/lib/core/evaluator.js +1103 -868
  50. package/lib/core/font_renderer.js +135 -178
  51. package/lib/core/fonts.js +570 -491
  52. package/lib/core/function.js +291 -288
  53. package/lib/core/glyphlist.js +4527 -4526
  54. package/lib/core/image.js +145 -149
  55. package/lib/core/image_utils.js +170 -0
  56. package/lib/core/jbig2.js +325 -316
  57. package/lib/core/jbig2_stream.js +18 -17
  58. package/lib/core/jpeg_stream.js +21 -26
  59. package/lib/core/jpg.js +284 -232
  60. package/lib/core/jpx.js +161 -143
  61. package/lib/core/jpx_stream.js +28 -28
  62. package/lib/core/metrics.js +2929 -2929
  63. package/lib/core/murmurhash3.js +90 -101
  64. package/lib/core/obj.js +1183 -1157
  65. package/lib/core/operator_list.js +99 -67
  66. package/lib/core/parser.js +972 -911
  67. package/lib/core/pattern.js +87 -70
  68. package/lib/core/pdf_manager.js +150 -315
  69. package/lib/core/primitives.js +83 -56
  70. package/lib/core/ps_parser.js +175 -214
  71. package/lib/core/standard_fonts.js +237 -236
  72. package/lib/core/stream.js +94 -74
  73. package/lib/core/type1_parser.js +87 -69
  74. package/lib/core/unicode.js +1654 -1654
  75. package/lib/core/worker.js +193 -390
  76. package/lib/core/worker_stream.js +168 -0
  77. package/lib/display/annotation_layer.js +741 -972
  78. package/lib/display/api.js +1500 -1791
  79. package/lib/display/api_compatibility.js +12 -17
  80. package/lib/display/canvas.js +165 -165
  81. package/lib/display/content_disposition.js +40 -59
  82. package/lib/display/display_utils.js +515 -0
  83. package/lib/display/fetch_stream.js +183 -298
  84. package/lib/display/font_loader.js +273 -413
  85. package/lib/display/metadata.js +86 -98
  86. package/lib/display/network.js +266 -359
  87. package/lib/display/network_utils.js +25 -18
  88. package/lib/display/node_stream.js +285 -458
  89. package/lib/display/pattern_helper.js +113 -65
  90. package/lib/display/svg.js +1166 -901
  91. package/lib/display/text_layer.js +156 -132
  92. package/lib/display/transport_stream.js +262 -278
  93. package/lib/display/webgl.js +70 -83
  94. package/lib/display/worker_options.js +3 -3
  95. package/lib/display/xml_parser.js +303 -392
  96. package/lib/examples/node/domstubs.js +40 -37
  97. package/lib/pdf.js +226 -59
  98. package/lib/pdf.worker.js +14 -6
  99. package/lib/shared/compatibility.js +3 -246
  100. package/lib/shared/is_node.js +7 -6
  101. package/lib/shared/message_handler.js +327 -332
  102. package/lib/shared/util.js +266 -416
  103. package/lib/test/unit/annotation_spec.js +1555 -701
  104. package/lib/test/unit/api_spec.js +802 -604
  105. package/lib/test/unit/bidi_spec.js +7 -7
  106. package/lib/test/unit/cff_parser_spec.js +84 -69
  107. package/lib/test/unit/clitests_helper.js +7 -9
  108. package/lib/test/unit/cmap_spec.js +74 -76
  109. package/lib/test/unit/colorspace_spec.js +166 -161
  110. package/lib/test/unit/core_utils_spec.js +211 -0
  111. package/lib/test/unit/crypto_spec.js +181 -181
  112. package/lib/test/unit/custom_spec.js +20 -22
  113. package/lib/test/unit/display_svg_spec.js +34 -39
  114. package/lib/test/unit/display_utils_spec.js +263 -0
  115. package/lib/test/unit/document_spec.js +16 -21
  116. package/lib/test/unit/encodings_spec.js +12 -34
  117. package/lib/test/unit/evaluator_spec.js +83 -83
  118. package/lib/test/unit/fetch_stream_spec.js +111 -0
  119. package/lib/test/unit/function_spec.js +206 -204
  120. package/lib/test/unit/jasmine-boot.js +46 -30
  121. package/lib/test/unit/message_handler_spec.js +173 -159
  122. package/lib/test/unit/metadata_spec.js +69 -69
  123. package/lib/test/unit/murmurhash3_spec.js +12 -12
  124. package/lib/test/unit/network_spec.js +13 -61
  125. package/lib/test/unit/network_utils_spec.js +183 -119
  126. package/lib/test/unit/node_stream_spec.js +78 -92
  127. package/lib/test/unit/parser_spec.js +172 -114
  128. package/lib/test/unit/pdf_find_controller_spec.js +55 -86
  129. package/lib/test/unit/pdf_find_utils_spec.js +32 -32
  130. package/lib/test/unit/pdf_history_spec.js +32 -32
  131. package/lib/test/unit/primitives_spec.js +140 -125
  132. package/lib/test/unit/stream_spec.js +16 -14
  133. package/lib/test/unit/test_utils.js +131 -143
  134. package/lib/test/unit/testreporter.js +19 -19
  135. package/lib/test/unit/type1_parser_spec.js +42 -42
  136. package/lib/test/unit/ui_utils_spec.js +297 -459
  137. package/lib/test/unit/unicode_spec.js +38 -38
  138. package/lib/test/unit/util_spec.js +121 -305
  139. package/lib/web/annotation_layer_builder.js +66 -103
  140. package/lib/web/app.js +1328 -1214
  141. package/lib/web/app_options.js +105 -107
  142. package/lib/web/base_viewer.js +824 -838
  143. package/lib/web/chromecom.js +165 -252
  144. package/lib/web/debugger.js +149 -205
  145. package/lib/web/download_manager.js +39 -55
  146. package/lib/web/firefox_print_service.js +37 -27
  147. package/lib/web/firefoxcom.js +212 -363
  148. package/lib/web/genericcom.js +26 -108
  149. package/lib/web/genericl10n.js +24 -153
  150. package/lib/web/grab_to_pan.js +32 -30
  151. package/lib/web/interfaces.js +80 -254
  152. package/lib/web/overlay_manager.js +70 -246
  153. package/lib/web/password_prompt.js +38 -64
  154. package/lib/web/pdf_attachment_viewer.js +113 -131
  155. package/lib/web/pdf_cursor_tools.js +75 -102
  156. package/lib/web/pdf_document_properties.js +221 -306
  157. package/lib/web/pdf_find_bar.js +136 -170
  158. package/lib/web/pdf_find_controller.js +491 -548
  159. package/lib/web/pdf_find_utils.js +13 -13
  160. package/lib/web/pdf_history.js +397 -406
  161. package/lib/web/pdf_link_service.js +304 -348
  162. package/lib/web/pdf_outline_viewer.js +140 -175
  163. package/lib/web/pdf_page_view.js +452 -523
  164. package/lib/web/pdf_presentation_mode.js +308 -357
  165. package/lib/web/pdf_print_service.js +90 -104
  166. package/lib/web/pdf_rendering_queue.js +84 -108
  167. package/lib/web/pdf_sidebar.js +276 -306
  168. package/lib/web/pdf_sidebar_resizer.js +92 -119
  169. package/lib/web/pdf_single_page_viewer.js +77 -126
  170. package/lib/web/pdf_thumbnail_view.js +276 -297
  171. package/lib/web/pdf_thumbnail_viewer.js +186 -206
  172. package/lib/web/pdf_viewer.component.js +20 -21
  173. package/lib/web/pdf_viewer.js +55 -115
  174. package/lib/web/preferences.js +82 -286
  175. package/lib/web/secondary_toolbar.js +164 -196
  176. package/lib/web/text_layer_builder.js +282 -339
  177. package/lib/web/toolbar.js +217 -210
  178. package/lib/web/ui_utils.js +267 -420
  179. package/lib/web/view_history.js +52 -226
  180. package/lib/web/viewer_compatibility.js +21 -6
  181. package/package.json +2 -9
  182. package/web/pdf_viewer.css +35 -25
  183. package/web/pdf_viewer.js +3489 -4855
  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 -494
  189. package/lib/shared/streams_polyfill.js +0 -43
  190. package/lib/shared/url_polyfill.js +0 -56
  191. package/lib/test/unit/dom_utils_spec.js +0 -89
@@ -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,403 @@
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
+ transform-origin: 0% 0%;
33
+ }
34
+
35
+ .textLayer .highlight {
36
+ margin: -1px;
37
+ padding: 1px;
38
+ background-color: rgba(180, 0, 170, 1);
39
+ border-radius: 4px;
40
+ }
41
+
42
+ .textLayer .highlight.begin {
43
+ border-radius: 4px 0px 0px 4px;
44
+ }
45
+
46
+ .textLayer .highlight.end {
47
+ border-radius: 0px 4px 4px 0px;
48
+ }
49
+
50
+ .textLayer .highlight.middle {
51
+ border-radius: 0px;
52
+ }
53
+
54
+ .textLayer .highlight.selected {
55
+ background-color: rgba(0, 100, 0, 1);
56
+ }
57
+
58
+ .textLayer ::-moz-selection {
59
+ background: rgba(0, 0, 255, 1);
60
+ }
61
+
62
+ .textLayer ::selection {
63
+ background: rgba(0, 0, 255, 1);
64
+ }
65
+
66
+ .textLayer .endOfContent {
67
+ display: block;
68
+ position: absolute;
69
+ left: 0px;
70
+ top: 100%;
71
+ right: 0px;
72
+ bottom: 0px;
73
+ z-index: -1;
74
+ cursor: default;
75
+ -webkit-user-select: none;
76
+ -moz-user-select: none;
77
+ -ms-user-select: none;
78
+ user-select: none;
79
+ }
80
+
81
+ .textLayer .endOfContent.active {
82
+ top: 0px;
83
+ }
84
+
85
+
86
+ .annotationLayer section {
87
+ position: absolute;
88
+ }
89
+
90
+ .annotationLayer .linkAnnotation > a,
91
+ .annotationLayer .buttonWidgetAnnotation.pushButton > a {
92
+ position: absolute;
93
+ font-size: 1em;
94
+ top: 0;
95
+ left: 0;
96
+ width: 100%;
97
+ height: 100%;
98
+ }
99
+
100
+ .annotationLayer .linkAnnotation > a:hover,
101
+ .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
102
+ opacity: 0.2;
103
+ background: rgba(255, 255, 0, 1);
104
+ box-shadow: 0px 2px 10px rgba(255, 255, 0, 1);
105
+ }
106
+
107
+ .annotationLayer .textAnnotation img {
108
+ position: absolute;
109
+ cursor: pointer;
110
+ }
111
+
112
+ .annotationLayer .textWidgetAnnotation input,
113
+ .annotationLayer .textWidgetAnnotation textarea,
114
+ .annotationLayer .choiceWidgetAnnotation select,
115
+ .annotationLayer .buttonWidgetAnnotation.checkBox input,
116
+ .annotationLayer .buttonWidgetAnnotation.radioButton input {
117
+ background-color: rgba(0, 54, 255, 0.13);
118
+ border: 1px solid transparent;
119
+ box-sizing: border-box;
120
+ font-size: 9px;
121
+ height: 100%;
122
+ margin: 0;
123
+ padding: 0 3px;
124
+ vertical-align: top;
125
+ width: 100%;
126
+ }
127
+
128
+ .annotationLayer .choiceWidgetAnnotation select option {
129
+ padding: 0;
130
+ }
131
+
132
+ .annotationLayer .buttonWidgetAnnotation.radioButton input {
133
+ border-radius: 50%;
134
+ }
135
+
136
+ .annotationLayer .textWidgetAnnotation textarea {
137
+ font: message-box;
138
+ font-size: 9px;
139
+ resize: none;
140
+ }
141
+
142
+ .annotationLayer .textWidgetAnnotation input[disabled],
143
+ .annotationLayer .textWidgetAnnotation textarea[disabled],
144
+ .annotationLayer .choiceWidgetAnnotation select[disabled],
145
+ .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
146
+ .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
147
+ background: none;
148
+ border: 1px solid transparent;
149
+ cursor: not-allowed;
150
+ }
151
+
152
+ .annotationLayer .textWidgetAnnotation input:hover,
153
+ .annotationLayer .textWidgetAnnotation textarea:hover,
154
+ .annotationLayer .choiceWidgetAnnotation select:hover,
155
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
156
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
157
+ border: 1px solid rgba(0, 0, 0, 1);
158
+ }
159
+
160
+ .annotationLayer .textWidgetAnnotation input:focus,
161
+ .annotationLayer .textWidgetAnnotation textarea:focus,
162
+ .annotationLayer .choiceWidgetAnnotation select:focus {
163
+ background: none;
164
+ border: 1px solid transparent;
165
+ }
166
+
167
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
168
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
169
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
170
+ background-color: rgba(0, 0, 0, 1);
171
+ content: '';
172
+ display: block;
173
+ position: absolute;
174
+ }
175
+
176
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
177
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
178
+ height: 80%;
179
+ left: 45%;
180
+ width: 1px;
181
+ }
182
+
183
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
184
+ transform: rotate(45deg);
185
+ }
186
+
187
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
188
+ transform: rotate(-45deg);
189
+ }
190
+
191
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
192
+ border-radius: 50%;
193
+ height: 50%;
194
+ left: 30%;
195
+ top: 20%;
196
+ width: 50%;
197
+ }
198
+
199
+ .annotationLayer .textWidgetAnnotation input.comb {
200
+ font-family: monospace;
201
+ padding-left: 2px;
202
+ padding-right: 0;
203
+ }
204
+
205
+ .annotationLayer .textWidgetAnnotation input.comb:focus {
206
+ /*
207
+ * Letter spacing is placed on the right side of each character. Hence, the
208
+ * letter spacing of the last character may be placed outside the visible
209
+ * area, causing horizontal scrolling. We avoid this by extending the width
210
+ * when the element has focus and revert this when it loses focus.
211
+ */
212
+ width: 115%;
213
+ }
214
+
215
+ .annotationLayer .buttonWidgetAnnotation.checkBox input,
216
+ .annotationLayer .buttonWidgetAnnotation.radioButton input {
217
+ -webkit-appearance: none;
218
+ -moz-appearance: none;
219
+ appearance: none;
220
+ padding: 0;
221
+ }
222
+
223
+ .annotationLayer .popupWrapper {
224
+ position: absolute;
225
+ width: 20em;
226
+ }
227
+
228
+ .annotationLayer .popup {
229
+ position: absolute;
230
+ z-index: 200;
231
+ max-width: 20em;
232
+ background-color: rgba(255, 255, 153, 1);
233
+ box-shadow: 0px 2px 5px rgba(136, 136, 136, 1);
234
+ border-radius: 2px;
235
+ padding: 6px;
236
+ margin-left: 5px;
237
+ cursor: pointer;
238
+ font: message-box;
239
+ font-size: 9px;
240
+ word-wrap: break-word;
241
+ }
242
+
243
+ .annotationLayer .popup > * {
244
+ font-size: 9px;
245
+ }
246
+
247
+ .annotationLayer .popup h1 {
248
+ display: inline-block;
249
+ }
250
+
251
+ .annotationLayer .popup span {
252
+ display: inline-block;
253
+ margin-left: 5px;
254
+ }
255
+
256
+ .annotationLayer .popup p {
257
+ border-top: 1px solid rgba(51, 51, 51, 1);
258
+ margin-top: 2px;
259
+ padding-top: 2px;
260
+ }
261
+
262
+ .annotationLayer .highlightAnnotation,
263
+ .annotationLayer .underlineAnnotation,
264
+ .annotationLayer .squigglyAnnotation,
265
+ .annotationLayer .strikeoutAnnotation,
266
+ .annotationLayer .freeTextAnnotation,
267
+ .annotationLayer .lineAnnotation svg line,
268
+ .annotationLayer .squareAnnotation svg rect,
269
+ .annotationLayer .circleAnnotation svg ellipse,
270
+ .annotationLayer .polylineAnnotation svg polyline,
271
+ .annotationLayer .polygonAnnotation svg polygon,
272
+ .annotationLayer .caretAnnotation,
273
+ .annotationLayer .inkAnnotation svg polyline,
274
+ .annotationLayer .stampAnnotation,
275
+ .annotationLayer .fileAttachmentAnnotation {
276
+ cursor: pointer;
277
+ }
278
+
279
+ .pdfViewer .canvasWrapper {
280
+ overflow: hidden;
281
+ }
282
+
283
+ .pdfViewer .page {
284
+ direction: ltr;
285
+ width: 816px;
286
+ height: 1056px;
287
+ margin: 1px auto -8px auto;
288
+ position: relative;
289
+ overflow: visible;
290
+ border: 9px solid transparent;
291
+ background-clip: content-box;
292
+ -o-border-image: url(images/shadow.png) 9 9 repeat;
293
+ border-image: url(images/shadow.png) 9 9 repeat;
294
+ background-color: rgba(255, 255, 255, 1);
295
+ }
296
+
297
+ .pdfViewer.removePageBorders .page {
298
+ margin: 0px auto 10px auto;
299
+ border: none;
300
+ }
301
+
302
+ .pdfViewer.singlePageView {
303
+ display: inline-block;
304
+ }
305
+
306
+ .pdfViewer.singlePageView .page {
307
+ margin: 0;
308
+ border: none;
309
+ }
310
+
311
+ .pdfViewer.scrollHorizontal, .pdfViewer.scrollWrapped, .spread {
312
+ margin-left: 3.5px;
313
+ margin-right: 3.5px;
314
+ text-align: center;
315
+ }
316
+
317
+ .pdfViewer.scrollHorizontal, .spread {
318
+ white-space: nowrap;
319
+ }
320
+
321
+ .pdfViewer.removePageBorders,
322
+ .pdfViewer.scrollHorizontal .spread,
323
+ .pdfViewer.scrollWrapped .spread {
324
+ margin-left: 0;
325
+ margin-right: 0;
326
+ }
327
+
328
+ .spread .page,
329
+ .pdfViewer.scrollHorizontal .page,
330
+ .pdfViewer.scrollWrapped .page,
331
+ .pdfViewer.scrollHorizontal .spread,
332
+ .pdfViewer.scrollWrapped .spread {
333
+ display: inline-block;
334
+ vertical-align: middle;
335
+ }
336
+
337
+ .spread .page,
338
+ .pdfViewer.scrollHorizontal .page,
339
+ .pdfViewer.scrollWrapped .page {
340
+ margin-left: -3.5px;
341
+ margin-right: -3.5px;
342
+ }
343
+
344
+ .pdfViewer.removePageBorders .spread .page,
345
+ .pdfViewer.removePageBorders.scrollHorizontal .page,
346
+ .pdfViewer.removePageBorders.scrollWrapped .page {
347
+ margin-left: 5px;
348
+ margin-right: 5px;
349
+ }
350
+
351
+ .pdfViewer .page canvas {
352
+ margin: 0;
353
+ display: block;
354
+ }
355
+
356
+ .pdfViewer .page canvas[hidden] {
357
+ display: none;
358
+ }
359
+
360
+ .pdfViewer .page .loadingIcon {
361
+ position: absolute;
362
+ display: block;
363
+ left: 0;
364
+ top: 0;
365
+ right: 0;
366
+ bottom: 0;
367
+ background: url('images/loading-icon.gif') center no-repeat;
368
+ }
369
+
370
+ .pdfPresentationMode .pdfViewer {
371
+ margin-left: 0;
372
+ margin-right: 0;
373
+ }
374
+
375
+ .pdfPresentationMode .pdfViewer .page,
376
+ .pdfPresentationMode .pdfViewer .spread {
377
+ display: block;
378
+ }
379
+
380
+ .pdfPresentationMode .pdfViewer .page,
381
+ .pdfPresentationMode .pdfViewer.removePageBorders .page {
382
+ margin-left: auto;
383
+ margin-right: auto;
384
+ }
385
+
386
+ .pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
387
+ margin-bottom: 100% !important;
388
+ }
389
+
390
+ .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
391
+ margin-bottom: 100%;
392
+ border: 0;
393
+ }
394
+
395
+ .pdfPresentationMode:-moz-full-screen .pdfViewer .page {
396
+ margin-bottom: 100%;
397
+ border: 0;
398
+ }
399
+
400
+ .pdfPresentationMode:fullscreen .pdfViewer .page {
401
+ margin-bottom: 100%;
402
+ border: 0;
403
+ }