@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.
- package/CHANGELOG.md +8 -0
- package/dist/ej2-pdf.umd.min.js +2 -2
- package/dist/ej2-pdf.umd.min.js.map +1 -1
- package/dist/es6/ej2-pdf.es2015.js +13 -0
- package/dist/es6/ej2-pdf.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf.es5.js +13 -0
- package/dist/es6/ej2-pdf.es5.js.map +1 -1
- package/dist/global/ej2-pdf.min.js +2 -2
- package/dist/global/ej2-pdf.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/pdf/core/annotations/annotation-collection.d.ts +1 -0
- package/src/pdf/core/annotations/annotation-collection.js +13 -0
package/dist/es6/ej2-pdf.es5.js
CHANGED
|
@@ -28502,6 +28502,7 @@ var PdfAnnotationCollection = /** @__PURE__ @class */ (function () {
|
|
|
28502
28502
|
}
|
|
28503
28503
|
if (this._parsedAnnotations.has(index)) {
|
|
28504
28504
|
this._parsedAnnotations.delete(index);
|
|
28505
|
+
this._reorderParsedAnnotations(index);
|
|
28505
28506
|
}
|
|
28506
28507
|
var crossReference = this._page._crossReference;
|
|
28507
28508
|
if (crossReference && crossReference._cacheMap.has(reference)) {
|
|
@@ -28509,6 +28510,18 @@ var PdfAnnotationCollection = /** @__PURE__ @class */ (function () {
|
|
|
28509
28510
|
}
|
|
28510
28511
|
}
|
|
28511
28512
|
};
|
|
28513
|
+
PdfAnnotationCollection.prototype._reorderParsedAnnotations = function (index) {
|
|
28514
|
+
var result = new Map();
|
|
28515
|
+
this._parsedAnnotations.forEach(function (value, key) {
|
|
28516
|
+
if (key > index) {
|
|
28517
|
+
result.set(key - 1, value);
|
|
28518
|
+
}
|
|
28519
|
+
else {
|
|
28520
|
+
result.set(key, value);
|
|
28521
|
+
}
|
|
28522
|
+
});
|
|
28523
|
+
this._parsedAnnotations = result;
|
|
28524
|
+
};
|
|
28512
28525
|
PdfAnnotationCollection.prototype._updateCustomAppearanceResource = function (annotation) {
|
|
28513
28526
|
if (annotation instanceof PdfRubberStampAnnotation && typeof annotation._appearance !== 'undefined') {
|
|
28514
28527
|
annotation._appearance.normal.graphics._processResources(annotation._crossReference);
|