mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
JS -- Send events to the sandbox from annotation layer
This commit is contained in:
parent
640a08444c
commit
6502ae889d
11 changed files with 647 additions and 113 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue