Bug 1661226 - Push button are not rendered with renderInteractiveForms enabled
This commit is contained in:
parent
4ffdbe6ec9
commit
ba94f04ba3
@ -1387,6 +1387,15 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getOperatorList(evaluator, task, renderForms, annotationStorage) {
|
getOperatorList(evaluator, task, renderForms, annotationStorage) {
|
||||||
|
if (this.data.pushButton) {
|
||||||
|
return super.getOperatorList(
|
||||||
|
evaluator,
|
||||||
|
task,
|
||||||
|
false, // we use normalAppearance to render the button
|
||||||
|
annotationStorage
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (annotationStorage) {
|
if (annotationStorage) {
|
||||||
const value = annotationStorage[this.data.id] || false;
|
const value = annotationStorage[this.data.id] || false;
|
||||||
let appearance;
|
let appearance;
|
||||||
|
@ -4572,6 +4572,16 @@
|
|||||||
"type": "eq",
|
"type": "eq",
|
||||||
"annotations": true
|
"annotations": true
|
||||||
},
|
},
|
||||||
|
{ "id": "issue4872-forms",
|
||||||
|
"file": "pdfs/issue4872.pdf",
|
||||||
|
"md5": "21c6cbc682140d6f6017bbeb45892053",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": true,
|
||||||
|
"firstPage": 1,
|
||||||
|
"lastPage": 1,
|
||||||
|
"type": "eq",
|
||||||
|
"forms": true
|
||||||
|
},
|
||||||
{ "id": "issue6108",
|
{ "id": "issue6108",
|
||||||
"file": "pdfs/issue6108.pdf",
|
"file": "pdfs/issue6108.pdf",
|
||||||
"md5": "8961cb55149495989a80bf0487e0f076",
|
"md5": "8961cb55149495989a80bf0487e0f076",
|
||||||
|
Loading…
Reference in New Issue
Block a user