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

[Editor] In edit mode, a non-editable stamp must be visible after the page is rendered

This commit is contained in:
Calixte Denizet 2025-03-06 14:59:04 +01:00
parent dea35aed4a
commit f3454a738d
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.