1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

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, {