mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
XFA - Avoid an error when an exdata is a string (bug 1723114)
This commit is contained in:
parent
4ad5c5d52a
commit
7bb5331087
3 changed files with 12 additions and 0 deletions
|
@ -5905,6 +5905,9 @@ class Value extends XFAObject {
|
|||
|
||||
[$text]() {
|
||||
if (this.exData) {
|
||||
if (typeof this.exData[$content] === "string") {
|
||||
return this.exData[$content].trim();
|
||||
}
|
||||
return this.exData[$content][$text]().trim();
|
||||
}
|
||||
for (const name of Object.getOwnPropertyNames(this)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue