mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Write boolean value when saving a form (bug 1729971)
- it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1729971#c4.
This commit is contained in:
parent
8a79f13e5a
commit
474ab7c86d
2 changed files with 7 additions and 1 deletions
|
@ -83,10 +83,14 @@ function writeValue(value, buffer, transform) {
|
|||
buffer.push(`(${escapeString(value)})`);
|
||||
} else if (typeof value === "number") {
|
||||
buffer.push(numberToString(value));
|
||||
} else if (typeof value === "boolean") {
|
||||
buffer.push(`${value.toString()}`);
|
||||
} else if (isDict(value)) {
|
||||
writeDict(value, buffer, transform);
|
||||
} else if (isStream(value)) {
|
||||
writeStream(value, buffer, transform);
|
||||
} else {
|
||||
warn(`Unhandled value in writer: ${typeof value}, please file a bug.`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue