@syncfusion/ej2-pdf-export 35.1.37 → 35.1.43

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 (64) hide show
  1. package/dist/ej2-pdf-export.min.js +2 -2
  2. package/dist/ej2-pdf-export.umd.min.js +2 -2
  3. package/dist/ej2-pdf-export.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-pdf-export.es2015.js +430 -2797
  5. package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
  6. package/dist/es6/ej2-pdf-export.es5.js +430 -2797
  7. package/dist/es6/ej2-pdf-export.es5.js.map +1 -1
  8. package/dist/global/ej2-pdf-export.min.js +2 -2
  9. package/dist/global/ej2-pdf-export.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +1 -1
  12. package/src/implementation/actions/action.d.ts +0 -6
  13. package/src/implementation/actions/action.js +2 -8
  14. package/src/implementation/actions/uri-action.js +2 -2
  15. package/src/implementation/annotations/annotation-collection.d.ts +0 -6
  16. package/src/implementation/annotations/annotation-collection.js +1 -7
  17. package/src/implementation/annotations/annotation.d.ts +0 -6
  18. package/src/implementation/annotations/annotation.js +5 -11
  19. package/src/implementation/annotations/document-link-annotation.js +1 -1
  20. package/src/implementation/annotations/link-annotation.js +1 -1
  21. package/src/implementation/annotations/uri-annotation.js +2 -2
  22. package/src/implementation/document/pdf-viewer-preferences.d.ts +0 -2
  23. package/src/implementation/document/pdf-viewer-preferences.js +12 -14
  24. package/src/implementation/general/pdf-destination.d.ts +0 -6
  25. package/src/implementation/general/pdf-destination.js +2 -8
  26. package/src/implementation/graphics/brushes/pdf-brushes.d.ts +10 -4
  27. package/src/implementation/graphics/brushes/pdf-brushes.js +163 -1843
  28. package/src/implementation/graphics/brushes/pdf-gradient-brush.d.ts +0 -5
  29. package/src/implementation/graphics/brushes/pdf-gradient-brush.js +18 -24
  30. package/src/implementation/graphics/figures/pdf-template.d.ts +0 -6
  31. package/src/implementation/graphics/figures/pdf-template.js +7 -14
  32. package/src/implementation/graphics/fonts/pdf-standard-font-metrics-factory.d.ts +15 -1
  33. package/src/implementation/graphics/fonts/pdf-standard-font-metrics-factory.js +45 -161
  34. package/src/implementation/graphics/fonts/pdf-standard-font.d.ts +0 -5
  35. package/src/implementation/graphics/fonts/pdf-standard-font.js +4 -10
  36. package/src/implementation/graphics/fonts/rtl/rtl-bidirectional.d.ts +7 -0
  37. package/src/implementation/graphics/fonts/rtl/rtl-bidirectional.js +31 -461
  38. package/src/implementation/graphics/fonts/rtl/rtl-text-shape.d.ts +12 -0
  39. package/src/implementation/graphics/fonts/rtl/rtl-text-shape.js +32 -76
  40. package/src/implementation/graphics/fonts/unicode-true-type-font.d.ts +0 -5
  41. package/src/implementation/graphics/fonts/unicode-true-type-font.js +37 -43
  42. package/src/implementation/graphics/images/image-decoder.d.ts +0 -6
  43. package/src/implementation/graphics/images/image-decoder.js +14 -21
  44. package/src/implementation/graphics/images/pdf-bitmap.d.ts +0 -6
  45. package/src/implementation/graphics/images/pdf-bitmap.js +0 -7
  46. package/src/implementation/graphics/pdf-graphics.d.ts +0 -5
  47. package/src/implementation/graphics/pdf-graphics.js +0 -6
  48. package/src/implementation/graphics/pdf-resources.js +15 -15
  49. package/src/implementation/graphics/pdf-transparency.d.ts +0 -6
  50. package/src/implementation/graphics/pdf-transparency.js +6 -13
  51. package/src/implementation/input-output/pdf-cross-table.d.ts +0 -6
  52. package/src/implementation/input-output/pdf-cross-table.js +2 -9
  53. package/src/implementation/pages/pdf-page-base.d.ts +0 -7
  54. package/src/implementation/pages/pdf-page-base.js +4 -11
  55. package/src/implementation/pages/pdf-page-layer.d.ts +0 -5
  56. package/src/implementation/pages/pdf-page-layer.js +0 -6
  57. package/src/implementation/pages/pdf-page.js +5 -5
  58. package/src/implementation/pages/pdf-section-collection.d.ts +0 -5
  59. package/src/implementation/pages/pdf-section-collection.js +5 -11
  60. package/src/implementation/pages/pdf-section.d.ts +0 -5
  61. package/src/implementation/pages/pdf-section.js +6 -12
  62. package/src/implementation/primitives/pdf-reference.d.ts +0 -5
  63. package/src/implementation/primitives/pdf-reference.js +1 -7
  64. package/src/implementation/primitives/pdf-stream.js +7 -7
@@ -53,11 +53,6 @@ export declare abstract class PdfGradientBrush extends PdfBrush implements IPdfW
53
53
  * @private
54
54
  */
55
55
  private mfunction;
56
- /**
57
- * Local variable to store the DictionaryProperties.
58
- * @private
59
- */
60
- private dictionaryProperties;
61
56
  /**
62
57
  * Initializes a new instance of the `PdfGradientBrush` class.
63
58
  * @public
@@ -15,7 +15,6 @@ import { PdfColorSpace } from './../enum';
15
15
  import { PdfColor } from './../pdf-color';
16
16
  import { PdfBrush } from './pdf-brush';
17
17
  import { PdfDictionary } from '../../primitives/pdf-dictionary';
18
- import { DictionaryProperties } from './../../input-output/pdf-dictionary-properties';
19
18
  import { PdfBoolean } from './../../primitives/pdf-boolean';
20
19
  import { PdfArray } from './../../primitives/pdf-array';
21
20
  import { PdfName } from '../../primitives/pdf-name';
@@ -52,14 +51,9 @@ var PdfGradientBrush = /** @class */ (function (_super) {
52
51
  * @private
53
52
  */
54
53
  _this.mfunction = null;
55
- /**
56
- * Local variable to store the DictionaryProperties.
57
- * @private
58
- */
59
- _this.dictionaryProperties = new DictionaryProperties();
60
54
  _this.mpatternDictionary = new PdfDictionary();
61
- _this.mpatternDictionary.items.setValue(_this.dictionaryProperties.type, new PdfName(_this.dictionaryProperties.pattern));
62
- _this.mpatternDictionary.items.setValue(_this.dictionaryProperties.patternType, new PdfNumber(2));
55
+ _this.mpatternDictionary.items.setValue('Type', new PdfName('Pattern'));
56
+ _this.mpatternDictionary.items.setValue('PatternType', new PdfNumber(2));
63
57
  _this.shading = shading;
64
58
  _this.colorSpace = PdfColorSpace.Rgb;
65
59
  return _this;
@@ -77,10 +71,10 @@ var PdfGradientBrush = /** @class */ (function (_super) {
77
71
  this.mbackground = value;
78
72
  var sh = this.shading;
79
73
  if (value.isEmpty) {
80
- sh.remove(this.dictionaryProperties.background);
74
+ sh.remove('Background');
81
75
  }
82
76
  else {
83
- sh.items.setValue(this.dictionaryProperties.background, value.toArray(this.colorSpace));
77
+ sh.items.setValue('Background', value.toArray(this.colorSpace));
84
78
  }
85
79
  },
86
80
  enumerable: true,
@@ -93,15 +87,15 @@ var PdfGradientBrush = /** @class */ (function (_super) {
93
87
  */
94
88
  get: function () {
95
89
  var sh = this.shading;
96
- var aa = (sh.items.getValue(this.dictionaryProperties.antiAlias));
90
+ var aa = (sh.items.getValue('AntiAlias'));
97
91
  return aa.value;
98
92
  },
99
93
  set: function (value) {
100
94
  var sh = this.shading;
101
- var aa = (sh.items.getValue(this.dictionaryProperties.antiAlias));
95
+ var aa = (sh.items.getValue('AntiAlias'));
102
96
  if ((aa == null && typeof aa === 'undefined')) {
103
97
  aa = new PdfBoolean(value);
104
- sh.items.setValue(this.dictionaryProperties.antiAlias, aa);
98
+ sh.items.setValue('AntiAlias', aa);
105
99
  }
106
100
  else {
107
101
  aa.value = value;
@@ -121,10 +115,10 @@ var PdfGradientBrush = /** @class */ (function (_super) {
121
115
  set: function (value) {
122
116
  this.mfunction = value;
123
117
  if (value != null && typeof value !== 'undefined') {
124
- this.shading.items.setValue(this.dictionaryProperties.function, new PdfReferenceHolder(this.mfunction));
118
+ this.shading.items.setValue('Function', new PdfReferenceHolder(this.mfunction));
125
119
  }
126
120
  else {
127
- this.shading.remove(this.dictionaryProperties.function);
121
+ this.shading.remove('Function');
128
122
  }
129
123
  },
130
124
  enumerable: true,
@@ -137,16 +131,16 @@ var PdfGradientBrush = /** @class */ (function (_super) {
137
131
  */
138
132
  get: function () {
139
133
  var sh = this.shading;
140
- var box = (sh.items.getValue(this.dictionaryProperties.bBox));
134
+ var box = (sh.items.getValue('BBox'));
141
135
  return box;
142
136
  },
143
137
  set: function (value) {
144
138
  var sh = this.shading;
145
139
  if (value == null && typeof value === 'undefined') {
146
- sh.remove(this.dictionaryProperties.bBox);
140
+ sh.remove('BBox');
147
141
  }
148
142
  else {
149
- sh.items.setValue(this.dictionaryProperties.bBox, value);
143
+ sh.items.setValue('BBox', value);
150
144
  }
151
145
  },
152
146
  enumerable: true,
@@ -161,11 +155,11 @@ var PdfGradientBrush = /** @class */ (function (_super) {
161
155
  return this.mcolorSpace;
162
156
  },
163
157
  set: function (value) {
164
- var colorSpace = this.shading.items.getValue(this.dictionaryProperties.colorSpace);
158
+ var colorSpace = this.shading.items.getValue('ColorSpace');
165
159
  if ((value !== this.mcolorSpace) || (colorSpace == null)) {
166
160
  this.mcolorSpace = value;
167
161
  var csValue = this.colorSpaceToDeviceName(value);
168
- this.shading.items.setValue(this.dictionaryProperties.colorSpace, new PdfName(csValue));
162
+ this.shading.items.setValue('ColorSpace', new PdfName(csValue));
169
163
  }
170
164
  },
171
165
  enumerable: true,
@@ -213,7 +207,7 @@ var PdfGradientBrush = /** @class */ (function (_super) {
213
207
  }
214
208
  if (value !== this.mshading) {
215
209
  this.mshading = value;
216
- this.patternDictionary.items.setValue(this.dictionaryProperties.shading, new PdfReferenceHolder(this.mshading));
210
+ this.patternDictionary.items.setValue('Shading', new PdfReferenceHolder(this.mshading));
217
211
  }
218
212
  },
219
213
  enumerable: true,
@@ -234,7 +228,7 @@ var PdfGradientBrush = /** @class */ (function (_super) {
234
228
  if (value !== this.mmatrix) {
235
229
  this.mmatrix = value.clone();
236
230
  var m = new PdfArray(this.mmatrix.matrix.elements);
237
- this.mpatternDictionary.items.setValue(this.dictionaryProperties.matrix, m);
231
+ this.mpatternDictionary.items.setValue('Matrix', m);
238
232
  }
239
233
  },
240
234
  enumerable: true,
@@ -305,9 +299,9 @@ var PdfGradientBrush = /** @class */ (function (_super) {
305
299
  throw new Error('ArgumentNullException : brush');
306
300
  }
307
301
  var sh = this.shading;
308
- var aa = (sh.items.getValue(this.dictionaryProperties.antiAlias));
302
+ var aa = (sh.items.getValue('AntiAlias'));
309
303
  if ((aa != null)) {
310
- brush.shading.items.setValue(this.dictionaryProperties.antiAlias, new PdfBoolean(aa.value));
304
+ brush.shading.items.setValue('AntiAlias', new PdfBoolean(aa.value));
311
305
  }
312
306
  };
313
307
  /**
@@ -27,12 +27,6 @@ export declare class PdfTemplate implements IPdfWrapper {
27
27
  * @private
28
28
  */
29
29
  private templateSize;
30
- /**
31
- * Initialize an instance for `DictionaryProperties` class.
32
- * @private
33
- * @hidden
34
- */
35
- private dictionaryProperties;
36
30
  /**
37
31
  * Stores the `content` of the 'PdfTemplate'.
38
32
  * @private
@@ -2,7 +2,6 @@
2
2
  * PdfTemplate.ts class for EJ2-PDF
3
3
  */
4
4
  import { PdfStream } from './../../primitives/pdf-stream';
5
- import { DictionaryProperties } from './../../input-output/pdf-dictionary-properties';
6
5
  import { PdfArray } from './../../primitives/pdf-array';
7
6
  import { PdfGraphics } from './../pdf-graphics';
8
7
  import { PdfResources } from './../pdf-resources';
@@ -15,12 +14,6 @@ import { GetResourceEventHandler } from './../pdf-graphics';
15
14
  */
16
15
  var PdfTemplate = /** @class */ (function () {
17
16
  function PdfTemplate(arg1, arg2) {
18
- /**
19
- * Initialize an instance for `DictionaryProperties` class.
20
- * @private
21
- * @hidden
22
- */
23
- this.dictionaryProperties = new DictionaryProperties();
24
17
  /**
25
18
  * Checks whether the transformation 'is performed'.
26
19
  * @default true
@@ -99,7 +92,7 @@ var PdfTemplate = /** @class */ (function () {
99
92
  PdfTemplate.prototype.getResources = function () {
100
93
  if (this.resources == null) {
101
94
  this.resources = new PdfResources();
102
- this.content.items.setValue(this.dictionaryProperties.resources, this.resources);
95
+ this.content.items.setValue('Resources', this.resources);
103
96
  }
104
97
  return this.resources;
105
98
  };
@@ -117,22 +110,22 @@ var PdfTemplate = /** @class */ (function () {
117
110
  * @private
118
111
  */
119
112
  PdfTemplate.prototype.addType = function () {
120
- var value = new PdfName(this.dictionaryProperties.xObject);
121
- this.content.items.setValue(this.dictionaryProperties.type, value);
113
+ var value = new PdfName('XObject');
114
+ this.content.items.setValue('Type', value);
122
115
  };
123
116
  /**
124
117
  * `Adds SubType key`.
125
118
  * @private
126
119
  */
127
120
  PdfTemplate.prototype.addSubType = function () {
128
- var value = new PdfName(this.dictionaryProperties.form);
129
- this.content.items.setValue(this.dictionaryProperties.subtype, value);
121
+ var value = new PdfName('Form');
122
+ this.content.items.setValue('Subtype', value);
130
123
  };
131
124
  PdfTemplate.prototype.reset = function (size) {
132
125
  if (typeof size === 'undefined') {
133
126
  if (this.resources != null) {
134
127
  this.resources = null;
135
- this.content.remove(this.dictionaryProperties.resources);
128
+ this.content.remove('Resources');
136
129
  }
137
130
  if (this.graphics != null) {
138
131
  this.graphics.reset(this.size);
@@ -150,7 +143,7 @@ var PdfTemplate = /** @class */ (function () {
150
143
  PdfTemplate.prototype.setSize = function (size) {
151
144
  var rect = new RectangleF(new PointF(0, 0), size);
152
145
  var val = PdfArray.fromRectangle(rect);
153
- this.content.items.setValue(this.dictionaryProperties.bBox, val);
146
+ this.content.items.setValue('BBox', val);
154
147
  this.templateSize = size;
155
148
  };
156
149
  Object.defineProperty(PdfTemplate.prototype, "element", {
@@ -237,6 +237,10 @@ export declare class PdfStandardFontMetricsFactory {
237
237
  * `Fixed` widths table.
238
238
  * @private
239
239
  */
240
+ /**
241
+ * `Fixed` widths table (every glyph is 600 units wide).
242
+ * @private
243
+ */
240
244
  private static fixedWidth;
241
245
  /**
242
246
  * `Times` widths table.
@@ -257,7 +261,7 @@ export declare class PdfStandardFontMetricsFactory {
257
261
  * `Times bold italic` widths table.
258
262
  * @private
259
263
  */
260
- static timesRomanBoldItalicWidths: number[];
264
+ private static timesRomanBoldItalicWidths;
261
265
  /**
262
266
  * `Symbol` widths table.
263
267
  * @private
@@ -268,6 +272,16 @@ export declare class PdfStandardFontMetricsFactory {
268
272
  * @private
269
273
  */
270
274
  private static zapfDingbatsWidth;
275
+ /**
276
+ * Decodes a packed width table into a numeric array.
277
+ * @private
278
+ */
279
+ private static decodeWidths;
280
+ /**
281
+ * Creates the fixed-width (Courier) table: every glyph is 600 units wide.
282
+ * @private
283
+ */
284
+ private static createFixedWidth;
271
285
  /**
272
286
  * Returns `metrics` of the font.
273
287
  * @private
@@ -10,6 +10,28 @@ import { PdfFontMetrics, StandardWidthTable } from './pdf-font-metrics';
10
10
  var PdfStandardFontMetricsFactory = /** @class */ (function () {
11
11
  function PdfStandardFontMetricsFactory() {
12
12
  }
13
+ /**
14
+ * Decodes a packed width table into a numeric array.
15
+ * @private
16
+ */
17
+ PdfStandardFontMetricsFactory.decodeWidths = function (packed, offset) {
18
+ var widths = [];
19
+ for (var i = 0; i < packed.length; i++) {
20
+ widths.push(packed.charCodeAt(i) - offset);
21
+ }
22
+ return widths;
23
+ };
24
+ /**
25
+ * Creates the fixed-width (Courier) table: every glyph is 600 units wide.
26
+ * @private
27
+ */
28
+ PdfStandardFontMetricsFactory.createFixedWidth = function () {
29
+ var widths = [];
30
+ for (var i = 0; i < 224; i++) {
31
+ widths.push(600);
32
+ }
33
+ return widths;
34
+ };
13
35
  /**
14
36
  * Returns `metrics` of the font.
15
37
  * @private
@@ -53,7 +75,7 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
53
75
  metrics.descent = this.helveticaBoldItalicDescent;
54
76
  metrics.postScriptName = this.helveticaBoldItalicName;
55
77
  metrics.size = size;
56
- metrics.widthTable = new StandardWidthTable(this.arialBoldWidth);
78
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.arialBoldWidth, 0));
57
79
  metrics.height = metrics.ascent - metrics.descent;
58
80
  }
59
81
  else if ((fontStyle & PdfFontStyle.Bold) > 0) {
@@ -61,7 +83,7 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
61
83
  metrics.descent = this.helveticaBoldDescent;
62
84
  metrics.postScriptName = this.helveticaBoldName;
63
85
  metrics.size = size;
64
- metrics.widthTable = new StandardWidthTable(this.arialBoldWidth);
86
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.arialBoldWidth, 0));
65
87
  metrics.height = metrics.ascent - metrics.descent;
66
88
  }
67
89
  else if ((fontStyle & PdfFontStyle.Italic) > 0) {
@@ -69,7 +91,7 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
69
91
  metrics.descent = this.helveticaItalicDescent;
70
92
  metrics.postScriptName = this.helveticaItalicName;
71
93
  metrics.size = size;
72
- metrics.widthTable = new StandardWidthTable(this.arialWidth);
94
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.arialWidth, 0));
73
95
  metrics.height = metrics.ascent - metrics.descent;
74
96
  }
75
97
  else {
@@ -77,7 +99,7 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
77
99
  metrics.descent = this.helveticaDescent;
78
100
  metrics.postScriptName = this.helveticaName;
79
101
  metrics.size = size;
80
- metrics.widthTable = new StandardWidthTable(this.arialWidth);
102
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.arialWidth, 0));
81
103
  metrics.height = metrics.ascent - metrics.descent;
82
104
  }
83
105
  return metrics;
@@ -133,7 +155,7 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
133
155
  metrics.descent = this.timesBoldItalicDescent;
134
156
  metrics.postScriptName = this.timesBoldItalicName;
135
157
  metrics.size = size;
136
- metrics.widthTable = new StandardWidthTable(this.timesRomanBoldItalicWidths);
158
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.timesRomanBoldItalicWidths, 0));
137
159
  metrics.height = metrics.ascent - metrics.descent;
138
160
  }
139
161
  else if ((fontStyle & PdfFontStyle.Bold) > 0) {
@@ -141,7 +163,7 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
141
163
  metrics.descent = this.timesBoldDescent;
142
164
  metrics.postScriptName = this.timesBoldName;
143
165
  metrics.size = size;
144
- metrics.widthTable = new StandardWidthTable(this.timesRomanBoldWidth);
166
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.timesRomanBoldWidth, 0));
145
167
  metrics.height = metrics.ascent - metrics.descent;
146
168
  }
147
169
  else if ((fontStyle & PdfFontStyle.Italic) > 0) {
@@ -149,7 +171,7 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
149
171
  metrics.descent = this.timesItalicDescent;
150
172
  metrics.postScriptName = this.timesItalicName;
151
173
  metrics.size = size;
152
- metrics.widthTable = new StandardWidthTable(this.timesRomanItalicWidth);
174
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.timesRomanItalicWidth, 0));
153
175
  metrics.height = metrics.ascent - metrics.descent;
154
176
  }
155
177
  else {
@@ -157,7 +179,7 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
157
179
  metrics.descent = this.timesDescent;
158
180
  metrics.postScriptName = this.timesName;
159
181
  metrics.size = size;
160
- metrics.widthTable = new StandardWidthTable(this.timesRomanWidth);
182
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.timesRomanWidth, 0));
161
183
  metrics.height = metrics.ascent - metrics.descent;
162
184
  }
163
185
  return metrics;
@@ -172,7 +194,7 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
172
194
  metrics.descent = this.symbolDescent;
173
195
  metrics.postScriptName = this.symbolName;
174
196
  metrics.size = size;
175
- metrics.widthTable = new StandardWidthTable(this.symbolWidth);
197
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.symbolWidth, 1));
176
198
  metrics.height = metrics.ascent - metrics.descent;
177
199
  return metrics;
178
200
  };
@@ -186,7 +208,7 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
186
208
  metrics.descent = this.zapfDingbatsDescent;
187
209
  metrics.postScriptName = this.zapfDingbatsName;
188
210
  metrics.size = size;
189
- metrics.widthTable = new StandardWidthTable(this.zapfDingbatsWidth);
211
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.zapfDingbatsWidth, 0));
190
212
  metrics.height = metrics.ascent - metrics.descent;
191
213
  return metrics;
192
214
  };
@@ -409,189 +431,51 @@ var PdfStandardFontMetricsFactory = /** @class */ (function () {
409
431
  * `Arial` widths table.
410
432
  * @private
411
433
  */
412
- PdfStandardFontMetricsFactory.arialWidth = [
413
- 278, 278, 355, 556, 556, 889, 667, 191, 333, 333, 389, 584, 278, 333,
414
- 278, 278, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 278, 278, 584, 584,
415
- 584, 556, 1015, 667, 667, 722, 722, 667, 611, 778, 722, 278, 500, 667, 556, 833,
416
- 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667, 667, 611, 278, 278, 278,
417
- 469, 556, 333, 556, 556, 500, 556, 556, 278, 556, 556, 222, 222, 500, 222, 833,
418
- 556, 556, 556, 556, 333, 500, 278, 556, 500, 722, 500, 500, 500, 334, 260, 334,
419
- 584, 0, 556, 0, 222, 556, 333, 1000, 556, 556, 333, 1000, 667, 333, 1000, 0,
420
- 611, 0, 0, 222, 222, 333, 333, 350, 556, 1000, 333, 1000, 500, 333, 944, 0,
421
- 500, 667, 0, 333, 556, 556, 556, 556, 260, 556, 333, 737, 370, 556, 584, 0,
422
- 737, 333, 400, 584, 333, 333, 333, 556, 537, 278, 333, 333, 365, 556, 834, 834,
423
- 834, 611, 667, 667, 667, 667, 667, 667, 1000, 722, 667, 667, 667, 667, 278, 278,
424
- 278, 278, 722, 722, 778, 778, 778, 778, 778, 584, 778, 722, 722, 722, 722, 667,
425
- 667, 611, 556, 556, 556, 556, 556, 556, 889, 500, 556, 556, 556, 556, 278, 278,
426
- 278, 278, 556, 556, 556, 556, 556, 556, 556, 584, 611, 556, 556, 556, 556, 500,
427
- 556, 500
428
- ];
434
+ PdfStandardFontMetricsFactory.arialWidth = '\u0116\u0116\u0163\u022c\u022c\u0379\u029b\u00bf\u014d\u014d\u0185\u0248\u0116\u014d\u0116\u0116\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u0116\u0116\u0248\u0248\u0248\u022c\u03f7\u029b\u029b\u02d2\u02d2\u029b\u0263\u030a\u02d2\u0116\u01f4\u029b\u022c\u0341\u02d2\u030a\u029b\u030a\u02d2\u029b\u0263\u02d2\u029b\u03b0\u029b\u029b\u0263\u0116\u0116\u0116\u01d5\u022c\u014d\u022c\u022c\u01f4\u022c\u022c\u0116\u022c\u022c\u00de\u00de\u01f4\u00de\u0341\u022c\u022c\u022c\u022c\u014d\u01f4\u0116\u022c\u01f4\u02d2\u01f4\u01f4\u01f4\u014e\u0104\u014e\u0248\u0000\u022c\u0000\u00de\u022c\u014d\u03e8\u022c\u022c\u014d\u03e8\u029b\u014d\u03e8\u0000\u0263\u0000\u0000\u00de\u00de\u014d\u014d\u015e\u022c\u03e8\u014d\u03e8\u01f4\u014d\u03b0\u0000\u01f4\u029b\u0000\u014d\u022c\u022c\u022c\u022c\u0104\u022c\u014d\u02e1\u0172\u022c\u0248\u0000\u02e1\u014d\u0190\u0248\u014d\u014d\u014d\u022c\u0219\u0116\u014d\u014d\u016d\u022c\u0342\u0342\u0342\u0263\u029b\u029b\u029b\u029b\u029b\u029b\u03e8\u02d2\u029b\u029b\u029b\u029b\u0116\u0116\u0116\u0116\u02d2\u02d2\u030a\u030a\u030a\u030a\u030a\u0248\u030a\u02d2\u02d2\u02d2\u02d2\u029b\u029b\u0263\u022c\u022c\u022c\u022c\u022c\u022c\u0379\u01f4\u022c\u022c\u022c\u022c\u0116\u0116\u0116\u0116\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u0248\u0263\u022c\u022c\u022c\u022c\u01f4\u022c\u01f4';
429
435
  /**
430
436
  * `Arial bold` widths table.
431
437
  * @private
432
438
  */
433
- PdfStandardFontMetricsFactory.arialBoldWidth = [
434
- 278, 333, 474, 556, 556, 889, 722, 238, 333, 333, 389, 584, 278, 333,
435
- 278, 278, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 333, 333, 584, 584,
436
- 584, 611, 975, 722, 722, 722, 722, 667, 611, 778, 722, 278, 556, 722, 611, 833,
437
- 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667, 667, 611, 333, 278, 333,
438
- 584, 556, 333, 556, 611, 556, 611, 556, 333, 611, 611, 278, 278, 556, 278, 889,
439
- 611, 611, 611, 611, 389, 556, 333, 611, 556, 778, 556, 556, 500, 389, 280, 389,
440
- 584, 0, 556, 0, 278, 556, 500, 1000, 556, 556, 333, 1000, 667, 333, 1000, 0,
441
- 611, 0, 0, 278, 278, 500, 500, 350, 556, 1000, 333, 1000, 556, 333, 944, 0,
442
- 500, 667, 0, 333, 556, 556, 556, 556, 280, 556, 333, 737, 370, 556, 584, 0,
443
- 737, 333, 400, 584, 333, 333, 333, 611, 556, 278, 333, 333, 365, 556, 834, 834,
444
- 834, 611, 722, 722, 722, 722, 722, 722, 1000, 722, 667, 667, 667, 667, 278, 278,
445
- 278, 278, 722, 722, 778, 778, 778, 778, 778, 584, 778, 722, 722, 722, 722, 667,
446
- 667, 611, 556, 556, 556, 556, 556, 556, 889, 556, 556, 556, 556, 556, 278, 278,
447
- 278, 278, 611, 611, 611, 611, 611, 611, 611, 584, 611, 611, 611, 611, 611, 556,
448
- 611, 556
449
- ];
439
+ PdfStandardFontMetricsFactory.arialBoldWidth = '\u0116\u014d\u01da\u022c\u022c\u0379\u02d2\u00ee\u014d\u014d\u0185\u0248\u0116\u014d\u0116\u0116\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u014d\u014d\u0248\u0248\u0248\u0263\u03cf\u02d2\u02d2\u02d2\u02d2\u029b\u0263\u030a\u02d2\u0116\u022c\u02d2\u0263\u0341\u02d2\u030a\u029b\u030a\u02d2\u029b\u0263\u02d2\u029b\u03b0\u029b\u029b\u0263\u014d\u0116\u014d\u0248\u022c\u014d\u022c\u0263\u022c\u0263\u022c\u014d\u0263\u0263\u0116\u0116\u022c\u0116\u0379\u0263\u0263\u0263\u0263\u0185\u022c\u014d\u0263\u022c\u030a\u022c\u022c\u01f4\u0185\u0118\u0185\u0248\u0000\u022c\u0000\u0116\u022c\u01f4\u03e8\u022c\u022c\u014d\u03e8\u029b\u014d\u03e8\u0000\u0263\u0000\u0000\u0116\u0116\u01f4\u01f4\u015e\u022c\u03e8\u014d\u03e8\u022c\u014d\u03b0\u0000\u01f4\u029b\u0000\u014d\u022c\u022c\u022c\u022c\u0118\u022c\u014d\u02e1\u0172\u022c\u0248\u0000\u02e1\u014d\u0190\u0248\u014d\u014d\u014d\u0263\u022c\u0116\u014d\u014d\u016d\u022c\u0342\u0342\u0342\u0263\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u03e8\u02d2\u029b\u029b\u029b\u029b\u0116\u0116\u0116\u0116\u02d2\u02d2\u030a\u030a\u030a\u030a\u030a\u0248\u030a\u02d2\u02d2\u02d2\u02d2\u029b\u029b\u0263\u022c\u022c\u022c\u022c\u022c\u022c\u0379\u022c\u022c\u022c\u022c\u022c\u0116\u0116\u0116\u0116\u0263\u0263\u0263\u0263\u0263\u0263\u0263\u0248\u0263\u0263\u0263\u0263\u0263\u022c\u0263\u022c';
450
440
  /**
451
441
  * `Fixed` widths table.
452
442
  * @private
453
443
  */
454
- PdfStandardFontMetricsFactory.fixedWidth = [
455
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
456
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
457
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
458
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
459
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
460
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
461
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
462
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
463
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
464
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
465
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
466
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
467
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
468
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600
469
- ];
444
+ /**
445
+ * `Fixed` widths table (every glyph is 600 units wide).
446
+ * @private
447
+ */
448
+ PdfStandardFontMetricsFactory.fixedWidth = PdfStandardFontMetricsFactory.createFixedWidth();
470
449
  /**
471
450
  * `Times` widths table.
472
451
  * @private
473
452
  */
474
- PdfStandardFontMetricsFactory.timesRomanWidth = [
475
- 250, 333, 408, 500, 500, 833, 778, 180, 333, 333, 500, 564, 250, 333,
476
- 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 278, 278, 564, 564,
477
- 564, 444, 921, 722, 667, 667, 722, 611, 556, 722, 722, 333, 389, 722, 611, 889,
478
- 722, 722, 556, 722, 667, 556, 611, 722, 722, 944, 722, 722, 611, 333, 278, 333,
479
- 469, 500, 333, 444, 500, 444, 500, 444, 333, 500, 500, 278, 278, 500, 278, 778,
480
- 500, 500, 500, 500, 333, 389, 278, 500, 500, 722, 500, 500, 444, 480, 200, 480,
481
- 541, 0, 500, 0, 333, 500, 444, 1000, 500, 500, 333, 1000, 556, 333, 889, 0,
482
- 611, 0, 0, 333, 333, 444, 444, 350, 500, 1000, 333, 980, 389, 333, 722, 0,
483
- 444, 722, 0, 333, 500, 500, 500, 500, 200, 500, 333, 760, 276, 500, 564, 0,
484
- 760, 333, 400, 564, 300, 300, 333, 500, 453, 250, 333, 300, 310, 500, 750, 750,
485
- 750, 444, 722, 722, 722, 722, 722, 722, 889, 667, 611, 611, 611, 611, 333, 333,
486
- 333, 333, 722, 722, 722, 722, 722, 722, 722, 564, 722, 722, 722, 722, 722, 722,
487
- 556, 500, 444, 444, 444, 444, 444, 444, 667, 444, 444, 444, 444, 444, 278, 278,
488
- 278, 278, 500, 500, 500, 500, 500, 500, 500, 564, 500, 500, 500, 500, 500, 500,
489
- 500, 500
490
- ];
453
+ PdfStandardFontMetricsFactory.timesRomanWidth = '\u00fa\u014d\u0198\u01f4\u01f4\u0341\u030a\u00b4\u014d\u014d\u01f4\u0234\u00fa\u014d\u00fa\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u0116\u0116\u0234\u0234\u0234\u01bc\u0399\u02d2\u029b\u029b\u02d2\u0263\u022c\u02d2\u02d2\u014d\u0185\u02d2\u0263\u0379\u02d2\u02d2\u022c\u02d2\u029b\u022c\u0263\u02d2\u02d2\u03b0\u02d2\u02d2\u0263\u014d\u0116\u014d\u01d5\u01f4\u014d\u01bc\u01f4\u01bc\u01f4\u01bc\u014d\u01f4\u01f4\u0116\u0116\u01f4\u0116\u030a\u01f4\u01f4\u01f4\u01f4\u014d\u0185\u0116\u01f4\u01f4\u02d2\u01f4\u01f4\u01bc\u01e0\u00c8\u01e0\u021d\u0000\u01f4\u0000\u014d\u01f4\u01bc\u03e8\u01f4\u01f4\u014d\u03e8\u022c\u014d\u0379\u0000\u0263\u0000\u0000\u014d\u014d\u01bc\u01bc\u015e\u01f4\u03e8\u014d\u03d4\u0185\u014d\u02d2\u0000\u01bc\u02d2\u0000\u014d\u01f4\u01f4\u01f4\u01f4\u00c8\u01f4\u014d\u02f8\u0114\u01f4\u0234\u0000\u02f8\u014d\u0190\u0234\u012c\u012c\u014d\u01f4\u01c5\u00fa\u014d\u012c\u0136\u01f4\u02ee\u02ee\u02ee\u01bc\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u0379\u029b\u0263\u0263\u0263\u0263\u014d\u014d\u014d\u014d\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u0234\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u022c\u01f4\u01bc\u01bc\u01bc\u01bc\u01bc\u01bc\u029b\u01bc\u01bc\u01bc\u01bc\u01bc\u0116\u0116\u0116\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u0234\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4';
491
454
  /**
492
455
  * `Times bold` widths table.
493
456
  * @private
494
457
  */
495
- PdfStandardFontMetricsFactory.timesRomanBoldWidth = [
496
- 250, 333, 555, 500, 500, 1000, 833, 278, 333, 333, 500, 570, 250, 333,
497
- 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 333, 333, 570, 570,
498
- 570, 500, 930, 722, 667, 722, 722, 667, 611, 778, 778, 389, 500, 778, 667, 944,
499
- 722, 778, 611, 778, 722, 556, 667, 722, 722, 1000, 722, 722, 667, 333, 278, 333,
500
- 581, 500, 333, 500, 556, 444, 556, 444, 333, 500, 556, 278, 333, 556, 278, 833,
501
- 556, 500, 556, 556, 444, 389, 333, 556, 500, 722, 500, 500, 444, 394, 220, 394,
502
- 520, 0, 500, 0, 333, 500, 500, 1000, 500, 500, 333, 1000, 556, 333, 1000, 0,
503
- 667, 0, 0, 333, 333, 500, 500, 350, 500, 1000, 333, 1000, 389, 333, 722, 0,
504
- 444, 722, 0, 333, 500, 500, 500, 500, 220, 500, 333, 747, 300, 500, 570, 0,
505
- 747, 333, 400, 570, 300, 300, 333, 556, 540, 250, 333, 300, 330, 500, 750, 750,
506
- 750, 500, 722, 722, 722, 722, 722, 722, 1000, 722, 667, 667, 667, 667, 389, 389,
507
- 389, 389, 722, 722, 778, 778, 778, 778, 778, 570, 778, 722, 722, 722, 722, 722,
508
- 611, 556, 500, 500, 500, 500, 500, 500, 722, 444, 444, 444, 444, 444, 278, 278,
509
- 278, 278, 500, 556, 500, 500, 500, 500, 500, 570, 500, 556, 556, 556, 556, 500,
510
- 556, 500
511
- ];
458
+ PdfStandardFontMetricsFactory.timesRomanBoldWidth = '\u00fa\u014d\u022b\u01f4\u01f4\u03e8\u0341\u0116\u014d\u014d\u01f4\u023a\u00fa\u014d\u00fa\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u014d\u014d\u023a\u023a\u023a\u01f4\u03a2\u02d2\u029b\u02d2\u02d2\u029b\u0263\u030a\u030a\u0185\u01f4\u030a\u029b\u03b0\u02d2\u030a\u0263\u030a\u02d2\u022c\u029b\u02d2\u02d2\u03e8\u02d2\u02d2\u029b\u014d\u0116\u014d\u0245\u01f4\u014d\u01f4\u022c\u01bc\u022c\u01bc\u014d\u01f4\u022c\u0116\u014d\u022c\u0116\u0341\u022c\u01f4\u022c\u022c\u01bc\u0185\u014d\u022c\u01f4\u02d2\u01f4\u01f4\u01bc\u018a\u00dc\u018a\u0208\u0000\u01f4\u0000\u014d\u01f4\u01f4\u03e8\u01f4\u01f4\u014d\u03e8\u022c\u014d\u03e8\u0000\u029b\u0000\u0000\u014d\u014d\u01f4\u01f4\u015e\u01f4\u03e8\u014d\u03e8\u0185\u014d\u02d2\u0000\u01bc\u02d2\u0000\u014d\u01f4\u01f4\u01f4\u01f4\u00dc\u01f4\u014d\u02eb\u012c\u01f4\u023a\u0000\u02eb\u014d\u0190\u023a\u012c\u012c\u014d\u022c\u021c\u00fa\u014d\u012c\u014a\u01f4\u02ee\u02ee\u02ee\u01f4\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u03e8\u02d2\u029b\u029b\u029b\u029b\u0185\u0185\u0185\u0185\u02d2\u02d2\u030a\u030a\u030a\u030a\u030a\u023a\u030a\u02d2\u02d2\u02d2\u02d2\u02d2\u0263\u022c\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u02d2\u01bc\u01bc\u01bc\u01bc\u01bc\u0116\u0116\u0116\u0116\u01f4\u022c\u01f4\u01f4\u01f4\u01f4\u01f4\u023a\u01f4\u022c\u022c\u022c\u022c\u01f4\u022c\u01f4';
512
459
  /**
513
460
  * `Times italic` widths table.
514
461
  * @private
515
462
  */
516
- PdfStandardFontMetricsFactory.timesRomanItalicWidth = [
517
- 250, 333, 420, 500, 500, 833, 778, 214, 333, 333, 500, 675, 250, 333,
518
- 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 333, 333, 675, 675,
519
- 675, 500, 920, 611, 611, 667, 722, 611, 611, 722, 722, 333, 444, 667, 556, 833,
520
- 667, 722, 611, 722, 611, 500, 556, 722, 611, 833, 611, 556, 556, 389, 278, 389,
521
- 422, 500, 333, 500, 500, 444, 500, 444, 278, 500, 500, 278, 278, 444, 278, 722,
522
- 500, 500, 500, 500, 389, 389, 278, 500, 444, 667, 444, 444, 389, 400, 275, 400,
523
- 541, 0, 500, 0, 333, 500, 556, 889, 500, 500, 333, 1000, 500, 333, 944, 0,
524
- 556, 0, 0, 333, 333, 556, 556, 350, 500, 889, 333, 980, 389, 333, 667, 0,
525
- 389, 556, 0, 389, 500, 500, 500, 500, 275, 500, 333, 760, 276, 500, 675, 0,
526
- 760, 333, 400, 675, 300, 300, 333, 500, 523, 250, 333, 300, 310, 500, 750, 750,
527
- 750, 500, 611, 611, 611, 611, 611, 611, 889, 667, 611, 611, 611, 611, 333, 333,
528
- 333, 333, 722, 667, 722, 722, 722, 722, 722, 675, 722, 722, 722, 722, 722, 556,
529
- 611, 500, 500, 500, 500, 500, 500, 500, 667, 444, 444, 444, 444, 444, 278, 278,
530
- 278, 278, 500, 500, 500, 500, 500, 500, 500, 675, 500, 500, 500, 500, 500, 444,
531
- 500, 444
532
- ];
463
+ PdfStandardFontMetricsFactory.timesRomanItalicWidth = '\u00fa\u014d\u01a4\u01f4\u01f4\u0341\u030a\u00d6\u014d\u014d\u01f4\u02a3\u00fa\u014d\u00fa\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u014d\u014d\u02a3\u02a3\u02a3\u01f4\u0398\u0263\u0263\u029b\u02d2\u0263\u0263\u02d2\u02d2\u014d\u01bc\u029b\u022c\u0341\u029b\u02d2\u0263\u02d2\u0263\u01f4\u022c\u02d2\u0263\u0341\u0263\u022c\u022c\u0185\u0116\u0185\u01a6\u01f4\u014d\u01f4\u01f4\u01bc\u01f4\u01bc\u0116\u01f4\u01f4\u0116\u0116\u01bc\u0116\u02d2\u01f4\u01f4\u01f4\u01f4\u0185\u0185\u0116\u01f4\u01bc\u029b\u01bc\u01bc\u0185\u0190\u0113\u0190\u021d\u0000\u01f4\u0000\u014d\u01f4\u022c\u0379\u01f4\u01f4\u014d\u03e8\u01f4\u014d\u03b0\u0000\u022c\u0000\u0000\u014d\u014d\u022c\u022c\u015e\u01f4\u0379\u014d\u03d4\u0185\u014d\u029b\u0000\u0185\u022c\u0000\u0185\u01f4\u01f4\u01f4\u01f4\u0113\u01f4\u014d\u02f8\u0114\u01f4\u02a3\u0000\u02f8\u014d\u0190\u02a3\u012c\u012c\u014d\u01f4\u020b\u00fa\u014d\u012c\u0136\u01f4\u02ee\u02ee\u02ee\u01f4\u0263\u0263\u0263\u0263\u0263\u0263\u0379\u029b\u0263\u0263\u0263\u0263\u014d\u014d\u014d\u014d\u02d2\u029b\u02d2\u02d2\u02d2\u02d2\u02d2\u02a3\u02d2\u02d2\u02d2\u02d2\u02d2\u022c\u0263\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u029b\u01bc\u01bc\u01bc\u01bc\u01bc\u0116\u0116\u0116\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u02a3\u01f4\u01f4\u01f4\u01f4\u01f4\u01bc\u01f4\u01bc';
533
464
  /**
534
465
  * `Times bold italic` widths table.
535
466
  * @private
536
467
  */
537
- PdfStandardFontMetricsFactory.timesRomanBoldItalicWidths = [
538
- 250, 389, 555, 500, 500, 833, 778, 278, 333, 333, 500, 570, 250, 333,
539
- 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 333, 333, 570, 570,
540
- 570, 500, 832, 667, 667, 667, 722, 667, 667, 722, 778, 389, 500, 667, 611, 889,
541
- 722, 722, 611, 722, 667, 556, 611, 722, 667, 889, 667, 611, 611, 333, 278, 333,
542
- 570, 500, 333, 500, 500, 444, 500, 444, 333, 500, 556, 278, 278, 500, 278, 778,
543
- 556, 500, 500, 500, 389, 389, 278, 556, 444, 667, 500, 444, 389, 348, 220, 348,
544
- 570, 0, 500, 0, 333, 500, 500, 1000, 500, 500, 333, 1000, 556, 333, 944, 0,
545
- 611, 0, 0, 333, 333, 500, 500, 350, 500, 1000, 333, 1000, 389, 333, 722, 0,
546
- 389, 611, 0, 389, 500, 500, 500, 500, 220, 500, 333, 747, 266, 500, 606, 0,
547
- 747, 333, 400, 570, 300, 300, 333, 576, 500, 250, 333, 300, 300, 500, 750, 750,
548
- 750, 500, 667, 667, 667, 667, 667, 667, 944, 667, 667, 667, 667, 667, 389, 389,
549
- 389, 389, 722, 722, 722, 722, 722, 722, 722, 570, 722, 722, 722, 722, 722, 611,
550
- 611, 500, 500, 500, 500, 500, 500, 500, 722, 444, 444, 444, 444, 444, 278, 278,
551
- 278, 278, 500, 556, 500, 500, 500, 500, 500, 570, 500, 556, 556, 556, 556, 444,
552
- 500, 444
553
- ];
468
+ PdfStandardFontMetricsFactory.timesRomanBoldItalicWidths = '\u00fa\u0185\u022b\u01f4\u01f4\u0341\u030a\u0116\u014d\u014d\u01f4\u023a\u00fa\u014d\u00fa\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u014d\u014d\u023a\u023a\u023a\u01f4\u0340\u029b\u029b\u029b\u02d2\u029b\u029b\u02d2\u030a\u0185\u01f4\u029b\u0263\u0379\u02d2\u02d2\u0263\u02d2\u029b\u022c\u0263\u02d2\u029b\u0379\u029b\u0263\u0263\u014d\u0116\u014d\u023a\u01f4\u014d\u01f4\u01f4\u01bc\u01f4\u01bc\u014d\u01f4\u022c\u0116\u0116\u01f4\u0116\u030a\u022c\u01f4\u01f4\u01f4\u0185\u0185\u0116\u022c\u01bc\u029b\u01f4\u01bc\u0185\u015c\u00dc\u015c\u023a\u0000\u01f4\u0000\u014d\u01f4\u01f4\u03e8\u01f4\u01f4\u014d\u03e8\u022c\u014d\u03b0\u0000\u0263\u0000\u0000\u014d\u014d\u01f4\u01f4\u015e\u01f4\u03e8\u014d\u03e8\u0185\u014d\u02d2\u0000\u0185\u0263\u0000\u0185\u01f4\u01f4\u01f4\u01f4\u00dc\u01f4\u014d\u02eb\u010a\u01f4\u025e\u0000\u02eb\u014d\u0190\u023a\u012c\u012c\u014d\u0240\u01f4\u00fa\u014d\u012c\u012c\u01f4\u02ee\u02ee\u02ee\u01f4\u029b\u029b\u029b\u029b\u029b\u029b\u03b0\u029b\u029b\u029b\u029b\u029b\u0185\u0185\u0185\u0185\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u023a\u02d2\u02d2\u02d2\u02d2\u02d2\u0263\u0263\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u02d2\u01bc\u01bc\u01bc\u01bc\u01bc\u0116\u0116\u0116\u0116\u01f4\u022c\u01f4\u01f4\u01f4\u01f4\u01f4\u023a\u01f4\u022c\u022c\u022c\u022c\u01bc\u01f4\u01bc';
554
469
  /**
555
470
  * `Symbol` widths table.
556
471
  * @private
557
472
  */
558
- PdfStandardFontMetricsFactory.symbolWidth = [
559
- 250, 333, 713, 500, 549, 833, 778, 439, 333, 333, 500, 549, 250, 549,
560
- 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 278, 278,
561
- 549, 549, 549, 444, 549, 722, 667, 722, 612, 611, 763, 603, 722, 333,
562
- 631, 722, 686, 889, 722, 722, 768, 741, 556, 592, 611, 690, 439, 768,
563
- 645, 795, 611, 333, 863, 333, 658, 500, 500, 631, 549, 549, 494, 439,
564
- 521, 411, 603, 329, 603, 549, 549, 576, 521, 549, 549, 521, 549, 603,
565
- 439, 576, 713, 686, 493, 686, 494, 480, 200, 480, 549, 750, 620, 247,
566
- 549, 167, 713, 500, 753, 753, 753, 753, 1042, 987, 603, 987, 603, 400,
567
- 549, 411, 549, 549, 713, 494, 460, 549, 549, 549, 549, 1000, 603, 1000,
568
- 658, 823, 686, 795, 987, 768, 768, 823, 768, 768, 713, 713, 713, 713,
569
- 713, 713, 713, 768, 713, 790, 790, 890, 823, 549, 250, 713, 603, 603,
570
- 1042, 987, 603, 987, 603, 494, 329, 790, 790, 786, 713, 384, 384, 384,
571
- 384, 384, 384, 494, 494, 494, 494, 329, 274, 686, 686, 686, 384, 384,
572
- 384, 384, 384, 384, 494, 494, 494, -1
573
- ];
473
+ PdfStandardFontMetricsFactory.symbolWidth = '\u00fb\u014e\u02ca\u01f5\u0226\u0342\u030b\u01b8\u014e\u014e\u01f5\u0226\u00fb\u0226\u00fb\u0117\u01f5\u01f5\u01f5\u01f5\u01f5\u01f5\u01f5\u01f5\u01f5\u01f5\u0117\u0117\u0226\u0226\u0226\u01bd\u0226\u02d3\u029c\u02d3\u0265\u0264\u02fc\u025c\u02d3\u014e\u0278\u02d3\u02af\u037a\u02d3\u02d3\u0301\u02e6\u022d\u0251\u0264\u02b3\u01b8\u0301\u0286\u031c\u0264\u014e\u0360\u014e\u0293\u01f5\u01f5\u0278\u0226\u0226\u01ef\u01b8\u020a\u019c\u025c\u014a\u025c\u0226\u0226\u0241\u020a\u0226\u0226\u020a\u0226\u025c\u01b8\u0241\u02ca\u02af\u01ee\u02af\u01ef\u01e1\u00c9\u01e1\u0226\u02ef\u026d\u00f8\u0226\u00a8\u02ca\u01f5\u02f2\u02f2\u02f2\u02f2\u0413\u03dc\u025c\u03dc\u025c\u0191\u0226\u019c\u0226\u0226\u02ca\u01ef\u01cd\u0226\u0226\u0226\u0226\u03e9\u025c\u03e9\u0293\u0338\u02af\u031c\u03dc\u0301\u0301\u0338\u0301\u0301\u02ca\u02ca\u02ca\u02ca\u02ca\u02ca\u02ca\u0301\u02ca\u0317\u0317\u037b\u0338\u0226\u00fb\u02ca\u025c\u025c\u0413\u03dc\u025c\u03dc\u025c\u01ef\u014a\u0317\u0317\u0313\u02ca\u0181\u0181\u0181\u0181\u0181\u0181\u01ef\u01ef\u01ef\u01ef\u014a\u0113\u02af\u02af\u02af\u0181\u0181\u0181\u0181\u0181\u0181\u01ef\u01ef\u01ef\u0000';
574
474
  /**
575
475
  * `Zip dingbats` widths table.
576
476
  * @private
577
477
  */
578
- PdfStandardFontMetricsFactory.zapfDingbatsWidth = [
579
- 278, 974, 961, 974, 980, 719, 789, 790, 791, 690, 960, 939, 549, 855,
580
- 911, 933, 911, 945, 974, 755, 846, 762, 761, 571, 677, 763, 760, 759,
581
- 754, 494, 552, 537, 577, 692, 786, 788, 788, 790, 793, 794, 816, 823,
582
- 789, 841, 823, 833, 816, 831, 923, 744, 723, 749, 790, 792, 695, 776,
583
- 768, 792, 759, 707, 708, 682, 701, 826, 815, 789, 789, 707, 687, 696,
584
- 689, 786, 787, 713, 791, 785, 791, 873, 761, 762, 762, 759, 759, 892,
585
- 892, 788, 784, 438, 138, 277, 415, 392, 392, 668, 668, 390, 390, 317,
586
- 317, 276, 276, 509, 509, 410, 410, 234, 234, 334, 334, 732, 544, 544,
587
- 910, 667, 760, 760, 776, 595, 694, 626, 788, 788, 788, 788, 788, 788,
588
- 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
589
- 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
590
- 788, 788, 788, 788, 788, 788, 894, 838, 1016, 458, 748, 924, 748, 918,
591
- 927, 928, 928, 834, 873, 828, 924, 924, 917, 930, 931, 463, 883, 836,
592
- 836, 867, 867, 696, 696, 874, 874, 760, 946, 771, 865, 771, 888, 967,
593
- 888, 831, 873, 927, 970, 918
594
- ];
478
+ PdfStandardFontMetricsFactory.zapfDingbatsWidth = '\u0116\u03ce\u03c1\u03ce\u03d4\u02cf\u0315\u0316\u0317\u02b2\u03c0\u03ab\u0225\u0357\u038f\u03a5\u038f\u03b1\u03ce\u02f3\u034e\u02fa\u02f9\u023b\u02a5\u02fb\u02f8\u02f7\u02f2\u01ee\u0228\u0219\u0241\u02b4\u0312\u0314\u0314\u0316\u0319\u031a\u0330\u0337\u0315\u0349\u0337\u0341\u0330\u033f\u039b\u02e8\u02d3\u02ed\u0316\u0318\u02b7\u0308\u0300\u0318\u02f7\u02c3\u02c4\u02aa\u02bd\u033a\u032f\u0315\u0315\u02c3\u02af\u02b8\u02b1\u0312\u0313\u02c9\u0317\u0311\u0317\u0369\u02f9\u02fa\u02fa\u02f7\u02f7\u037c\u037c\u0314\u0310\u01b6\u008a\u0115\u019f\u0188\u0188\u029c\u029c\u0186\u0186\u013d\u013d\u0114\u0114\u01fd\u01fd\u019a\u019a\u00ea\u00ea\u014e\u014e\u02dc\u0220\u0220\u038e\u029b\u02f8\u02f8\u0308\u0253\u02b6\u0272\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u037e\u0346\u03f8\u01ca\u02ec\u039c\u02ec\u0396\u039f\u03a0\u03a0\u0342\u0369\u033c\u039c\u039c\u0395\u03a2\u03a3\u01cf\u0373\u0344\u0344\u0363\u0363\u02b8\u02b8\u036a\u036a\u02f8\u03b2\u0303\u0361\u0303\u0378\u03c7\u0378\u033f\u0369\u039f\u03ca\u0396';
595
479
  return PdfStandardFontMetricsFactory;
596
480
  }());
597
481
  export { PdfStandardFontMetricsFactory };
@@ -34,11 +34,6 @@ export declare class PdfStandardFont extends PdfFont {
34
34
  * @private
35
35
  */
36
36
  private pdfFontFamily;
37
- /**
38
- * Gets `ascent` of the font.
39
- * @private
40
- */
41
- private dictionaryProperties;
42
37
  /**
43
38
  * Gets `encodings` for internal class use.
44
39
  * @hidden
@@ -16,7 +16,6 @@ import { PdfFont } from './pdf-font';
16
16
  import { PdfDocument } from './../../document/pdf-document';
17
17
  import { PdfStandardFontMetricsFactory } from './pdf-standard-font-metrics-factory';
18
18
  import { PdfDictionary } from './../../primitives/pdf-dictionary';
19
- import { DictionaryProperties } from './../../input-output/pdf-dictionary-properties';
20
19
  import { PdfName } from './../../primitives/pdf-name';
21
20
  /**
22
21
  * Represents one of the 14 standard fonts.
@@ -44,11 +43,6 @@ var PdfStandardFont = /** @class */ (function (_super) {
44
43
  __extends(PdfStandardFont, _super);
45
44
  function PdfStandardFont(fontFamilyPrototype, size, style) {
46
45
  var _this = _super.call(this, size, (typeof style === 'undefined') ? ((fontFamilyPrototype instanceof PdfStandardFont) ? fontFamilyPrototype.style : PdfFontStyle.Regular) : style) || this;
47
- /**
48
- * Gets `ascent` of the font.
49
- * @private
50
- */
51
- _this.dictionaryProperties = new DictionaryProperties();
52
46
  /**
53
47
  * Gets `encodings` for internal class use.
54
48
  * @hidden
@@ -153,12 +147,12 @@ var PdfStandardFont = /** @class */ (function (_super) {
153
147
  */
154
148
  PdfStandardFont.prototype.createInternals = function () {
155
149
  var dictionary = new PdfDictionary();
156
- dictionary.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.font));
157
- dictionary.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.type1));
158
- dictionary.items.setValue(this.dictionaryProperties.baseFont, new PdfName(this.metrics.postScriptName));
150
+ dictionary.items.setValue('Type', new PdfName('Font'));
151
+ dictionary.items.setValue('Subtype', new PdfName('Type1'));
152
+ dictionary.items.setValue('BaseFont', new PdfName(this.metrics.postScriptName));
159
153
  if (this.fontFamily !== PdfFontFamily.Symbol && this.fontFamily !== PdfFontFamily.ZapfDingbats) {
160
154
  var encoding = this.encodings[FontEncoding.WinAnsiEncoding];
161
- dictionary.items.setValue(this.dictionaryProperties.encoding, new PdfName(encoding));
155
+ dictionary.items.setValue('Encoding', new PdfName(encoding));
162
156
  }
163
157
  return dictionary;
164
158
  };