Prevent rendering TextWidgetAnnotations in both the core/display layer (issue 7643)

This commit is contained in:
Jonas Jenwald 2016-09-18 15:35:12 +02:00
parent f062695d62
commit 170871ab3d
5 changed files with 58 additions and 2 deletions

View File

@ -401,7 +401,9 @@ var TextAnnotationElement = (function TextAnnotationElementClosure() {
*/
var WidgetAnnotationElement = (function WidgetAnnotationElementClosure() {
function WidgetAnnotationElement(parameters) {
AnnotationElement.call(this, parameters, true);
var isRenderable = parameters.renderInteractiveForms ||
(!parameters.data.hasAppearance && !!parameters.data.fieldValue);
AnnotationElement.call(this, parameters, isRenderable);
}
Util.inherit(WidgetAnnotationElement, AnnotationElement, {

View File

@ -204,6 +204,9 @@
!bug946506.pdf
!issue3885.pdf
!bug859204.pdf
!annotation-tx.pdf
!annotation-tx2.pdf
!annotation-tx3.pdf
!coons-allflags-withfunction.pdf
!tensor-allflags-withfunction.pdf
!issue4246.pdf

Binary file not shown.

Binary file not shown.

View File

@ -732,6 +732,14 @@
"rounds": 1,
"type": "load"
},
{ "id": "f1040-annotations",
"file": "pdfs/f1040.pdf",
"md5": "7323b50c6d28d959b8b4b92c469b2469",
"link": true,
"rounds": 1,
"type": "eq",
"annotations": true
},
{ "id": "f1040-forms",
"file": "pdfs/f1040.pdf",
"md5": "7323b50c6d28d959b8b4b92c469b2469",
@ -2519,7 +2527,43 @@
"rounds": 1,
"type": "eq",
"annotations": true,
"about": "Text widget annotation witout appearance streams."
"about": "Text widget annotation without appearance streams."
},
{ "id": "annotation-tx-forms",
"file": "pdfs/annotation-tx.pdf",
"md5": "56321ea830be9c4f8437ca17ac535b2d",
"rounds": 1,
"type": "eq",
"forms": true,
"about": "Text widget annotation without appearance streams."
},
{ "id": "annotation-tx2-annotations",
"file": "pdfs/annotation-tx2.pdf",
"md5": "b7a32a751895d394fc07bb6ddb40c420",
"rounds": 1,
"type": "eq",
"annotations": true
},
{ "id": "annotation-tx2-forms",
"file": "pdfs/annotation-tx2.pdf",
"md5": "b7a32a751895d394fc07bb6ddb40c420",
"rounds": 1,
"type": "eq",
"forms": true
},
{ "id": "annotation-tx3-annotations",
"file": "pdfs/annotation-tx3.pdf",
"md5": "3aec45c6465ca4959c25df17c4356a1c",
"rounds": 1,
"type": "eq",
"annotations": true
},
{ "id": "annotation-tx3-forms",
"file": "pdfs/annotation-tx3.pdf",
"md5": "3aec45c6465ca4959c25df17c4356a1c",
"rounds": 1,
"type": "eq",
"forms": true
},
{ "id": "gesamt",
"file": "pdfs/gesamt.pdf",
@ -3151,6 +3195,13 @@
"type": "eq",
"annotations": true
},
{ "id": "annotation-text-widget-annotations",
"file": "pdfs/annotation-text-widget.pdf",
"md5": "cc9672539ad5b837152a9c6961e5f106",
"rounds": 1,
"type": "eq",
"annotations": true
},
{ "id": "annotation-text-widget-forms",
"file": "pdfs/annotation-text-widget.pdf",
"md5": "cc9672539ad5b837152a9c6961e5f106",