@syncfusion/ej2-pdf-export 34.2.8 → 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 +2 -2
  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
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 34.2.8
3
+ * version : 35.1.43
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-pdf-export",
3
- "version": "34.2.8",
3
+ "version": "35.1.43",
4
4
  "description": "Syncfusion TypeScript Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -9,7 +9,7 @@
9
9
  "es2015": "./dist/es6/ej2-pdf-export.es5.js",
10
10
  "devDependencies": {},
11
11
  "dependencies": {
12
- "@syncfusion/ej2-compression": "~34.2.8"
12
+ "@syncfusion/ej2-compression": "~35.1.37"
13
13
  },
14
14
  "typings": "index.d.ts",
15
15
  "sideEffects": false,
@@ -1,7 +1,6 @@
1
1
  import { IPdfWrapper } from './../../interfaces/i-pdf-wrapper';
2
2
  import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives';
3
3
  import { PdfDictionary } from './../primitives/pdf-dictionary';
4
- import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
5
4
  /**
6
5
  * `PdfAction` class represents base class for all action types.
7
6
  * @private
@@ -17,11 +16,6 @@ export declare abstract class PdfAction implements IPdfWrapper {
17
16
  * @private
18
17
  */
19
18
  private pdfDictionary;
20
- /**
21
- * Specifies the Internal variable to store `dictionary properties`.
22
- * @private
23
- */
24
- protected dictionaryProperties: DictionaryProperties;
25
19
  /**
26
20
  * Initialize instance for `Action` class.
27
21
  * @private
@@ -1,7 +1,6 @@
1
1
  import { PdfDictionary } from './../primitives/pdf-dictionary';
2
2
  import { PdfReferenceHolder } from './../primitives/pdf-reference';
3
3
  import { PdfName } from './../primitives/pdf-name';
4
- import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
5
4
  /**
6
5
  * `PdfAction` class represents base class for all action types.
7
6
  * @private
@@ -18,11 +17,6 @@ var PdfAction = /** @class */ (function () {
18
17
  * @private
19
18
  */
20
19
  this.action = null;
21
- /**
22
- * Specifies the Internal variable to store `dictionary properties`.
23
- * @private
24
- */
25
- this.dictionaryProperties = new DictionaryProperties();
26
20
  // super(); -> Object()
27
21
  this.initialize();
28
22
  }
@@ -38,7 +32,7 @@ var PdfAction = /** @class */ (function () {
38
32
  set: function (value) {
39
33
  // if (this.action !== value) {
40
34
  this.action = value;
41
- this.dictionary.items.setValue(this.dictionaryProperties.next, new PdfReferenceHolder(this.action));
35
+ this.dictionary.items.setValue('Next', new PdfReferenceHolder(this.action));
42
36
  // }
43
37
  },
44
38
  enumerable: true,
@@ -64,7 +58,7 @@ var PdfAction = /** @class */ (function () {
64
58
  * @private
65
59
  */
66
60
  PdfAction.prototype.initialize = function () {
67
- this.dictionary.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.action));
61
+ this.dictionary.items.setValue('Type', new PdfName('Action'));
68
62
  };
69
63
  Object.defineProperty(PdfAction.prototype, "element", {
70
64
  // IPdfWrapper Members
@@ -42,7 +42,7 @@ var PdfUriAction = /** @class */ (function (_super) {
42
42
  },
43
43
  set: function (value) {
44
44
  this.uniformResourceIdentifier = value;
45
- this.dictionary.items.setValue(this.dictionaryProperties.uri, new PdfString(this.uniformResourceIdentifier));
45
+ this.dictionary.items.setValue('URI', new PdfString(this.uniformResourceIdentifier));
46
46
  },
47
47
  enumerable: true,
48
48
  configurable: true
@@ -54,7 +54,7 @@ var PdfUriAction = /** @class */ (function (_super) {
54
54
  */
55
55
  PdfUriAction.prototype.initialize = function () {
56
56
  _super.prototype.initialize.call(this);
57
- this.dictionary.items.setValue(this.dictionaryProperties.s, new PdfName(this.dictionaryProperties.uri));
57
+ this.dictionary.items.setValue('S', new PdfName('URI'));
58
58
  };
59
59
  return PdfUriAction;
60
60
  }(PdfAction));
@@ -3,7 +3,6 @@ import { PdfPage } from './../pages/pdf-page';
3
3
  import { PdfArray } from './../primitives/pdf-array';
4
4
  import { PdfAnnotation } from './../annotations/annotation';
5
5
  import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives';
6
- import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
7
6
  /**
8
7
  * `PdfAnnotationCollection` class represents the collection of 'PdfAnnotation' objects.
9
8
  * @private
@@ -19,11 +18,6 @@ export declare class PdfAnnotationCollection implements IPdfWrapper {
19
18
  * @private
20
19
  */
21
20
  private missingAnnotationException;
22
- /**
23
- * Specifies the Internal variable to store fields of `PdfDictionaryProperties`.
24
- * @private
25
- */
26
- protected dictionaryProperties: DictionaryProperties;
27
21
  /**
28
22
  * Parent `page` of the collection.
29
23
  * @private
@@ -1,6 +1,5 @@
1
1
  import { PdfArray } from './../primitives/pdf-array';
2
2
  import { PdfReferenceHolder } from './../primitives/pdf-reference';
3
- import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
4
3
  import { SizeF, RectangleF, PointF } from './../drawing/pdf-drawing';
5
4
  import { PdfStringLayouter } from './../graphics/fonts/string-layouter';
6
5
  import { PdfColorSpace } from './../graphics/enum';
@@ -21,11 +20,6 @@ var PdfAnnotationCollection = /** @class */ (function () {
21
20
  * @private
22
21
  */
23
22
  this.missingAnnotationException = 'Annotation is not contained in collection.';
24
- /**
25
- * Specifies the Internal variable to store fields of `PdfDictionaryProperties`.
26
- * @private
27
- */
28
- this.dictionaryProperties = new DictionaryProperties();
29
23
  /**
30
24
  * Array of the `annotations`.
31
25
  * @private
@@ -132,7 +126,7 @@ var PdfAnnotationCollection = /** @class */ (function () {
132
126
  PdfAnnotationCollection.prototype.setColor = function (annotation) {
133
127
  var cs = PdfColorSpace.Rgb;
134
128
  var colours = annotation.color.toArray(cs);
135
- annotation.dictionary.items.setValue(this.dictionaryProperties.c, colours);
129
+ annotation.dictionary.items.setValue('C', colours);
136
130
  };
137
131
  Object.defineProperty(PdfAnnotationCollection.prototype, "element", {
138
132
  // IPdfWrapper Members
@@ -5,7 +5,6 @@ import { RectangleF } from './../drawing/pdf-drawing';
5
5
  import { PdfPage } from './../pages/pdf-page';
6
6
  import { PdfPageBase } from './../pages/pdf-page-base';
7
7
  import { PdfDictionary } from './../primitives/pdf-dictionary';
8
- import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
9
8
  import { PdfBrush } from './../graphics/brushes/pdf-brush';
10
9
  import { PdfFont } from './../graphics/fonts/pdf-font';
11
10
  import { PdfStringFormat } from './../graphics/fonts/pdf-string-format';
@@ -14,11 +13,6 @@ import { PdfStringFormat } from './../graphics/fonts/pdf-string-format';
14
13
  * @private
15
14
  */
16
15
  export declare abstract class PdfAnnotation implements IPdfWrapper {
17
- /**
18
- * Specifies the Internal variable to store fields of `PdfDictionaryProperties`.
19
- * @private
20
- */
21
- protected dictionaryProperties: DictionaryProperties;
22
16
  /**
23
17
  * `Color` of the annotation
24
18
  * @private
@@ -5,7 +5,6 @@ import { PdfArray } from './../primitives/pdf-array';
5
5
  import { PdfNumber } from './../primitives/pdf-number';
6
6
  import { PdfReferenceHolder } from './../primitives/pdf-reference';
7
7
  import { PdfString } from './../primitives/pdf-string';
8
- import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
9
8
  import { PdfName } from './../primitives/pdf-name';
10
9
  import { PdfSolidBrush } from './../graphics/brushes/pdf-solid-brush';
11
10
  import { PdfStandardFont } from './../graphics/fonts/pdf-standard-font';
@@ -19,11 +18,6 @@ import { PdfTextAlignment } from './../graphics/enum';
19
18
  var PdfAnnotation = /** @class */ (function () {
20
19
  function PdfAnnotation(arg1) {
21
20
  // Fields
22
- /**
23
- * Specifies the Internal variable to store fields of `PdfDictionaryProperties`.
24
- * @private
25
- */
26
- this.dictionaryProperties = new DictionaryProperties();
27
21
  /**
28
22
  * `Color` of the annotation
29
23
  * @private
@@ -192,7 +186,7 @@ var PdfAnnotation = /** @class */ (function () {
192
186
  },
193
187
  set: function (value) {
194
188
  this.content = value;
195
- this.dictionary.items.setValue(this.dictionaryProperties.contents, new PdfString(this.content));
189
+ this.dictionary.items.setValue('Contents', new PdfString(this.content));
196
190
  },
197
191
  enumerable: true,
198
192
  configurable: true
@@ -218,7 +212,7 @@ var PdfAnnotation = /** @class */ (function () {
218
212
  */
219
213
  PdfAnnotation.prototype.initialize = function () {
220
214
  this.pdfDictionary.annotationBeginSave = new SaveAnnotationEventHandler(this);
221
- this.pdfDictionary.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.annot));
215
+ this.pdfDictionary.items.setValue('Type', new PdfName('Annot'));
222
216
  };
223
217
  /**
224
218
  * Sets related `page` of the annotation.
@@ -226,7 +220,7 @@ var PdfAnnotation = /** @class */ (function () {
226
220
  */
227
221
  PdfAnnotation.prototype.setPage = function (page) {
228
222
  this.pdfPage = page;
229
- this.pdfDictionary.items.setValue(this.dictionaryProperties.p, new PdfReferenceHolder(this.pdfPage));
223
+ this.pdfDictionary.items.setValue('P', new PdfReferenceHolder(this.pdfPage));
230
224
  };
231
225
  /**
232
226
  * Handles the `BeginSave` event of the Dictionary.
@@ -249,8 +243,8 @@ var PdfAnnotation = /** @class */ (function () {
249
243
  nativeRectangle.width = tempLoacation.x + nativeRectangle.width;
250
244
  nativeRectangle.y = (tempLoacation.y - this.page.document.pageSettings.margins.top);
251
245
  nativeRectangle.height = nativeRectangle.y - initialHeight;
252
- this.pdfDictionary.items.setValue(this.dictionaryProperties.rect, PdfArray.fromRectangle(nativeRectangle));
253
- this.dictionary.items.setValue(this.dictionaryProperties.ca, new PdfNumber(this.darkness));
246
+ this.pdfDictionary.items.setValue('Rect', PdfArray.fromRectangle(nativeRectangle));
247
+ this.dictionary.items.setValue('ca', new PdfNumber(this.darkness));
254
248
  };
255
249
  Object.defineProperty(PdfAnnotation.prototype, "element", {
256
250
  /* tslint:enable */
@@ -106,7 +106,7 @@ var PdfDocumentLinkAnnotation = /** @class */ (function (_super) {
106
106
  PdfDocumentLinkAnnotation.prototype.save = function () {
107
107
  _super.prototype.save.call(this);
108
108
  if (this.pdfDestination != null) {
109
- this.dictionary.items.setValue(this.dictionaryProperties.dest, this.pdfDestination.element);
109
+ this.dictionary.items.setValue('Dest', this.pdfDestination.element);
110
110
  }
111
111
  };
112
112
  /**
@@ -29,7 +29,7 @@ var PdfLinkAnnotation = /** @class */ (function (_super) {
29
29
  */
30
30
  PdfLinkAnnotation.prototype.initialize = function () {
31
31
  _super.prototype.initialize.call(this);
32
- this.dictionary.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.link));
32
+ this.dictionary.items.setValue('Subtype', new PdfName('Link'));
33
33
  };
34
34
  return PdfLinkAnnotation;
35
35
  }(PdfAnnotation));
@@ -80,9 +80,9 @@ var PdfUriAnnotation = /** @class */ (function (_super) {
80
80
  */
81
81
  PdfUriAnnotation.prototype.initialize = function () {
82
82
  _super.prototype.initialize.call(this);
83
- this.dictionary.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.link));
83
+ this.dictionary.items.setValue('Subtype', new PdfName('Link'));
84
84
  var tempPrimitive = this.uriAction.element;
85
- this.dictionary.items.setValue(this.dictionaryProperties.a, this.uriAction.element);
85
+ this.dictionary.items.setValue('A', this.uriAction.element);
86
86
  };
87
87
  return PdfUriAnnotation;
88
88
  }(PdfActionLinkAnnotation));
@@ -1,4 +1,3 @@
1
- import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
2
1
  import { PdfCatalog } from './pdf-catalog';
3
2
  import { PdfDictionary } from './../primitives/pdf-dictionary';
4
3
  import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives';
@@ -22,7 +21,6 @@ export declare class PdfViewerPreferences implements IPdfWrapper {
22
21
  * ```
23
22
  */
24
23
  constructor(catalog: PdfCatalog);
25
- _dictionaryProperties: DictionaryProperties;
26
24
  _catalog: PdfCatalog;
27
25
  _centerWindow: boolean;
28
26
  _fitWindow: boolean;
@@ -1,4 +1,3 @@
1
- import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
2
1
  import { PdfDictionary } from './../primitives/pdf-dictionary';
3
2
  import { PdfBoolean } from './../primitives/pdf-boolean';
4
3
  import { PdfName } from './../primitives/pdf-name';
@@ -21,7 +20,6 @@ var PdfViewerPreferences = /** @class */ (function () {
21
20
  * ```
22
21
  */
23
22
  function PdfViewerPreferences(catalog) {
24
- this._dictionaryProperties = new DictionaryProperties();
25
23
  this._centerWindow = false;
26
24
  this._fitWindow = false;
27
25
  this._displayTitle = false;
@@ -67,7 +65,7 @@ var PdfViewerPreferences = /** @class */ (function () {
67
65
  */
68
66
  set: function (value) {
69
67
  this._centerWindow = value;
70
- this._dictionary.items.setValue(this._dictionaryProperties.centerWindow, new PdfBoolean(this._centerWindow));
68
+ this._dictionary.items.setValue('CenterWindow', new PdfBoolean(this._centerWindow));
71
69
  },
72
70
  enumerable: true,
73
71
  configurable: true
@@ -108,7 +106,7 @@ var PdfViewerPreferences = /** @class */ (function () {
108
106
  */
109
107
  set: function (value) {
110
108
  this._displayTitle = value;
111
- this._dictionary.items.setValue(this._dictionaryProperties.displayTitle, new PdfBoolean(this._displayTitle));
109
+ this._dictionary.items.setValue('DisplayTitle', new PdfBoolean(this._displayTitle));
112
110
  },
113
111
  enumerable: true,
114
112
  configurable: true
@@ -147,7 +145,7 @@ var PdfViewerPreferences = /** @class */ (function () {
147
145
  */
148
146
  set: function (value) {
149
147
  this._fitWindow = value;
150
- this._dictionary.items.setValue(this._dictionaryProperties.fitWindow, new PdfBoolean(this._fitWindow));
148
+ this._dictionary.items.setValue('FitWindow', new PdfBoolean(this._fitWindow));
151
149
  },
152
150
  enumerable: true,
153
151
  configurable: true
@@ -186,7 +184,7 @@ var PdfViewerPreferences = /** @class */ (function () {
186
184
  */
187
185
  set: function (value) {
188
186
  this._hideMenuBar = value;
189
- this._dictionary.items.setValue(this._dictionaryProperties.hideMenuBar, new PdfBoolean(this._hideMenuBar));
187
+ this._dictionary.items.setValue('HideMenubar', new PdfBoolean(this._hideMenuBar));
190
188
  },
191
189
  enumerable: true,
192
190
  configurable: true
@@ -225,7 +223,7 @@ var PdfViewerPreferences = /** @class */ (function () {
225
223
  */
226
224
  set: function (value) {
227
225
  this._hideToolBar = value;
228
- this._dictionary.items.setValue(this._dictionaryProperties.hideToolBar, new PdfBoolean(this._hideToolBar));
226
+ this._dictionary.items.setValue('HideToolbar', new PdfBoolean(this._hideToolBar));
229
227
  },
230
228
  enumerable: true,
231
229
  configurable: true
@@ -264,7 +262,7 @@ var PdfViewerPreferences = /** @class */ (function () {
264
262
  */
265
263
  set: function (value) {
266
264
  this._hideWindowUI = value;
267
- this._dictionary.items.setValue(this._dictionaryProperties.hideWindowUI, new PdfBoolean(this._hideWindowUI));
265
+ this._dictionary.items.setValue('HideWindowUI', new PdfBoolean(this._hideWindowUI));
268
266
  },
269
267
  enumerable: true,
270
268
  configurable: true
@@ -301,7 +299,7 @@ var PdfViewerPreferences = /** @class */ (function () {
301
299
  */
302
300
  set: function (value) {
303
301
  this._pageMode = value;
304
- this._catalog.items.setValue(this._dictionaryProperties.pageMode, new PdfName(this._mapPageMode(this._pageMode)));
302
+ this._catalog.items.setValue('PageMode', new PdfName(this._mapPageMode(this._pageMode)));
305
303
  },
306
304
  enumerable: true,
307
305
  configurable: true
@@ -338,7 +336,7 @@ var PdfViewerPreferences = /** @class */ (function () {
338
336
  */
339
337
  set: function (value) {
340
338
  this._duplex = value;
341
- this._catalog.items.setValue(this._dictionaryProperties.duplex, new PdfName(this._mapDuplexMode(this._duplex)));
339
+ this._catalog.items.setValue('Duplex', new PdfName(this._mapDuplexMode(this._duplex)));
342
340
  },
343
341
  enumerable: true,
344
342
  configurable: true
@@ -375,7 +373,7 @@ var PdfViewerPreferences = /** @class */ (function () {
375
373
  */
376
374
  set: function (value) {
377
375
  this._pageLayout = value;
378
- this._catalog.items.setValue(this._dictionaryProperties.pageLayout, new PdfName(this._mapPageLayout(this._pageLayout)));
376
+ this._catalog.items.setValue('PageLayout', new PdfName(this._mapPageLayout(this._pageLayout)));
379
377
  },
380
378
  enumerable: true,
381
379
  configurable: true
@@ -414,11 +412,11 @@ var PdfViewerPreferences = /** @class */ (function () {
414
412
  */
415
413
  set: function (value) {
416
414
  this._pageScaling = value;
417
- if (this._pageScaling === PageScalingMode.AppDefault && this._dictionary.items.containsKey(this._dictionaryProperties.printScaling)) {
418
- this._dictionary.items.remove(this._dictionaryProperties.printScaling);
415
+ if (this._pageScaling === PageScalingMode.AppDefault && this._dictionary.items.containsKey('PrintScaling')) {
416
+ this._dictionary.items.remove('PrintScaling');
419
417
  }
420
418
  else if (this._pageScaling === PageScalingMode.None) {
421
- this._dictionary.items.setValue(this._dictionaryProperties.printScaling, new PdfName('None'));
419
+ this._dictionary.items.setValue('PrintScaling', new PdfName('None'));
422
420
  }
423
421
  },
424
422
  enumerable: true,
@@ -6,17 +6,11 @@ import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives';
6
6
  import { PointF, RectangleF } from './../drawing/pdf-drawing';
7
7
  import { PdfPageBase } from './../pages/pdf-page-base';
8
8
  import { PdfDestinationMode } from './../general/enum';
9
- import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
10
9
  /**
11
10
  * `PdfDestination` class represents an anchor in the document
12
11
  * where bookmarks or annotations can direct when clicked.
13
12
  */
14
13
  export declare class PdfDestination implements IPdfWrapper {
15
- /**
16
- * Internal variable for accessing fields from `DictionryProperties` class.
17
- * @private
18
- */
19
- protected dictionaryProperties: DictionaryProperties;
20
14
  /**
21
15
  * Type of the `destination`.
22
16
  * @private
@@ -5,7 +5,6 @@ import { PdfDestinationMode } from './../general/enum';
5
5
  import { PdfReferenceHolder } from './../primitives/pdf-reference';
6
6
  import { PdfName } from './../primitives/pdf-name';
7
7
  import { PdfNumber } from './../primitives/pdf-number';
8
- import { DictionaryProperties } from './../input-output/pdf-dictionary-properties';
9
8
  /**
10
9
  * `PdfDestination` class represents an anchor in the document
11
10
  * where bookmarks or annotations can direct when clicked.
@@ -13,11 +12,6 @@ import { DictionaryProperties } from './../input-output/pdf-dictionary-propertie
13
12
  var PdfDestination = /** @class */ (function () {
14
13
  function PdfDestination(arg1, arg2) {
15
14
  // Fields
16
- /**
17
- * Internal variable for accessing fields from `DictionryProperties` class.
18
- * @private
19
- */
20
- this.dictionaryProperties = new DictionaryProperties();
21
15
  /**
22
16
  * Type of the `destination`.
23
17
  * @private
@@ -137,13 +131,13 @@ var PdfDestination = /** @class */ (function () {
137
131
  var simplePage = this.pdfPage;
138
132
  var point = new PointF();
139
133
  point = this.pointToNativePdf(simplePage, this.destinationLocation);
140
- this.array.add(new PdfName(this.dictionaryProperties.xyz));
134
+ this.array.add(new PdfName('XYZ'));
141
135
  this.array.add(new PdfNumber(point.x));
142
136
  this.array.add(new PdfNumber(point.y));
143
137
  this.array.add(new PdfNumber(this.zoomFactor));
144
138
  break;
145
139
  case PdfDestinationMode.FitToPage:
146
- this.array.add(new PdfName(this.dictionaryProperties.fit));
140
+ this.array.add(new PdfName('Fit'));
147
141
  break;
148
142
  }
149
143
  };
@@ -9,6 +9,12 @@ export declare class PdfBrushes {
9
9
  * Local variable to store the brushes.
10
10
  */
11
11
  private static sBrushes;
12
+ /**
13
+ * Packed known color data (in KnownColor enum order, starting at Transparent).
14
+ * Each color occupies two chars: the first holds the RGB value, the second the alpha flag
15
+ * (0 - transparent, 1 - opaque).
16
+ */
17
+ private static readonly knownColorData;
12
18
  /**
13
19
  * Gets the AliceBlue brush.
14
20
  * @public
@@ -100,12 +106,12 @@ export declare class PdfBrushes {
100
106
  */
101
107
  static readonly CornflowerBlue: PdfBrush;
102
108
  /**
103
- * Gets the Corn silk default brush.
109
+ * Gets the Cornsilk default brush.
104
110
  * @public
105
111
  */
106
112
  static readonly Cornsilk: PdfBrush;
107
113
  /**
108
- * Gets the Crimson default brush.
114
+ * Gets the Crimson default brush.
109
115
  * @public
110
116
  */
111
117
  static readonly Crimson: PdfBrush;
@@ -240,7 +246,7 @@ export declare class PdfBrushes {
240
246
  */
241
247
  static readonly Fuchsia: PdfBrush;
242
248
  /**
243
- * Gets the Gainsborough default brush.
249
+ * Gets the Gainsboro default brush.
244
250
  * @public
245
251
  */
246
252
  static readonly Gainsboro: PdfBrush;
@@ -512,7 +518,7 @@ export declare class PdfBrushes {
512
518
  /**
513
519
  * Gets the OrangeRed default brush.
514
520
  * @public
515
- */
521
+ */
516
522
  static readonly OrangeRed: PdfBrush;
517
523
  /**
518
524
  * Gets the Orchid default brush.