Decode appearance keys of checkboxes

This commit is contained in:
Calixte Denizet 2025-05-09 21:46:17 +02:00
parent 293506ada7
commit 49a098cb5d
3 changed files with 11 additions and 1 deletions

View File

@ -3290,7 +3290,7 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
? this.data.fieldValue
: "Yes";
const exportValues = normalAppearance.getKeys();
const exportValues = this._decodeFormValue(normalAppearance.getKeys());
if (exportValues.length === 0) {
exportValues.push("Off", yes);
} else if (exportValues.length === 1) {

View File

@ -0,0 +1 @@
https://github.com/user-attachments/files/19566810/PDFjs_fails_checkboxState.pdf

View File

@ -12114,5 +12114,14 @@
"md5": "2abe67c8b34522feb6b85d252dde9d3e",
"rounds": 1,
"type": "eq"
},
{
"id": "issue19753",
"file": "pdfs/issue19753.pdf",
"md5": "6b1fe0af506860002a9411f5f0d6437f",
"rounds": 1,
"type": "eq",
"forms": true,
"link": true
}
]