diff --git a/src/core/annotation.js b/src/core/annotation.js index 8c1b8eaa3..68626cdf6 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -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; diff --git a/test/test_manifest.json b/test/test_manifest.json index 273378359..6e9c5bd0d 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -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",