@syncfusion/ej2-pdf-export 34.2.6 → 35.1.37

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.
@@ -5478,13 +5478,12 @@ class PdfStringLayouter {
5478
5478
  }
5479
5479
  }
5480
5480
  else {
5481
+ let format = this.format ? this.format : new PdfStringFormat();
5481
5482
  if (this.getLineWidth(word.toString()) > maxWidth) {
5482
- this.format.wordWrap = PdfWordWrapType.Character;
5483
+ format.wordWrap = PdfWordWrapType.Character;
5483
5484
  }
5484
5485
  else {
5485
- if (typeof this.format !== 'undefined' && this.format !== null) {
5486
- this.format.wordWrap = PdfWordWrapType.Word;
5487
- }
5486
+ format.wordWrap = PdfWordWrapType.Word;
5488
5487
  }
5489
5488
  if (this.getWrapType() !== PdfWordWrapType.Character || !readWord) {
5490
5489
  let ln = builder.toString();