@syncfusion/ej2-pdf 23.2.4 → 23.2.6

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.
@@ -27357,6 +27357,7 @@ class PdfAnnotationCollection {
27357
27357
  }
27358
27358
  if (this._parsedAnnotations.has(index)) {
27359
27359
  this._parsedAnnotations.delete(index);
27360
+ this._reorderParsedAnnotations(index);
27360
27361
  }
27361
27362
  const crossReference = this._page._crossReference;
27362
27363
  if (crossReference && crossReference._cacheMap.has(reference)) {
@@ -27364,6 +27365,18 @@ class PdfAnnotationCollection {
27364
27365
  }
27365
27366
  }
27366
27367
  }
27368
+ _reorderParsedAnnotations(index) {
27369
+ const result = new Map();
27370
+ this._parsedAnnotations.forEach((value, key) => {
27371
+ if (key > index) {
27372
+ result.set(key - 1, value);
27373
+ }
27374
+ else {
27375
+ result.set(key, value);
27376
+ }
27377
+ });
27378
+ this._parsedAnnotations = result;
27379
+ }
27367
27380
  _updateCustomAppearanceResource(annotation) {
27368
27381
  if (annotation instanceof PdfRubberStampAnnotation && typeof annotation._appearance !== 'undefined') {
27369
27382
  annotation._appearance.normal.graphics._processResources(annotation._crossReference);