Merge pull request #19911 from calixteman/issue19753
Decode appearance keys of checkboxes
This commit is contained in:
commit
ca05a0dbfc
@ -3290,7 +3290,7 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
|
|||||||
? this.data.fieldValue
|
? this.data.fieldValue
|
||||||
: "Yes";
|
: "Yes";
|
||||||
|
|
||||||
const exportValues = normalAppearance.getKeys();
|
const exportValues = this._decodeFormValue(normalAppearance.getKeys());
|
||||||
if (exportValues.length === 0) {
|
if (exportValues.length === 0) {
|
||||||
exportValues.push("Off", yes);
|
exportValues.push("Off", yes);
|
||||||
} else if (exportValues.length === 1) {
|
} else if (exportValues.length === 1) {
|
||||||
|
|||||||
1
test/pdfs/issue19753.pdf.link
Normal file
1
test/pdfs/issue19753.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://github.com/user-attachments/files/19566810/PDFjs_fails_checkboxState.pdf
|
||||||
@ -12114,5 +12114,14 @@
|
|||||||
"md5": "2abe67c8b34522feb6b85d252dde9d3e",
|
"md5": "2abe67c8b34522feb6b85d252dde9d3e",
|
||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "issue19753",
|
||||||
|
"file": "pdfs/issue19753.pdf",
|
||||||
|
"md5": "6b1fe0af506860002a9411f5f0d6437f",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq",
|
||||||
|
"forms": true,
|
||||||
|
"link": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user