1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Need to reset the streams when printing

This commit is contained in:
Calixte Denizet 2020-09-24 19:13:09 +02:00
parent 139c8a8cb5
commit 5af352e65a
2 changed files with 94 additions and 0 deletions

View file

@ -1733,6 +1733,11 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
this.checkedAppearance = normalAppearance.get(this.data.exportValue);
this.uncheckedAppearance = normalAppearance.get("Off") || null;
this._streams.push(this.checkedAppearance);
if (this.uncheckedAppearance) {
this._streams.push(this.uncheckedAppearance);
}
}
_processRadioButton(params) {
@ -1767,6 +1772,11 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
this.checkedAppearance = normalAppearance.get(this.data.buttonValue);
this.uncheckedAppearance = normalAppearance.get("Off") || null;
this._streams.push(this.checkedAppearance);
if (this.uncheckedAppearance) {
this._streams.push(this.uncheckedAppearance);
}
}
_processPushButton(params) {