@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.
@@ -44914,6 +44914,14 @@ class _JsonDocument extends _ExportHelper {
44914
44914
  case 'ca':
44915
44915
  this._writeAttributeString(key.toLowerCase(), primitive);
44916
44916
  break;
44917
+ case 'CustomData':
44918
+ if (primitive && primitive.length > 2 && primitive.startsWith('{') && primitive.endsWith('}')) {
44919
+ this._table.set(key, primitive);
44920
+ }
44921
+ else {
44922
+ this._writeAttributeString(key, primitive);
44923
+ }
44924
+ break;
44917
44925
  default:
44918
44926
  this._writeAttributeString(key, primitive);
44919
44927
  break;
@@ -45559,7 +45567,7 @@ class _JsonDocument extends _ExportHelper {
45559
45567
  }
45560
45568
  break;
45561
45569
  case 'customdata':
45562
- this._addString(dictionary, 'CustomData', value);
45570
+ this._addString(dictionary, 'CustomData', typeof value === 'string' ? value : JSON.stringify(value));
45563
45571
  break;
45564
45572
  case 'appearance':
45565
45573
  this._addAppearanceData(dictionary, value);