Skip to content

Commit 2354ae4

Browse files
committed
[Editor] Don't save the image when updating a stamp annotation
It adds some useless bytes in the file.
1 parent c386d9b commit 2354ae4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/display/editor/stamp.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,10 @@ class StampEditor extends AnnotationEditor {
878878
serialized.accessibilityData.structParent =
879879
this._initialData.structParent ?? -1;
880880
}
881+
serialized.id = this.annotationElementId;
882+
delete serialized.bitmapId;
883+
return serialized;
881884
}
882-
serialized.id = this.annotationElementId;
883885

884886
if (context === null) {
885887
return serialized;

0 commit comments

Comments
 (0)