Bug 1661226 - Push button are not rendered with renderInteractiveForms enabled

This commit is contained in:
Calixte Denizet 2020-08-26 20:26:18 +02:00
parent 4ffdbe6ec9
commit ba94f04ba3
2 changed files with 19 additions and 0 deletions

View File

@ -1387,6 +1387,15 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
}
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) {
const value = annotationStorage[this.data.id] || false;
let appearance;

View File

@ -4572,6 +4572,16 @@
"type": "eq",
"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",
"file": "pdfs/issue6108.pdf",
"md5": "8961cb55149495989a80bf0487e0f076",