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
@@ -2,7 +2,7 @@
2
2
  * @licstart The following is the entire license notice for the
3
3
  * Javascript code in this page
4
4
  *
5
- * Copyright 2019 Mozilla Foundation
5
+ * Copyright 2020 Mozilla Foundation
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -26,248 +26,249 @@ Object.defineProperty(exports, "__esModule", {
26
26
  });
27
27
  exports.getSupplementalGlyphMapForCalibri = exports.getSupplementalGlyphMapForArialBlack = exports.getGlyphMapForStandardFonts = exports.getSymbolsFonts = exports.getSerifFonts = exports.getNonStdFontMap = exports.getStdFontMap = void 0;
28
28
 
29
- var _core_utils = require("./core_utils");
29
+ var _core_utils = require("./core_utils.js");
30
30
 
31
- var getStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) {
32
- t['ArialNarrow'] = 'Helvetica';
33
- t['ArialNarrow-Bold'] = 'Helvetica-Bold';
34
- t['ArialNarrow-BoldItalic'] = 'Helvetica-BoldOblique';
35
- t['ArialNarrow-Italic'] = 'Helvetica-Oblique';
36
- t['ArialBlack'] = 'Helvetica';
37
- t['ArialBlack-Bold'] = 'Helvetica-Bold';
38
- t['ArialBlack-BoldItalic'] = 'Helvetica-BoldOblique';
39
- t['ArialBlack-Italic'] = 'Helvetica-Oblique';
40
- t['Arial-Black'] = 'Helvetica';
41
- t['Arial-Black-Bold'] = 'Helvetica-Bold';
42
- t['Arial-Black-BoldItalic'] = 'Helvetica-BoldOblique';
43
- t['Arial-Black-Italic'] = 'Helvetica-Oblique';
44
- t['Arial'] = 'Helvetica';
45
- t['Arial-Bold'] = 'Helvetica-Bold';
46
- t['Arial-BoldItalic'] = 'Helvetica-BoldOblique';
47
- t['Arial-Italic'] = 'Helvetica-Oblique';
48
- t['Arial-BoldItalicMT'] = 'Helvetica-BoldOblique';
49
- t['Arial-BoldMT'] = 'Helvetica-Bold';
50
- t['Arial-ItalicMT'] = 'Helvetica-Oblique';
51
- t['ArialMT'] = 'Helvetica';
52
- t['Courier-Bold'] = 'Courier-Bold';
53
- t['Courier-BoldItalic'] = 'Courier-BoldOblique';
54
- t['Courier-Italic'] = 'Courier-Oblique';
55
- t['CourierNew'] = 'Courier';
56
- t['CourierNew-Bold'] = 'Courier-Bold';
57
- t['CourierNew-BoldItalic'] = 'Courier-BoldOblique';
58
- t['CourierNew-Italic'] = 'Courier-Oblique';
59
- t['CourierNewPS-BoldItalicMT'] = 'Courier-BoldOblique';
60
- t['CourierNewPS-BoldMT'] = 'Courier-Bold';
61
- t['CourierNewPS-ItalicMT'] = 'Courier-Oblique';
62
- t['CourierNewPSMT'] = 'Courier';
63
- t['Helvetica'] = 'Helvetica';
64
- t['Helvetica-Bold'] = 'Helvetica-Bold';
65
- t['Helvetica-BoldItalic'] = 'Helvetica-BoldOblique';
66
- t['Helvetica-BoldOblique'] = 'Helvetica-BoldOblique';
67
- t['Helvetica-Italic'] = 'Helvetica-Oblique';
68
- t['Helvetica-Oblique'] = 'Helvetica-Oblique';
69
- t['SegoeUISymbol'] = 'Helvetica';
70
- t['Symbol-Bold'] = 'Symbol';
71
- t['Symbol-BoldItalic'] = 'Symbol';
72
- t['Symbol-Italic'] = 'Symbol';
73
- t['TimesNewRoman'] = 'Times-Roman';
74
- t['TimesNewRoman-Bold'] = 'Times-Bold';
75
- t['TimesNewRoman-BoldItalic'] = 'Times-BoldItalic';
76
- t['TimesNewRoman-Italic'] = 'Times-Italic';
77
- t['TimesNewRomanPS'] = 'Times-Roman';
78
- t['TimesNewRomanPS-Bold'] = 'Times-Bold';
79
- t['TimesNewRomanPS-BoldItalic'] = 'Times-BoldItalic';
80
- t['TimesNewRomanPS-BoldItalicMT'] = 'Times-BoldItalic';
81
- t['TimesNewRomanPS-BoldMT'] = 'Times-Bold';
82
- t['TimesNewRomanPS-Italic'] = 'Times-Italic';
83
- t['TimesNewRomanPS-ItalicMT'] = 'Times-Italic';
84
- t['TimesNewRomanPSMT'] = 'Times-Roman';
85
- t['TimesNewRomanPSMT-Bold'] = 'Times-Bold';
86
- t['TimesNewRomanPSMT-BoldItalic'] = 'Times-BoldItalic';
87
- t['TimesNewRomanPSMT-Italic'] = 'Times-Italic';
31
+ const getStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) {
32
+ t["ArialNarrow"] = "Helvetica";
33
+ t["ArialNarrow-Bold"] = "Helvetica-Bold";
34
+ t["ArialNarrow-BoldItalic"] = "Helvetica-BoldOblique";
35
+ t["ArialNarrow-Italic"] = "Helvetica-Oblique";
36
+ t["ArialBlack"] = "Helvetica";
37
+ t["ArialBlack-Bold"] = "Helvetica-Bold";
38
+ t["ArialBlack-BoldItalic"] = "Helvetica-BoldOblique";
39
+ t["ArialBlack-Italic"] = "Helvetica-Oblique";
40
+ t["Arial-Black"] = "Helvetica";
41
+ t["Arial-Black-Bold"] = "Helvetica-Bold";
42
+ t["Arial-Black-BoldItalic"] = "Helvetica-BoldOblique";
43
+ t["Arial-Black-Italic"] = "Helvetica-Oblique";
44
+ t["Arial"] = "Helvetica";
45
+ t["Arial-Bold"] = "Helvetica-Bold";
46
+ t["Arial-BoldItalic"] = "Helvetica-BoldOblique";
47
+ t["Arial-Italic"] = "Helvetica-Oblique";
48
+ t["Arial-BoldItalicMT"] = "Helvetica-BoldOblique";
49
+ t["Arial-BoldMT"] = "Helvetica-Bold";
50
+ t["Arial-ItalicMT"] = "Helvetica-Oblique";
51
+ t["ArialMT"] = "Helvetica";
52
+ t["Courier-Bold"] = "Courier-Bold";
53
+ t["Courier-BoldItalic"] = "Courier-BoldOblique";
54
+ t["Courier-Italic"] = "Courier-Oblique";
55
+ t["CourierNew"] = "Courier";
56
+ t["CourierNew-Bold"] = "Courier-Bold";
57
+ t["CourierNew-BoldItalic"] = "Courier-BoldOblique";
58
+ t["CourierNew-Italic"] = "Courier-Oblique";
59
+ t["CourierNewPS-BoldItalicMT"] = "Courier-BoldOblique";
60
+ t["CourierNewPS-BoldMT"] = "Courier-Bold";
61
+ t["CourierNewPS-ItalicMT"] = "Courier-Oblique";
62
+ t["CourierNewPSMT"] = "Courier";
63
+ t["Helvetica"] = "Helvetica";
64
+ t["Helvetica-Bold"] = "Helvetica-Bold";
65
+ t["Helvetica-BoldItalic"] = "Helvetica-BoldOblique";
66
+ t["Helvetica-BoldOblique"] = "Helvetica-BoldOblique";
67
+ t["Helvetica-Italic"] = "Helvetica-Oblique";
68
+ t["Helvetica-Oblique"] = "Helvetica-Oblique";
69
+ t["Symbol-Bold"] = "Symbol";
70
+ t["Symbol-BoldItalic"] = "Symbol";
71
+ t["Symbol-Italic"] = "Symbol";
72
+ t["TimesNewRoman"] = "Times-Roman";
73
+ t["TimesNewRoman-Bold"] = "Times-Bold";
74
+ t["TimesNewRoman-BoldItalic"] = "Times-BoldItalic";
75
+ t["TimesNewRoman-Italic"] = "Times-Italic";
76
+ t["TimesNewRomanPS"] = "Times-Roman";
77
+ t["TimesNewRomanPS-Bold"] = "Times-Bold";
78
+ t["TimesNewRomanPS-BoldItalic"] = "Times-BoldItalic";
79
+ t["TimesNewRomanPS-BoldItalicMT"] = "Times-BoldItalic";
80
+ t["TimesNewRomanPS-BoldMT"] = "Times-Bold";
81
+ t["TimesNewRomanPS-Italic"] = "Times-Italic";
82
+ t["TimesNewRomanPS-ItalicMT"] = "Times-Italic";
83
+ t["TimesNewRomanPSMT"] = "Times-Roman";
84
+ t["TimesNewRomanPSMT-Bold"] = "Times-Bold";
85
+ t["TimesNewRomanPSMT-BoldItalic"] = "Times-BoldItalic";
86
+ t["TimesNewRomanPSMT-Italic"] = "Times-Italic";
88
87
  });
89
88
  exports.getStdFontMap = getStdFontMap;
90
- var getNonStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) {
91
- t['Calibri'] = 'Helvetica';
92
- t['Calibri-Bold'] = 'Helvetica-Bold';
93
- t['Calibri-BoldItalic'] = 'Helvetica-BoldOblique';
94
- t['Calibri-Italic'] = 'Helvetica-Oblique';
95
- t['CenturyGothic'] = 'Helvetica';
96
- t['CenturyGothic-Bold'] = 'Helvetica-Bold';
97
- t['CenturyGothic-BoldItalic'] = 'Helvetica-BoldOblique';
98
- t['CenturyGothic-Italic'] = 'Helvetica-Oblique';
99
- t['ComicSansMS'] = 'Comic Sans MS';
100
- t['ComicSansMS-Bold'] = 'Comic Sans MS-Bold';
101
- t['ComicSansMS-BoldItalic'] = 'Comic Sans MS-BoldItalic';
102
- t['ComicSansMS-Italic'] = 'Comic Sans MS-Italic';
103
- t['LucidaConsole'] = 'Courier';
104
- t['LucidaConsole-Bold'] = 'Courier-Bold';
105
- t['LucidaConsole-BoldItalic'] = 'Courier-BoldOblique';
106
- t['LucidaConsole-Italic'] = 'Courier-Oblique';
107
- t['LucidaSans-Demi'] = 'Helvetica-Bold';
108
- t['MS-Gothic'] = 'MS Gothic';
109
- t['MS-Gothic-Bold'] = 'MS Gothic-Bold';
110
- t['MS-Gothic-BoldItalic'] = 'MS Gothic-BoldItalic';
111
- t['MS-Gothic-Italic'] = 'MS Gothic-Italic';
112
- t['MS-Mincho'] = 'MS Mincho';
113
- t['MS-Mincho-Bold'] = 'MS Mincho-Bold';
114
- t['MS-Mincho-BoldItalic'] = 'MS Mincho-BoldItalic';
115
- t['MS-Mincho-Italic'] = 'MS Mincho-Italic';
116
- t['MS-PGothic'] = 'MS PGothic';
117
- t['MS-PGothic-Bold'] = 'MS PGothic-Bold';
118
- t['MS-PGothic-BoldItalic'] = 'MS PGothic-BoldItalic';
119
- t['MS-PGothic-Italic'] = 'MS PGothic-Italic';
120
- t['MS-PMincho'] = 'MS PMincho';
121
- t['MS-PMincho-Bold'] = 'MS PMincho-Bold';
122
- t['MS-PMincho-BoldItalic'] = 'MS PMincho-BoldItalic';
123
- t['MS-PMincho-Italic'] = 'MS PMincho-Italic';
124
- t['NuptialScript'] = 'Times-Italic';
125
- t['Wingdings'] = 'ZapfDingbats';
89
+ const getNonStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) {
90
+ t["Calibri"] = "Helvetica";
91
+ t["Calibri-Bold"] = "Helvetica-Bold";
92
+ t["Calibri-BoldItalic"] = "Helvetica-BoldOblique";
93
+ t["Calibri-Italic"] = "Helvetica-Oblique";
94
+ t["CenturyGothic"] = "Helvetica";
95
+ t["CenturyGothic-Bold"] = "Helvetica-Bold";
96
+ t["CenturyGothic-BoldItalic"] = "Helvetica-BoldOblique";
97
+ t["CenturyGothic-Italic"] = "Helvetica-Oblique";
98
+ t["ComicSansMS"] = "Comic Sans MS";
99
+ t["ComicSansMS-Bold"] = "Comic Sans MS-Bold";
100
+ t["ComicSansMS-BoldItalic"] = "Comic Sans MS-BoldItalic";
101
+ t["ComicSansMS-Italic"] = "Comic Sans MS-Italic";
102
+ t["LucidaConsole"] = "Courier";
103
+ t["LucidaConsole-Bold"] = "Courier-Bold";
104
+ t["LucidaConsole-BoldItalic"] = "Courier-BoldOblique";
105
+ t["LucidaConsole-Italic"] = "Courier-Oblique";
106
+ t["LucidaSans-Demi"] = "Helvetica-Bold";
107
+ t["MS-Gothic"] = "MS Gothic";
108
+ t["MS-Gothic-Bold"] = "MS Gothic-Bold";
109
+ t["MS-Gothic-BoldItalic"] = "MS Gothic-BoldItalic";
110
+ t["MS-Gothic-Italic"] = "MS Gothic-Italic";
111
+ t["MS-Mincho"] = "MS Mincho";
112
+ t["MS-Mincho-Bold"] = "MS Mincho-Bold";
113
+ t["MS-Mincho-BoldItalic"] = "MS Mincho-BoldItalic";
114
+ t["MS-Mincho-Italic"] = "MS Mincho-Italic";
115
+ t["MS-PGothic"] = "MS PGothic";
116
+ t["MS-PGothic-Bold"] = "MS PGothic-Bold";
117
+ t["MS-PGothic-BoldItalic"] = "MS PGothic-BoldItalic";
118
+ t["MS-PGothic-Italic"] = "MS PGothic-Italic";
119
+ t["MS-PMincho"] = "MS PMincho";
120
+ t["MS-PMincho-Bold"] = "MS PMincho-Bold";
121
+ t["MS-PMincho-BoldItalic"] = "MS PMincho-BoldItalic";
122
+ t["MS-PMincho-Italic"] = "MS PMincho-Italic";
123
+ t["NuptialScript"] = "Times-Italic";
124
+ t["SegoeUISymbol"] = "Helvetica";
125
+ t["Wingdings"] = "ZapfDingbats";
126
+ t["Wingdings-Regular"] = "ZapfDingbats";
126
127
  });
127
128
  exports.getNonStdFontMap = getNonStdFontMap;
128
- var getSerifFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
129
- t['Adobe Jenson'] = true;
130
- t['Adobe Text'] = true;
131
- t['Albertus'] = true;
132
- t['Aldus'] = true;
133
- t['Alexandria'] = true;
134
- t['Algerian'] = true;
135
- t['American Typewriter'] = true;
136
- t['Antiqua'] = true;
137
- t['Apex'] = true;
138
- t['Arno'] = true;
139
- t['Aster'] = true;
140
- t['Aurora'] = true;
141
- t['Baskerville'] = true;
142
- t['Bell'] = true;
143
- t['Bembo'] = true;
144
- t['Bembo Schoolbook'] = true;
145
- t['Benguiat'] = true;
146
- t['Berkeley Old Style'] = true;
147
- t['Bernhard Modern'] = true;
148
- t['Berthold City'] = true;
149
- t['Bodoni'] = true;
150
- t['Bauer Bodoni'] = true;
151
- t['Book Antiqua'] = true;
152
- t['Bookman'] = true;
153
- t['Bordeaux Roman'] = true;
154
- t['Californian FB'] = true;
155
- t['Calisto'] = true;
156
- t['Calvert'] = true;
157
- t['Capitals'] = true;
158
- t['Cambria'] = true;
159
- t['Cartier'] = true;
160
- t['Caslon'] = true;
161
- t['Catull'] = true;
162
- t['Centaur'] = true;
163
- t['Century Old Style'] = true;
164
- t['Century Schoolbook'] = true;
165
- t['Chaparral'] = true;
166
- t['Charis SIL'] = true;
167
- t['Cheltenham'] = true;
168
- t['Cholla Slab'] = true;
169
- t['Clarendon'] = true;
170
- t['Clearface'] = true;
171
- t['Cochin'] = true;
172
- t['Colonna'] = true;
173
- t['Computer Modern'] = true;
174
- t['Concrete Roman'] = true;
175
- t['Constantia'] = true;
176
- t['Cooper Black'] = true;
177
- t['Corona'] = true;
178
- t['Ecotype'] = true;
179
- t['Egyptienne'] = true;
180
- t['Elephant'] = true;
181
- t['Excelsior'] = true;
182
- t['Fairfield'] = true;
183
- t['FF Scala'] = true;
184
- t['Folkard'] = true;
185
- t['Footlight'] = true;
186
- t['FreeSerif'] = true;
187
- t['Friz Quadrata'] = true;
188
- t['Garamond'] = true;
189
- t['Gentium'] = true;
190
- t['Georgia'] = true;
191
- t['Gloucester'] = true;
192
- t['Goudy Old Style'] = true;
193
- t['Goudy Schoolbook'] = true;
194
- t['Goudy Pro Font'] = true;
195
- t['Granjon'] = true;
196
- t['Guardian Egyptian'] = true;
197
- t['Heather'] = true;
198
- t['Hercules'] = true;
199
- t['High Tower Text'] = true;
200
- t['Hiroshige'] = true;
201
- t['Hoefler Text'] = true;
202
- t['Humana Serif'] = true;
203
- t['Imprint'] = true;
204
- t['Ionic No. 5'] = true;
205
- t['Janson'] = true;
206
- t['Joanna'] = true;
207
- t['Korinna'] = true;
208
- t['Lexicon'] = true;
209
- t['Liberation Serif'] = true;
210
- t['Linux Libertine'] = true;
211
- t['Literaturnaya'] = true;
212
- t['Lucida'] = true;
213
- t['Lucida Bright'] = true;
214
- t['Melior'] = true;
215
- t['Memphis'] = true;
216
- t['Miller'] = true;
217
- t['Minion'] = true;
218
- t['Modern'] = true;
219
- t['Mona Lisa'] = true;
220
- t['Mrs Eaves'] = true;
221
- t['MS Serif'] = true;
222
- t['Museo Slab'] = true;
223
- t['New York'] = true;
224
- t['Nimbus Roman'] = true;
225
- t['NPS Rawlinson Roadway'] = true;
226
- t['NuptialScript'] = true;
227
- t['Palatino'] = true;
228
- t['Perpetua'] = true;
229
- t['Plantin'] = true;
230
- t['Plantin Schoolbook'] = true;
231
- t['Playbill'] = true;
232
- t['Poor Richard'] = true;
233
- t['Rawlinson Roadway'] = true;
234
- t['Renault'] = true;
235
- t['Requiem'] = true;
236
- t['Rockwell'] = true;
237
- t['Roman'] = true;
238
- t['Rotis Serif'] = true;
239
- t['Sabon'] = true;
240
- t['Scala'] = true;
241
- t['Seagull'] = true;
242
- t['Sistina'] = true;
243
- t['Souvenir'] = true;
244
- t['STIX'] = true;
245
- t['Stone Informal'] = true;
246
- t['Stone Serif'] = true;
247
- t['Sylfaen'] = true;
248
- t['Times'] = true;
249
- t['Trajan'] = true;
250
- t['Trinité'] = true;
251
- t['Trump Mediaeval'] = true;
252
- t['Utopia'] = true;
253
- t['Vale Type'] = true;
254
- t['Bitstream Vera'] = true;
255
- t['Vera Serif'] = true;
256
- t['Versailles'] = true;
257
- t['Wanted'] = true;
258
- t['Weiss'] = true;
259
- t['Wide Latin'] = true;
260
- t['Windsor'] = true;
261
- t['XITS'] = true;
129
+ const getSerifFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
130
+ t["Adobe Jenson"] = true;
131
+ t["Adobe Text"] = true;
132
+ t["Albertus"] = true;
133
+ t["Aldus"] = true;
134
+ t["Alexandria"] = true;
135
+ t["Algerian"] = true;
136
+ t["American Typewriter"] = true;
137
+ t["Antiqua"] = true;
138
+ t["Apex"] = true;
139
+ t["Arno"] = true;
140
+ t["Aster"] = true;
141
+ t["Aurora"] = true;
142
+ t["Baskerville"] = true;
143
+ t["Bell"] = true;
144
+ t["Bembo"] = true;
145
+ t["Bembo Schoolbook"] = true;
146
+ t["Benguiat"] = true;
147
+ t["Berkeley Old Style"] = true;
148
+ t["Bernhard Modern"] = true;
149
+ t["Berthold City"] = true;
150
+ t["Bodoni"] = true;
151
+ t["Bauer Bodoni"] = true;
152
+ t["Book Antiqua"] = true;
153
+ t["Bookman"] = true;
154
+ t["Bordeaux Roman"] = true;
155
+ t["Californian FB"] = true;
156
+ t["Calisto"] = true;
157
+ t["Calvert"] = true;
158
+ t["Capitals"] = true;
159
+ t["Cambria"] = true;
160
+ t["Cartier"] = true;
161
+ t["Caslon"] = true;
162
+ t["Catull"] = true;
163
+ t["Centaur"] = true;
164
+ t["Century Old Style"] = true;
165
+ t["Century Schoolbook"] = true;
166
+ t["Chaparral"] = true;
167
+ t["Charis SIL"] = true;
168
+ t["Cheltenham"] = true;
169
+ t["Cholla Slab"] = true;
170
+ t["Clarendon"] = true;
171
+ t["Clearface"] = true;
172
+ t["Cochin"] = true;
173
+ t["Colonna"] = true;
174
+ t["Computer Modern"] = true;
175
+ t["Concrete Roman"] = true;
176
+ t["Constantia"] = true;
177
+ t["Cooper Black"] = true;
178
+ t["Corona"] = true;
179
+ t["Ecotype"] = true;
180
+ t["Egyptienne"] = true;
181
+ t["Elephant"] = true;
182
+ t["Excelsior"] = true;
183
+ t["Fairfield"] = true;
184
+ t["FF Scala"] = true;
185
+ t["Folkard"] = true;
186
+ t["Footlight"] = true;
187
+ t["FreeSerif"] = true;
188
+ t["Friz Quadrata"] = true;
189
+ t["Garamond"] = true;
190
+ t["Gentium"] = true;
191
+ t["Georgia"] = true;
192
+ t["Gloucester"] = true;
193
+ t["Goudy Old Style"] = true;
194
+ t["Goudy Schoolbook"] = true;
195
+ t["Goudy Pro Font"] = true;
196
+ t["Granjon"] = true;
197
+ t["Guardian Egyptian"] = true;
198
+ t["Heather"] = true;
199
+ t["Hercules"] = true;
200
+ t["High Tower Text"] = true;
201
+ t["Hiroshige"] = true;
202
+ t["Hoefler Text"] = true;
203
+ t["Humana Serif"] = true;
204
+ t["Imprint"] = true;
205
+ t["Ionic No. 5"] = true;
206
+ t["Janson"] = true;
207
+ t["Joanna"] = true;
208
+ t["Korinna"] = true;
209
+ t["Lexicon"] = true;
210
+ t["Liberation Serif"] = true;
211
+ t["Linux Libertine"] = true;
212
+ t["Literaturnaya"] = true;
213
+ t["Lucida"] = true;
214
+ t["Lucida Bright"] = true;
215
+ t["Melior"] = true;
216
+ t["Memphis"] = true;
217
+ t["Miller"] = true;
218
+ t["Minion"] = true;
219
+ t["Modern"] = true;
220
+ t["Mona Lisa"] = true;
221
+ t["Mrs Eaves"] = true;
222
+ t["MS Serif"] = true;
223
+ t["Museo Slab"] = true;
224
+ t["New York"] = true;
225
+ t["Nimbus Roman"] = true;
226
+ t["NPS Rawlinson Roadway"] = true;
227
+ t["NuptialScript"] = true;
228
+ t["Palatino"] = true;
229
+ t["Perpetua"] = true;
230
+ t["Plantin"] = true;
231
+ t["Plantin Schoolbook"] = true;
232
+ t["Playbill"] = true;
233
+ t["Poor Richard"] = true;
234
+ t["Rawlinson Roadway"] = true;
235
+ t["Renault"] = true;
236
+ t["Requiem"] = true;
237
+ t["Rockwell"] = true;
238
+ t["Roman"] = true;
239
+ t["Rotis Serif"] = true;
240
+ t["Sabon"] = true;
241
+ t["Scala"] = true;
242
+ t["Seagull"] = true;
243
+ t["Sistina"] = true;
244
+ t["Souvenir"] = true;
245
+ t["STIX"] = true;
246
+ t["Stone Informal"] = true;
247
+ t["Stone Serif"] = true;
248
+ t["Sylfaen"] = true;
249
+ t["Times"] = true;
250
+ t["Trajan"] = true;
251
+ t["Trinité"] = true;
252
+ t["Trump Mediaeval"] = true;
253
+ t["Utopia"] = true;
254
+ t["Vale Type"] = true;
255
+ t["Bitstream Vera"] = true;
256
+ t["Vera Serif"] = true;
257
+ t["Versailles"] = true;
258
+ t["Wanted"] = true;
259
+ t["Weiss"] = true;
260
+ t["Wide Latin"] = true;
261
+ t["Windsor"] = true;
262
+ t["XITS"] = true;
262
263
  });
263
264
  exports.getSerifFonts = getSerifFonts;
264
- var getSymbolsFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
265
- t['Dingbats'] = true;
266
- t['Symbol'] = true;
267
- t['ZapfDingbats'] = true;
265
+ const getSymbolsFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
266
+ t["Dingbats"] = true;
267
+ t["Symbol"] = true;
268
+ t["ZapfDingbats"] = true;
268
269
  });
269
270
  exports.getSymbolsFonts = getSymbolsFonts;
270
- var getGlyphMapForStandardFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
271
+ const getGlyphMapForStandardFonts = (0, _core_utils.getLookupTableFactory)(function (t) {
271
272
  t[2] = 10;
272
273
  t[3] = 32;
273
274
  t[4] = 33;
@@ -663,13 +664,13 @@ var getGlyphMapForStandardFonts = (0, _core_utils.getLookupTableFactory)(functio
663
664
  t[3416] = 8377;
664
665
  });
665
666
  exports.getGlyphMapForStandardFonts = getGlyphMapForStandardFonts;
666
- var getSupplementalGlyphMapForArialBlack = (0, _core_utils.getLookupTableFactory)(function (t) {
667
+ const getSupplementalGlyphMapForArialBlack = (0, _core_utils.getLookupTableFactory)(function (t) {
667
668
  t[227] = 322;
668
669
  t[264] = 261;
669
670
  t[291] = 346;
670
671
  });
671
672
  exports.getSupplementalGlyphMapForArialBlack = getSupplementalGlyphMapForArialBlack;
672
- var getSupplementalGlyphMapForCalibri = (0, _core_utils.getLookupTableFactory)(function (t) {
673
+ const getSupplementalGlyphMapForCalibri = (0, _core_utils.getLookupTableFactory)(function (t) {
673
674
  t[1] = 32;
674
675
  t[4] = 65;
675
676
  t[17] = 66;