@syncfusion/ej2-pdf 24.2.5 → 24.2.7

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.
@@ -46604,6 +46604,14 @@ var _JsonDocument = /** @__PURE__ @class */ (function (_super) {
46604
46604
  case 'ca':
46605
46605
  this._writeAttributeString(key.toLowerCase(), primitive);
46606
46606
  break;
46607
+ case 'CustomData':
46608
+ if (primitive && primitive.length > 2 && primitive.startsWith('{') && primitive.endsWith('}')) {
46609
+ this._table.set(key, primitive);
46610
+ }
46611
+ else {
46612
+ this._writeAttributeString(key, primitive);
46613
+ }
46614
+ break;
46607
46615
  default:
46608
46616
  this._writeAttributeString(key, primitive);
46609
46617
  break;
@@ -47257,7 +47265,7 @@ var _JsonDocument = /** @__PURE__ @class */ (function (_super) {
47257
47265
  }
47258
47266
  break;
47259
47267
  case 'customdata':
47260
- _this._addString(dictionary, 'CustomData', value);
47268
+ _this._addString(dictionary, 'CustomData', typeof value === 'string' ? value : JSON.stringify(value));
47261
47269
  break;
47262
47270
  case 'appearance':
47263
47271
  _this._addAppearanceData(dictionary, value);