JS -- Send events to the sandbox from annotation layer

This commit is contained in:
Calixte Denizet 2020-11-18 14:59:57 +01:00
parent 640a08444c
commit 6502ae889d
11 changed files with 647 additions and 113 deletions

View file

@ -913,6 +913,7 @@ class Doc extends PDFObject {
const field = this.getField(fieldName);
if (field) {
field.value = field.defaultValue;
field.valueAsString = field.value;
mustCalculate = true;
}
}
@ -920,6 +921,7 @@ class Doc extends PDFObject {
mustCalculate = this._fields.size !== 0;
for (const field of this._fields.values()) {
field.value = field.defaultValue;
field.valueAsString = field.value;
}
}
if (mustCalculate) {