@vaadin-component-factory/vcf-pdf-viewer 0.9.0 → 1.0.0

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.
Files changed (172) hide show
  1. package/README.md +1 -1
  2. package/package.json +42 -26
  3. package/{src/display → pdfjs/dist}/display_utils.js +344 -139
  4. package/{src/display → pdfjs/dist}/fetch_stream.js +115 -97
  5. package/pdfjs/dist/l10n_utils.js +140 -0
  6. package/{src/shared → pdfjs/dist}/message_handler.js +243 -259
  7. package/{src/display → pdfjs/dist}/network.js +149 -87
  8. package/{src/display/content_disposition.js → pdfjs/dist/network_utils.js} +167 -55
  9. package/{src/display → pdfjs/dist}/node_stream.js +133 -98
  10. package/pdfjs/dist/pdf.js +12778 -0
  11. package/pdfjs/dist/pdf_link_service.js +638 -0
  12. package/pdfjs/dist/pdf_rendering_queue.js +199 -0
  13. package/pdfjs/dist/pdf_thumbnail_viewer.js +819 -0
  14. package/pdfjs/dist/pdf_viewer.js +3598 -0
  15. package/pdfjs/dist/ui_utils.js +1033 -0
  16. package/{src/shared → pdfjs/dist}/util.js +301 -287
  17. package/pdfjs/dist/worker.js +62813 -0
  18. package/src/vcf-pdf-viewer.js +98 -46
  19. package/theme/lumo/vcf-pdf-viewer-styles.js +4 -4
  20. package/theme/material/vcf-pdf-viewer-styles.js +4 -4
  21. package/theme/material/vcf-pdf-viewer.js +2 -2
  22. package/src/core/.eslintrc +0 -13
  23. package/src/core/annotation.js +0 -2948
  24. package/src/core/arithmetic_decoder.js +0 -182
  25. package/src/core/ascii_85_stream.js +0 -98
  26. package/src/core/ascii_hex_stream.js +0 -79
  27. package/src/core/base_stream.js +0 -110
  28. package/src/core/bidi.js +0 -438
  29. package/src/core/calibri_factors.js +0 -308
  30. package/src/core/catalog.js +0 -1459
  31. package/src/core/ccitt.js +0 -1062
  32. package/src/core/ccitt_stream.js +0 -60
  33. package/src/core/cff_font.js +0 -116
  34. package/src/core/cff_parser.js +0 -1949
  35. package/src/core/charsets.js +0 -119
  36. package/src/core/chunked_stream.js +0 -557
  37. package/src/core/cmap.js +0 -1039
  38. package/src/core/colorspace.js +0 -1533
  39. package/src/core/core_utils.js +0 -464
  40. package/src/core/crypto.js +0 -1900
  41. package/src/core/decode_stream.js +0 -170
  42. package/src/core/decrypt_stream.js +0 -59
  43. package/src/core/default_appearance.js +0 -99
  44. package/src/core/document.js +0 -1456
  45. package/src/core/encodings.js +0 -301
  46. package/src/core/evaluator.js +0 -4601
  47. package/src/core/file_spec.js +0 -108
  48. package/src/core/flate_stream.js +0 -402
  49. package/src/core/font_renderer.js +0 -882
  50. package/src/core/fonts.js +0 -3260
  51. package/src/core/fonts_utils.js +0 -221
  52. package/src/core/function.js +0 -1257
  53. package/src/core/glyf.js +0 -706
  54. package/src/core/glyphlist.js +0 -4558
  55. package/src/core/helvetica_factors.js +0 -353
  56. package/src/core/image.js +0 -802
  57. package/src/core/image_utils.js +0 -291
  58. package/src/core/jbig2.js +0 -2572
  59. package/src/core/jbig2_stream.js +0 -73
  60. package/src/core/jpeg_stream.js +0 -105
  61. package/src/core/jpg.js +0 -1416
  62. package/src/core/jpx.js +0 -2343
  63. package/src/core/jpx_stream.js +0 -87
  64. package/src/core/liberationsans_widths.js +0 -221
  65. package/src/core/lzw_stream.js +0 -150
  66. package/src/core/metadata_parser.js +0 -146
  67. package/src/core/metrics.js +0 -2970
  68. package/src/core/murmurhash3.js +0 -139
  69. package/src/core/myriadpro_factors.js +0 -290
  70. package/src/core/name_number_tree.js +0 -153
  71. package/src/core/object_loader.js +0 -149
  72. package/src/core/opentype_file_builder.js +0 -154
  73. package/src/core/operator_list.js +0 -734
  74. package/src/core/parser.js +0 -1416
  75. package/src/core/pattern.js +0 -985
  76. package/src/core/pdf_manager.js +0 -217
  77. package/src/core/predictor_stream.js +0 -238
  78. package/src/core/primitives.js +0 -402
  79. package/src/core/ps_parser.js +0 -272
  80. package/src/core/run_length_stream.js +0 -61
  81. package/src/core/segoeui_factors.js +0 -308
  82. package/src/core/standard_fonts.js +0 -817
  83. package/src/core/stream.js +0 -103
  84. package/src/core/struct_tree.js +0 -335
  85. package/src/core/to_unicode_map.js +0 -103
  86. package/src/core/type1_font.js +0 -421
  87. package/src/core/type1_parser.js +0 -776
  88. package/src/core/unicode.js +0 -1649
  89. package/src/core/worker.js +0 -848
  90. package/src/core/worker_stream.js +0 -135
  91. package/src/core/writer.js +0 -278
  92. package/src/core/xfa/bind.js +0 -652
  93. package/src/core/xfa/builder.js +0 -207
  94. package/src/core/xfa/config.js +0 -1926
  95. package/src/core/xfa/connection_set.js +0 -202
  96. package/src/core/xfa/data.js +0 -82
  97. package/src/core/xfa/datasets.js +0 -76
  98. package/src/core/xfa/factory.js +0 -111
  99. package/src/core/xfa/fonts.js +0 -181
  100. package/src/core/xfa/formcalc_lexer.js +0 -385
  101. package/src/core/xfa/formcalc_parser.js +0 -1340
  102. package/src/core/xfa/html_utils.js +0 -639
  103. package/src/core/xfa/layout.js +0 -383
  104. package/src/core/xfa/locale_set.js +0 -345
  105. package/src/core/xfa/namespaces.js +0 -81
  106. package/src/core/xfa/parser.js +0 -184
  107. package/src/core/xfa/setup.js +0 -38
  108. package/src/core/xfa/signature.js +0 -40
  109. package/src/core/xfa/som.js +0 -338
  110. package/src/core/xfa/stylesheet.js +0 -40
  111. package/src/core/xfa/template.js +0 -6260
  112. package/src/core/xfa/text.js +0 -290
  113. package/src/core/xfa/unknown.js +0 -29
  114. package/src/core/xfa/utils.js +0 -217
  115. package/src/core/xfa/xdp.js +0 -59
  116. package/src/core/xfa/xfa_object.js +0 -1130
  117. package/src/core/xfa/xhtml.js +0 -543
  118. package/src/core/xfa_fonts.js +0 -208
  119. package/src/core/xml_parser.js +0 -507
  120. package/src/core/xref.js +0 -899
  121. package/src/display/annotation_layer.js +0 -2107
  122. package/src/display/annotation_storage.js +0 -113
  123. package/src/display/api.js +0 -3292
  124. package/src/display/base_factory.js +0 -180
  125. package/src/display/canvas.js +0 -2828
  126. package/src/display/font_loader.js +0 -484
  127. package/src/display/metadata.js +0 -41
  128. package/src/display/network_utils.js +0 -100
  129. package/src/display/node_utils.js +0 -83
  130. package/src/display/optional_content_config.js +0 -189
  131. package/src/display/pattern_helper.js +0 -659
  132. package/src/display/svg.js +0 -1709
  133. package/src/display/text_layer.js +0 -847
  134. package/src/display/transport_stream.js +0 -303
  135. package/src/display/worker_options.js +0 -40
  136. package/src/display/xfa_layer.js +0 -204
  137. package/src/doc_helper.js +0 -25
  138. package/src/images/logo.svg +0 -41
  139. package/src/interfaces.js +0 -169
  140. package/src/license_header.js +0 -14
  141. package/src/license_header_libre.js +0 -21
  142. package/src/pdf.image_decoders.js +0 -46
  143. package/src/pdf.js +0 -146
  144. package/src/pdf.sandbox.external.js +0 -181
  145. package/src/pdf.sandbox.js +0 -151
  146. package/src/pdf.scripting.js +0 -25
  147. package/src/pdf.worker.entry.js +0 -19
  148. package/src/pdf.worker.js +0 -23
  149. package/src/scripting_api/aform.js +0 -608
  150. package/src/scripting_api/app.js +0 -621
  151. package/src/scripting_api/color.js +0 -129
  152. package/src/scripting_api/common.js +0 -58
  153. package/src/scripting_api/console.js +0 -38
  154. package/src/scripting_api/constants.js +0 -208
  155. package/src/scripting_api/doc.js +0 -1195
  156. package/src/scripting_api/error.js +0 -23
  157. package/src/scripting_api/event.js +0 -232
  158. package/src/scripting_api/field.js +0 -620
  159. package/src/scripting_api/fullscreen.js +0 -145
  160. package/src/scripting_api/initialization.js +0 -223
  161. package/src/scripting_api/pdf_object.js +0 -24
  162. package/src/scripting_api/print_params.js +0 -146
  163. package/src/scripting_api/proxy.js +0 -139
  164. package/src/scripting_api/thermometer.js +0 -69
  165. package/src/scripting_api/util.js +0 -581
  166. package/src/shared/.eslintrc +0 -13
  167. package/src/shared/cffStandardStrings.js +0 -311
  168. package/src/shared/compatibility.js +0 -114
  169. package/src/shared/fonts_utils.js +0 -429
  170. package/src/shared/is_node.js +0 -27
  171. package/src/shared/scripting_utils.js +0 -85
  172. package/src/worker_loader.js +0 -32
@@ -1,301 +0,0 @@
1
- /* Copyright 2012 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
- // prettier-ignore
17
- const ExpertEncoding = [
18
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
19
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
20
- "space", "exclamsmall", "Hungarumlautsmall", "", "dollaroldstyle",
21
- "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior",
22
- "parenrightsuperior", "twodotenleader", "onedotenleader", "comma",
23
- "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle",
24
- "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle",
25
- "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon",
26
- "semicolon", "commasuperior", "threequartersemdash", "periodsuperior",
27
- "questionsmall", "", "asuperior", "bsuperior", "centsuperior", "dsuperior",
28
- "esuperior", "", "", "", "isuperior", "", "", "lsuperior", "msuperior",
29
- "nsuperior", "osuperior", "", "", "rsuperior", "ssuperior", "tsuperior",
30
- "", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "",
31
- "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall",
32
- "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall",
33
- "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall",
34
- "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall",
35
- "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary",
36
- "onefitted", "rupiah", "Tildesmall", "", "", "", "", "", "", "", "", "",
37
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
38
- "", "", "", "", "", "", "exclamdownsmall", "centoldstyle", "Lslashsmall",
39
- "", "", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall",
40
- "Caronsmall", "", "Dotaccentsmall", "", "", "Macronsmall", "", "",
41
- "figuredash", "hypheninferior", "", "", "Ogoneksmall", "Ringsmall",
42
- "Cedillasmall", "", "", "", "onequarter", "onehalf", "threequarters",
43
- "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths",
44
- "seveneighths", "onethird", "twothirds", "", "", "zerosuperior",
45
- "onesuperior", "twosuperior", "threesuperior", "foursuperior",
46
- "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior",
47
- "ninesuperior", "zeroinferior", "oneinferior", "twoinferior",
48
- "threeinferior", "fourinferior", "fiveinferior", "sixinferior",
49
- "seveninferior", "eightinferior", "nineinferior", "centinferior",
50
- "dollarinferior", "periodinferior", "commainferior", "Agravesmall",
51
- "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall",
52
- "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall",
53
- "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall",
54
- "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall",
55
- "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall",
56
- "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall",
57
- "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall",
58
- "Ydieresissmall"];
59
-
60
- // prettier-ignore
61
- const MacExpertEncoding = [
62
- "", "", "", "", "", "", "", "", "", "", "", "", "", "",
63
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
64
- "space", "exclamsmall", "Hungarumlautsmall", "centoldstyle",
65
- "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall",
66
- "parenleftsuperior", "parenrightsuperior", "twodotenleader",
67
- "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle",
68
- "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle",
69
- "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle",
70
- "nineoldstyle", "colon", "semicolon", "", "threequartersemdash", "",
71
- "questionsmall", "", "", "", "", "Ethsmall", "", "", "onequarter",
72
- "onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths",
73
- "seveneighths", "onethird", "twothirds", "", "", "", "", "", "", "ff",
74
- "fi", "fl", "ffi", "ffl", "parenleftinferior", "", "parenrightinferior",
75
- "Circumflexsmall", "hypheninferior", "Gravesmall", "Asmall", "Bsmall",
76
- "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall",
77
- "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall",
78
- "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall",
79
- "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah",
80
- "Tildesmall", "", "", "asuperior", "centsuperior", "", "", "", "",
81
- "Aacutesmall", "Agravesmall", "Acircumflexsmall", "Adieresissmall",
82
- "Atildesmall", "Aringsmall", "Ccedillasmall", "Eacutesmall", "Egravesmall",
83
- "Ecircumflexsmall", "Edieresissmall", "Iacutesmall", "Igravesmall",
84
- "Icircumflexsmall", "Idieresissmall", "Ntildesmall", "Oacutesmall",
85
- "Ogravesmall", "Ocircumflexsmall", "Odieresissmall", "Otildesmall",
86
- "Uacutesmall", "Ugravesmall", "Ucircumflexsmall", "Udieresissmall", "",
87
- "eightsuperior", "fourinferior", "threeinferior", "sixinferior",
88
- "eightinferior", "seveninferior", "Scaronsmall", "", "centinferior",
89
- "twoinferior", "", "Dieresissmall", "", "Caronsmall", "osuperior",
90
- "fiveinferior", "", "commainferior", "periodinferior", "Yacutesmall", "",
91
- "dollarinferior", "", "", "Thornsmall", "", "nineinferior", "zeroinferior",
92
- "Zcaronsmall", "AEsmall", "Oslashsmall", "questiondownsmall",
93
- "oneinferior", "Lslashsmall", "", "", "", "", "", "", "Cedillasmall", "",
94
- "", "", "", "", "OEsmall", "figuredash", "hyphensuperior", "", "", "", "",
95
- "exclamdownsmall", "", "Ydieresissmall", "", "onesuperior", "twosuperior",
96
- "threesuperior", "foursuperior", "fivesuperior", "sixsuperior",
97
- "sevensuperior", "ninesuperior", "zerosuperior", "", "esuperior",
98
- "rsuperior", "tsuperior", "", "", "isuperior", "ssuperior", "dsuperior",
99
- "", "", "", "", "", "lsuperior", "Ogoneksmall", "Brevesmall",
100
- "Macronsmall", "bsuperior", "nsuperior", "msuperior", "commasuperior",
101
- "periodsuperior", "Dotaccentsmall", "Ringsmall", "", "", "", ""];
102
-
103
- // prettier-ignore
104
- const MacRomanEncoding = [
105
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
106
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
107
- "space", "exclam", "quotedbl", "numbersign", "dollar", "percent",
108
- "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus",
109
- "comma", "hyphen", "period", "slash", "zero", "one", "two", "three",
110
- "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon",
111
- "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F",
112
- "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U",
113
- "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright",
114
- "asciicircum", "underscore", "grave", "a", "b", "c", "d", "e", "f", "g",
115
- "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v",
116
- "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "",
117
- "Adieresis", "Aring", "Ccedilla", "Eacute", "Ntilde", "Odieresis",
118
- "Udieresis", "aacute", "agrave", "acircumflex", "adieresis", "atilde",
119
- "aring", "ccedilla", "eacute", "egrave", "ecircumflex", "edieresis",
120
- "iacute", "igrave", "icircumflex", "idieresis", "ntilde", "oacute",
121
- "ograve", "ocircumflex", "odieresis", "otilde", "uacute", "ugrave",
122
- "ucircumflex", "udieresis", "dagger", "degree", "cent", "sterling",
123
- "section", "bullet", "paragraph", "germandbls", "registered", "copyright",
124
- "trademark", "acute", "dieresis", "notequal", "AE", "Oslash", "infinity",
125
- "plusminus", "lessequal", "greaterequal", "yen", "mu", "partialdiff",
126
- "summation", "product", "pi", "integral", "ordfeminine", "ordmasculine",
127
- "Omega", "ae", "oslash", "questiondown", "exclamdown", "logicalnot",
128
- "radical", "florin", "approxequal", "Delta", "guillemotleft",
129
- "guillemotright", "ellipsis", "space", "Agrave", "Atilde", "Otilde", "OE",
130
- "oe", "endash", "emdash", "quotedblleft", "quotedblright", "quoteleft",
131
- "quoteright", "divide", "lozenge", "ydieresis", "Ydieresis", "fraction",
132
- "currency", "guilsinglleft", "guilsinglright", "fi", "fl", "daggerdbl",
133
- "periodcentered", "quotesinglbase", "quotedblbase", "perthousand",
134
- "Acircumflex", "Ecircumflex", "Aacute", "Edieresis", "Egrave", "Iacute",
135
- "Icircumflex", "Idieresis", "Igrave", "Oacute", "Ocircumflex", "apple",
136
- "Ograve", "Uacute", "Ucircumflex", "Ugrave", "dotlessi", "circumflex",
137
- "tilde", "macron", "breve", "dotaccent", "ring", "cedilla", "hungarumlaut",
138
- "ogonek", "caron"];
139
-
140
- // prettier-ignore
141
- const StandardEncoding = [
142
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
143
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
144
- "space", "exclam", "quotedbl", "numbersign", "dollar", "percent",
145
- "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus",
146
- "comma", "hyphen", "period", "slash", "zero", "one", "two", "three",
147
- "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon",
148
- "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F",
149
- "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U",
150
- "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright",
151
- "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f",
152
- "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u",
153
- "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde",
154
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
155
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdown",
156
- "cent", "sterling", "fraction", "yen", "florin", "section", "currency",
157
- "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft",
158
- "guilsinglright", "fi", "fl", "", "endash", "dagger", "daggerdbl",
159
- "periodcentered", "", "paragraph", "bullet", "quotesinglbase",
160
- "quotedblbase", "quotedblright", "guillemotright", "ellipsis",
161
- "perthousand", "", "questiondown", "", "grave", "acute", "circumflex",
162
- "tilde", "macron", "breve", "dotaccent", "dieresis", "", "ring", "cedilla",
163
- "", "hungarumlaut", "ogonek", "caron", "emdash", "", "", "", "", "", "",
164
- "", "", "", "", "", "", "", "", "", "", "AE", "", "ordfeminine", "", "",
165
- "", "", "Lslash", "Oslash", "OE", "ordmasculine", "", "", "", "", "", "ae",
166
- "", "", "", "dotlessi", "", "", "lslash", "oslash", "oe", "germandbls", "",
167
- "", "", ""];
168
-
169
- // prettier-ignore
170
- const WinAnsiEncoding = [
171
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
172
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
173
- "space", "exclam", "quotedbl", "numbersign", "dollar", "percent",
174
- "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus",
175
- "comma", "hyphen", "period", "slash", "zero", "one", "two", "three",
176
- "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon",
177
- "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F",
178
- "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U",
179
- "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright",
180
- "asciicircum", "underscore", "grave", "a", "b", "c", "d", "e", "f", "g",
181
- "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v",
182
- "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde",
183
- "bullet", "Euro", "bullet", "quotesinglbase", "florin", "quotedblbase",
184
- "ellipsis", "dagger", "daggerdbl", "circumflex", "perthousand", "Scaron",
185
- "guilsinglleft", "OE", "bullet", "Zcaron", "bullet", "bullet", "quoteleft",
186
- "quoteright", "quotedblleft", "quotedblright", "bullet", "endash",
187
- "emdash", "tilde", "trademark", "scaron", "guilsinglright", "oe", "bullet",
188
- "zcaron", "Ydieresis", "space", "exclamdown", "cent", "sterling",
189
- "currency", "yen", "brokenbar", "section", "dieresis", "copyright",
190
- "ordfeminine", "guillemotleft", "logicalnot", "hyphen", "registered",
191
- "macron", "degree", "plusminus", "twosuperior", "threesuperior", "acute",
192
- "mu", "paragraph", "periodcentered", "cedilla", "onesuperior",
193
- "ordmasculine", "guillemotright", "onequarter", "onehalf", "threequarters",
194
- "questiondown", "Agrave", "Aacute", "Acircumflex", "Atilde", "Adieresis",
195
- "Aring", "AE", "Ccedilla", "Egrave", "Eacute", "Ecircumflex", "Edieresis",
196
- "Igrave", "Iacute", "Icircumflex", "Idieresis", "Eth", "Ntilde", "Ograve",
197
- "Oacute", "Ocircumflex", "Otilde", "Odieresis", "multiply", "Oslash",
198
- "Ugrave", "Uacute", "Ucircumflex", "Udieresis", "Yacute", "Thorn",
199
- "germandbls", "agrave", "aacute", "acircumflex", "atilde", "adieresis",
200
- "aring", "ae", "ccedilla", "egrave", "eacute", "ecircumflex", "edieresis",
201
- "igrave", "iacute", "icircumflex", "idieresis", "eth", "ntilde", "ograve",
202
- "oacute", "ocircumflex", "otilde", "odieresis", "divide", "oslash",
203
- "ugrave", "uacute", "ucircumflex", "udieresis", "yacute", "thorn",
204
- "ydieresis"];
205
-
206
- // prettier-ignore
207
- const SymbolSetEncoding = [
208
- "", "", "", "", "", "", "", "", "", "", "", "", "", "",
209
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
210
- "space", "exclam", "universal", "numbersign", "existential", "percent",
211
- "ampersand", "suchthat", "parenleft", "parenright", "asteriskmath", "plus",
212
- "comma", "minus", "period", "slash", "zero", "one", "two", "three", "four",
213
- "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less",
214
- "equal", "greater", "question", "congruent", "Alpha", "Beta", "Chi",
215
- "Delta", "Epsilon", "Phi", "Gamma", "Eta", "Iota", "theta1", "Kappa",
216
- "Lambda", "Mu", "Nu", "Omicron", "Pi", "Theta", "Rho", "Sigma", "Tau",
217
- "Upsilon", "sigma1", "Omega", "Xi", "Psi", "Zeta", "bracketleft",
218
- "therefore", "bracketright", "perpendicular", "underscore", "radicalex",
219
- "alpha", "beta", "chi", "delta", "epsilon", "phi", "gamma", "eta", "iota",
220
- "phi1", "kappa", "lambda", "mu", "nu", "omicron", "pi", "theta", "rho",
221
- "sigma", "tau", "upsilon", "omega1", "omega", "xi", "psi", "zeta",
222
- "braceleft", "bar", "braceright", "similar", "", "", "", "", "", "", "",
223
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
224
- "", "", "", "", "", "", "", "Euro", "Upsilon1", "minute", "lessequal",
225
- "fraction", "infinity", "florin", "club", "diamond", "heart", "spade",
226
- "arrowboth", "arrowleft", "arrowup", "arrowright", "arrowdown", "degree",
227
- "plusminus", "second", "greaterequal", "multiply", "proportional",
228
- "partialdiff", "bullet", "divide", "notequal", "equivalence",
229
- "approxequal", "ellipsis", "arrowvertex", "arrowhorizex", "carriagereturn",
230
- "aleph", "Ifraktur", "Rfraktur", "weierstrass", "circlemultiply",
231
- "circleplus", "emptyset", "intersection", "union", "propersuperset",
232
- "reflexsuperset", "notsubset", "propersubset", "reflexsubset", "element",
233
- "notelement", "angle", "gradient", "registerserif", "copyrightserif",
234
- "trademarkserif", "product", "radical", "dotmath", "logicalnot",
235
- "logicaland", "logicalor", "arrowdblboth", "arrowdblleft", "arrowdblup",
236
- "arrowdblright", "arrowdbldown", "lozenge", "angleleft", "registersans",
237
- "copyrightsans", "trademarksans", "summation", "parenlefttp",
238
- "parenleftex", "parenleftbt", "bracketlefttp", "bracketleftex",
239
- "bracketleftbt", "bracelefttp", "braceleftmid", "braceleftbt", "braceex",
240
- "", "angleright", "integral", "integraltp", "integralex", "integralbt",
241
- "parenrighttp", "parenrightex", "parenrightbt", "bracketrighttp",
242
- "bracketrightex", "bracketrightbt", "bracerighttp", "bracerightmid",
243
- "bracerightbt", ""];
244
-
245
- // prettier-ignore
246
- const ZapfDingbatsEncoding = [
247
- "", "", "", "", "", "", "", "", "", "", "", "", "", "",
248
- "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
249
- "space", "a1", "a2", "a202", "a3", "a4", "a5", "a119", "a118", "a117",
250
- "a11", "a12", "a13", "a14", "a15", "a16", "a105", "a17", "a18", "a19",
251
- "a20", "a21", "a22", "a23", "a24", "a25", "a26", "a27", "a28", "a6", "a7",
252
- "a8", "a9", "a10", "a29", "a30", "a31", "a32", "a33", "a34", "a35", "a36",
253
- "a37", "a38", "a39", "a40", "a41", "a42", "a43", "a44", "a45", "a46",
254
- "a47", "a48", "a49", "a50", "a51", "a52", "a53", "a54", "a55", "a56",
255
- "a57", "a58", "a59", "a60", "a61", "a62", "a63", "a64", "a65", "a66",
256
- "a67", "a68", "a69", "a70", "a71", "a72", "a73", "a74", "a203", "a75",
257
- "a204", "a76", "a77", "a78", "a79", "a81", "a82", "a83", "a84", "a97",
258
- "a98", "a99", "a100", "", "a89", "a90", "a93", "a94", "a91", "a92", "a205",
259
- "a85", "a206", "a86", "a87", "a88", "a95", "a96", "", "", "", "", "", "",
260
- "", "", "", "", "", "", "", "", "", "", "", "", "", "a101", "a102", "a103",
261
- "a104", "a106", "a107", "a108", "a112", "a111", "a110", "a109", "a120",
262
- "a121", "a122", "a123", "a124", "a125", "a126", "a127", "a128", "a129",
263
- "a130", "a131", "a132", "a133", "a134", "a135", "a136", "a137", "a138",
264
- "a139", "a140", "a141", "a142", "a143", "a144", "a145", "a146", "a147",
265
- "a148", "a149", "a150", "a151", "a152", "a153", "a154", "a155", "a156",
266
- "a157", "a158", "a159", "a160", "a161", "a163", "a164", "a196", "a165",
267
- "a192", "a166", "a167", "a168", "a169", "a170", "a171", "a172", "a173",
268
- "a162", "a174", "a175", "a176", "a177", "a178", "a179", "a193", "a180",
269
- "a199", "a181", "a200", "a182", "", "a201", "a183", "a184", "a197", "a185",
270
- "a194", "a198", "a186", "a195", "a187", "a188", "a189", "a190", "a191", ""];
271
-
272
- function getEncoding(encodingName) {
273
- switch (encodingName) {
274
- case "WinAnsiEncoding":
275
- return WinAnsiEncoding;
276
- case "StandardEncoding":
277
- return StandardEncoding;
278
- case "MacRomanEncoding":
279
- return MacRomanEncoding;
280
- case "SymbolSetEncoding":
281
- return SymbolSetEncoding;
282
- case "ZapfDingbatsEncoding":
283
- return ZapfDingbatsEncoding;
284
- case "ExpertEncoding":
285
- return ExpertEncoding;
286
- case "MacExpertEncoding":
287
- return MacExpertEncoding;
288
- default:
289
- return null;
290
- }
291
- }
292
-
293
- export {
294
- ExpertEncoding,
295
- getEncoding,
296
- MacRomanEncoding,
297
- StandardEncoding,
298
- SymbolSetEncoding,
299
- WinAnsiEncoding,
300
- ZapfDingbatsEncoding,
301
- };