1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #19618 from calixteman/non_editable_stamp

[Editor] In edit mode, a non-editable stamp must be visible after the page is rendered
This commit is contained in:
calixteman 2025-03-06 16:23:55 +01:00 committed by GitHub
commit 1abb7be11a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 74 additions and 12 deletions

View file

@ -4920,7 +4920,7 @@ class StampAnnotation extends MarkupAnnotation {
mustBeViewedWhenEditing(isEditing, modifiedIds = null) {
if (isEditing) {
if (!this.data.isEditable) {
return false;
return true;
}
// When we're editing, we want to ensure that the stamp annotation is
// drawn on a canvas in order to use it in the annotation editor layer.