mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Skip unknown fields when calculating a value in using AFSimple_Calculate
This commit is contained in:
parent
8bad06f158
commit
6916fabd51
2 changed files with 4 additions and 1 deletions
|
@ -414,6 +414,9 @@ class AForm {
|
|||
const values = [];
|
||||
for (const cField of cFields) {
|
||||
const field = this._document.getField(cField);
|
||||
if (!field) {
|
||||
continue;
|
||||
}
|
||||
const number = this.AFMakeNumber(field.value);
|
||||
if (number !== null) {
|
||||
values.push(number);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue