@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.
@@ -5941,13 +5941,12 @@ var PdfStringLayouter = /** @__PURE__ @class */ (function () {
5941
5941
  }
5942
5942
  }
5943
5943
  else {
5944
+ var format = this.format ? this.format : new PdfStringFormat();
5944
5945
  if (this.getLineWidth(word.toString()) > maxWidth) {
5945
- this.format.wordWrap = PdfWordWrapType.Character;
5946
+ format.wordWrap = PdfWordWrapType.Character;
5946
5947
  }
5947
5948
  else {
5948
- if (typeof this.format !== 'undefined' && this.format !== null) {
5949
- this.format.wordWrap = PdfWordWrapType.Word;
5950
- }
5949
+ format.wordWrap = PdfWordWrapType.Word;
5951
5950
  }
5952
5951
  if (this.getWrapType() !== PdfWordWrapType.Character || !readWord) {
5953
5952
  var ln = builder.toString();