@syncfusion/ej2-pdf-export 34.2.2 → 34.2.8

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 34.2.2
3
+ * version : 34.2.8
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.2",
3
+ "version": "34.2.8",
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.2"
12
+ "@syncfusion/ej2-compression": "~34.2.8"
13
13
  },
14
14
  "typings": "index.d.ts",
15
15
  "sideEffects": false,
@@ -1,3 +1,4 @@
1
+ import { PdfStringFormat } from './pdf-string-format';
1
2
  import { SizeF, RectangleF, PointF } from './../../drawing/pdf-drawing';
2
3
  import { PdfWordWrapType } from './enum';
3
4
  import { StringTokenizer } from './string-tokenizer';
@@ -195,13 +196,12 @@ var PdfStringLayouter = /** @class */ (function () {
195
196
  }
196
197
  }
197
198
  else {
199
+ var format = this.format ? this.format : new PdfStringFormat();
198
200
  if (this.getLineWidth(word.toString()) > maxWidth) {
199
- this.format.wordWrap = PdfWordWrapType.Character;
201
+ format.wordWrap = PdfWordWrapType.Character;
200
202
  }
201
203
  else {
202
- if (typeof this.format !== 'undefined' && this.format !== null) {
203
- this.format.wordWrap = PdfWordWrapType.Word;
204
- }
204
+ format.wordWrap = PdfWordWrapType.Word;
205
205
  }
206
206
  if (this.getWrapType() !== PdfWordWrapType.Character || !readWord) {
207
207
  var ln = builder.toString();