pdfjs-dist 2.2.228 → 2.6.347

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 (229) hide show
  1. package/README.md +4 -0
  2. package/bower.json +1 -1
  3. package/build/pdf.js +8816 -19300
  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 +27185 -35746
  8. package/build/pdf.worker.js.map +1 -1
  9. package/build/pdf.worker.min.js +22 -1
  10. package/es5/build/pdf.js +26665 -0
  11. package/es5/build/pdf.js.map +1 -0
  12. package/es5/build/pdf.min.js +22 -0
  13. package/{lib/shared/global_scope.js → es5/build/pdf.worker.entry.js} +5 -10
  14. package/es5/build/pdf.worker.js +61231 -0
  15. package/es5/build/pdf.worker.js.map +1 -0
  16. package/es5/build/pdf.worker.min.js +22 -0
  17. package/es5/image_decoders/pdf.image_decoders.js +12529 -0
  18. package/es5/image_decoders/pdf.image_decoders.js.map +1 -0
  19. package/es5/image_decoders/pdf.image_decoders.min.js +22 -0
  20. package/es5/web/images/annotation-check.svg +11 -0
  21. package/es5/web/images/annotation-comment.svg +16 -0
  22. package/es5/web/images/annotation-help.svg +26 -0
  23. package/es5/web/images/annotation-insert.svg +10 -0
  24. package/es5/web/images/annotation-key.svg +11 -0
  25. package/es5/web/images/annotation-newparagraph.svg +11 -0
  26. package/es5/web/images/annotation-noicon.svg +7 -0
  27. package/es5/web/images/annotation-note.svg +42 -0
  28. package/es5/web/images/annotation-paragraph.svg +16 -0
  29. package/es5/web/images/loading-icon.gif +0 -0
  30. package/es5/web/images/shadow.png +0 -0
  31. package/es5/web/pdf_viewer.css +406 -0
  32. package/es5/web/pdf_viewer.js +7886 -0
  33. package/es5/web/pdf_viewer.js.map +1 -0
  34. package/image_decoders/pdf.image_decoders.js +1498 -4832
  35. package/image_decoders/pdf.image_decoders.js.map +1 -1
  36. package/image_decoders/pdf.image_decoders.min.js +22 -1
  37. package/lib/README.md +7 -0
  38. package/lib/core/annotation.js +1144 -927
  39. package/lib/core/arithmetic_decoder.js +81 -97
  40. package/lib/core/bidi.js +54 -46
  41. package/lib/core/ccitt.js +88 -81
  42. package/lib/core/ccitt_stream.js +15 -14
  43. package/lib/core/cff_parser.js +747 -716
  44. package/lib/core/charsets.js +4 -4
  45. package/lib/core/chunked_stream.js +462 -553
  46. package/lib/core/cmap.js +231 -277
  47. package/lib/core/colorspace.js +715 -857
  48. package/lib/core/core_utils.js +57 -52
  49. package/lib/core/crypto.js +416 -437
  50. package/lib/core/document.js +629 -670
  51. package/lib/core/encodings.js +15 -15
  52. package/lib/core/evaluator.js +3229 -2800
  53. package/lib/core/font_renderer.js +135 -178
  54. package/lib/core/fonts.js +602 -534
  55. package/lib/core/function.js +355 -279
  56. package/lib/core/glyphlist.js +4527 -4526
  57. package/lib/core/image.js +442 -439
  58. package/lib/core/image_utils.js +221 -61
  59. package/lib/core/jbig2.js +325 -316
  60. package/lib/core/jbig2_stream.js +18 -17
  61. package/lib/core/jpeg_stream.js +21 -26
  62. package/lib/core/jpg.js +289 -233
  63. package/lib/core/jpx.js +161 -143
  64. package/lib/core/jpx_stream.js +28 -28
  65. package/lib/core/metrics.js +2928 -2928
  66. package/lib/core/murmurhash3.js +87 -102
  67. package/lib/core/obj.js +1343 -1300
  68. package/lib/core/operator_list.js +90 -67
  69. package/lib/core/parser.js +990 -987
  70. package/lib/core/pattern.js +105 -77
  71. package/lib/core/pdf_manager.js +149 -316
  72. package/lib/core/primitives.js +156 -104
  73. package/lib/core/ps_parser.js +175 -214
  74. package/lib/core/standard_fonts.js +237 -236
  75. package/lib/core/stream.js +94 -74
  76. package/lib/core/type1_parser.js +89 -69
  77. package/lib/core/unicode.js +1654 -1654
  78. package/lib/core/worker.js +275 -290
  79. package/lib/core/worker_stream.js +101 -210
  80. package/lib/core/writer.js +242 -0
  81. package/lib/display/annotation_layer.js +772 -1041
  82. package/lib/display/annotation_storage.js +89 -0
  83. package/lib/display/api.js +1575 -1868
  84. package/lib/display/api_compatibility.js +12 -17
  85. package/lib/display/canvas.js +370 -222
  86. package/lib/display/content_disposition.js +40 -59
  87. package/lib/display/display_utils.js +341 -536
  88. package/lib/display/fetch_stream.js +188 -304
  89. package/lib/display/font_loader.js +282 -414
  90. package/lib/display/metadata.js +81 -99
  91. package/lib/display/network.js +362 -511
  92. package/lib/display/network_utils.js +25 -18
  93. package/lib/display/node_stream.js +283 -465
  94. package/lib/display/node_utils.js +87 -0
  95. package/lib/display/optional_content_config.js +184 -0
  96. package/lib/display/pattern_helper.js +93 -44
  97. package/lib/display/svg.js +1163 -1401
  98. package/lib/display/text_layer.js +154 -137
  99. package/lib/display/transport_stream.js +237 -375
  100. package/lib/display/webgl.js +70 -83
  101. package/lib/display/worker_options.js +3 -3
  102. package/lib/display/xml_parser.js +303 -392
  103. package/lib/examples/node/domstubs.js +37 -37
  104. package/lib/pdf.js +220 -58
  105. package/lib/pdf.worker.js +14 -6
  106. package/lib/shared/compatibility.js +3 -246
  107. package/lib/shared/is_node.js +7 -6
  108. package/lib/shared/message_handler.js +327 -332
  109. package/lib/shared/util.js +271 -306
  110. package/lib/test/unit/annotation_spec.js +1902 -763
  111. package/lib/test/unit/annotation_storage_spec.js +83 -0
  112. package/lib/test/unit/api_spec.js +790 -592
  113. package/lib/test/unit/bidi_spec.js +7 -7
  114. package/lib/test/unit/cff_parser_spec.js +73 -72
  115. package/lib/test/unit/clitests_helper.js +7 -9
  116. package/lib/test/unit/cmap_spec.js +86 -88
  117. package/lib/test/unit/colorspace_spec.js +346 -154
  118. package/lib/test/unit/core_utils_spec.js +125 -105
  119. package/lib/test/unit/crypto_spec.js +232 -185
  120. package/lib/test/unit/custom_spec.js +150 -24
  121. package/lib/test/unit/display_svg_spec.js +34 -39
  122. package/lib/test/unit/display_utils_spec.js +139 -149
  123. package/lib/test/unit/document_spec.js +128 -17
  124. package/lib/test/unit/encodings_spec.js +12 -34
  125. package/lib/test/unit/evaluator_spec.js +112 -91
  126. package/lib/test/unit/fetch_stream_spec.js +31 -29
  127. package/lib/test/unit/function_spec.js +206 -204
  128. package/lib/test/unit/jasmine-boot.js +48 -32
  129. package/lib/test/unit/message_handler_spec.js +173 -159
  130. package/lib/test/unit/metadata_spec.js +71 -71
  131. package/lib/test/unit/murmurhash3_spec.js +12 -12
  132. package/lib/test/unit/network_spec.js +13 -11
  133. package/lib/test/unit/network_utils_spec.js +158 -144
  134. package/lib/test/unit/node_stream_spec.js +76 -90
  135. package/lib/test/unit/parser_spec.js +108 -114
  136. package/lib/test/unit/pdf_find_controller_spec.js +55 -86
  137. package/lib/test/unit/pdf_find_utils_spec.js +32 -32
  138. package/lib/test/unit/pdf_history_spec.js +32 -32
  139. package/lib/test/unit/primitives_spec.js +337 -156
  140. package/lib/test/unit/stream_spec.js +16 -14
  141. package/lib/test/unit/test_utils.js +91 -304
  142. package/lib/test/unit/testreporter.js +33 -22
  143. package/lib/test/unit/type1_parser_spec.js +42 -42
  144. package/lib/test/unit/ui_utils_spec.js +299 -461
  145. package/lib/test/unit/unicode_spec.js +42 -42
  146. package/lib/test/unit/util_spec.js +129 -149
  147. package/lib/test/unit/writer_spec.js +84 -0
  148. package/lib/web/annotation_layer_builder.js +78 -111
  149. package/lib/web/app.js +1542 -1267
  150. package/lib/web/app_options.js +76 -91
  151. package/lib/web/base_tree_viewer.js +100 -0
  152. package/lib/web/base_viewer.js +869 -834
  153. package/lib/web/chromecom.js +165 -252
  154. package/lib/web/debugger.js +149 -205
  155. package/lib/web/download_manager.js +34 -58
  156. package/lib/web/firefox_print_service.js +62 -34
  157. package/lib/web/firefoxcom.js +206 -374
  158. package/lib/web/genericcom.js +26 -108
  159. package/lib/web/genericl10n.js +24 -153
  160. package/lib/web/grab_to_pan.js +30 -30
  161. package/lib/web/interfaces.js +80 -254
  162. package/lib/web/overlay_manager.js +70 -246
  163. package/lib/web/password_prompt.js +38 -64
  164. package/lib/web/pdf_attachment_viewer.js +150 -126
  165. package/lib/web/pdf_cursor_tools.js +75 -102
  166. package/lib/web/pdf_document_properties.js +229 -383
  167. package/lib/web/pdf_find_bar.js +136 -170
  168. package/lib/web/pdf_find_controller.js +492 -548
  169. package/lib/web/pdf_find_utils.js +13 -13
  170. package/lib/web/pdf_history.js +397 -406
  171. package/lib/web/pdf_layer_viewer.js +208 -0
  172. package/lib/web/pdf_link_service.js +304 -348
  173. package/lib/web/pdf_outline_viewer.js +119 -212
  174. package/lib/web/pdf_page_view.js +474 -513
  175. package/lib/web/pdf_presentation_mode.js +308 -357
  176. package/lib/web/pdf_print_service.js +96 -110
  177. package/lib/web/pdf_rendering_queue.js +87 -108
  178. package/lib/web/pdf_sidebar.js +286 -302
  179. package/lib/web/pdf_sidebar_resizer.js +92 -119
  180. package/lib/web/pdf_single_page_viewer.js +77 -126
  181. package/lib/web/pdf_thumbnail_view.js +289 -297
  182. package/lib/web/pdf_thumbnail_viewer.js +202 -206
  183. package/lib/web/pdf_viewer.component.js +20 -21
  184. package/lib/web/pdf_viewer.js +55 -115
  185. package/lib/web/preferences.js +69 -273
  186. package/lib/web/secondary_toolbar.js +164 -196
  187. package/lib/web/text_layer_builder.js +284 -319
  188. package/lib/web/toolbar.js +217 -210
  189. package/lib/web/ui_utils.js +274 -421
  190. package/lib/web/view_history.js +52 -226
  191. package/lib/web/viewer_compatibility.js +21 -6
  192. package/package.json +4 -9
  193. package/types/display/annotation_layer.d.ts +61 -0
  194. package/types/display/annotation_storage.d.ts +36 -0
  195. package/types/display/api.d.ts +1107 -0
  196. package/types/display/api_compatibility.d.ts +1 -0
  197. package/types/display/canvas.d.ts +4 -0
  198. package/types/display/content_disposition.d.ts +7 -0
  199. package/types/display/display_utils.d.ts +243 -0
  200. package/types/display/fetch_stream.d.ts +67 -0
  201. package/types/display/font_loader.d.ts +19 -0
  202. package/types/display/metadata.d.ts +9 -0
  203. package/types/display/network.d.ts +80 -0
  204. package/types/display/network_utils.d.ts +14 -0
  205. package/types/display/node_stream.d.ts +72 -0
  206. package/types/display/node_utils.d.ts +6 -0
  207. package/types/display/optional_content_config.d.ts +12 -0
  208. package/types/display/pattern_helper.d.ts +5 -0
  209. package/types/display/svg.d.ts +2 -0
  210. package/types/display/text_layer.d.ts +83 -0
  211. package/types/display/transport_stream.d.ts +57 -0
  212. package/types/display/webgl.d.ts +20 -0
  213. package/types/display/worker_options.d.ts +27 -0
  214. package/types/display/xml_parser.d.ts +35 -0
  215. package/types/pdf.d.ts +33 -0
  216. package/types/shared/compatibility.d.ts +1 -0
  217. package/types/shared/is_node.d.ts +1 -0
  218. package/types/shared/message_handler.d.ts +62 -0
  219. package/types/shared/util.d.ts +421 -0
  220. package/web/images/shadow.png +0 -0
  221. package/web/pdf_viewer.css +29 -27
  222. package/web/pdf_viewer.js +3524 -4746
  223. package/web/pdf_viewer.js.map +1 -1
  224. package/webpack.js +6 -5
  225. package/external/streams/streams-lib.js +0 -3962
  226. package/external/url/url-lib.js +0 -627
  227. package/lib/shared/streams_polyfill.js +0 -43
  228. package/lib/shared/url_polyfill.js +0 -56
  229. package/web/images/texture.png +0 -0
@@ -0,0 +1,406 @@
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;
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,
312
+ .pdfViewer.scrollWrapped,
313
+ .spread {
314
+ margin-left: 3.5px;
315
+ margin-right: 3.5px;
316
+ text-align: center;
317
+ }
318
+
319
+ .pdfViewer.scrollHorizontal,
320
+ .spread {
321
+ white-space: nowrap;
322
+ }
323
+
324
+ .pdfViewer.removePageBorders,
325
+ .pdfViewer.scrollHorizontal .spread,
326
+ .pdfViewer.scrollWrapped .spread {
327
+ margin-left: 0;
328
+ margin-right: 0;
329
+ }
330
+
331
+ .spread .page,
332
+ .pdfViewer.scrollHorizontal .page,
333
+ .pdfViewer.scrollWrapped .page,
334
+ .pdfViewer.scrollHorizontal .spread,
335
+ .pdfViewer.scrollWrapped .spread {
336
+ display: inline-block;
337
+ vertical-align: middle;
338
+ }
339
+
340
+ .spread .page,
341
+ .pdfViewer.scrollHorizontal .page,
342
+ .pdfViewer.scrollWrapped .page {
343
+ margin-left: -3.5px;
344
+ margin-right: -3.5px;
345
+ }
346
+
347
+ .pdfViewer.removePageBorders .spread .page,
348
+ .pdfViewer.removePageBorders.scrollHorizontal .page,
349
+ .pdfViewer.removePageBorders.scrollWrapped .page {
350
+ margin-left: 5px;
351
+ margin-right: 5px;
352
+ }
353
+
354
+ .pdfViewer .page canvas {
355
+ margin: 0;
356
+ display: block;
357
+ }
358
+
359
+ .pdfViewer .page canvas[hidden] {
360
+ display: none;
361
+ }
362
+
363
+ .pdfViewer .page .loadingIcon {
364
+ position: absolute;
365
+ display: block;
366
+ left: 0;
367
+ top: 0;
368
+ right: 0;
369
+ bottom: 0;
370
+ background: url("images/loading-icon.gif") center no-repeat;
371
+ }
372
+
373
+ .pdfPresentationMode .pdfViewer {
374
+ margin-left: 0;
375
+ margin-right: 0;
376
+ }
377
+
378
+ .pdfPresentationMode .pdfViewer .page,
379
+ .pdfPresentationMode .pdfViewer .spread {
380
+ display: block;
381
+ }
382
+
383
+ .pdfPresentationMode .pdfViewer .page,
384
+ .pdfPresentationMode .pdfViewer.removePageBorders .page {
385
+ margin-left: auto;
386
+ margin-right: auto;
387
+ }
388
+
389
+ .pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
390
+ margin-bottom: 100% !important;
391
+ }
392
+
393
+ .pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
394
+ margin-bottom: 100%;
395
+ border: 0;
396
+ }
397
+
398
+ .pdfPresentationMode:-moz-full-screen .pdfViewer .page {
399
+ margin-bottom: 100%;
400
+ border: 0;
401
+ }
402
+
403
+ .pdfPresentationMode:fullscreen .pdfViewer .page {
404
+ margin-bottom: 100%;
405
+ border: 0;
406
+ }