From 266cedd960c5d16e9ca7ce985e53097702b80d1f Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Fri, 19 Feb 2016 13:50:25 +1300 Subject: [PATCH] always expose data.title and data.content --- src/core/annotation.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/core/annotation.js b/src/core/annotation.js index 46a59c916..227013f82 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -673,12 +673,8 @@ var TextAnnotation = (function TextAnnotationClosure() { } this.data.hasPopup = dict.has('Popup'); - if (!this.data.hasPopup) { - // There is no associated Popup annotation, so the Text annotation - // must create its own popup. - this.data.title = stringToPDFString(dict.get('T') || ''); - this.data.contents = stringToPDFString(dict.get('Contents') || ''); - } + this.data.title = stringToPDFString(dict.get('T') || ''); + this.data.contents = stringToPDFString(dict.get('Contents') || ''); } Util.inherit(TextAnnotation, Annotation, {});