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:
parent
9e8cf448b0
commit
25b07812b9
2 changed files with 31 additions and 17 deletions
|
@ -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),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue