1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Sanitize the display value for choice widget annotations

This commit is contained in:
Tim van der Meij 2017-11-18 16:47:32 +01:00
parent 9e8cf448b0
commit 25b07812b9
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
2 changed files with 31 additions and 17 deletions

View file

@ -798,7 +798,8 @@ class ChoiceWidgetAnnotation extends WidgetAnnotation {
this.data.options[i] = {
exportValue: isOptionArray ? xref.fetchIfRef(option[0]) : option,
displayValue: isOptionArray ? xref.fetchIfRef(option[1]) : option,
displayValue: stringToPDFString(isOptionArray ?
xref.fetchIfRef(option[1]) : option),
};
}
}