Browse Source

always expose data.title and data.content

Xiliang Chen 9 years ago
parent
commit
266cedd960
  1. 4
      src/core/annotation.js

4
src/core/annotation.js

@ -673,13 +673,9 @@ var TextAnnotation = (function TextAnnotationClosure() { @@ -673,13 +673,9 @@ 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') || '');
}
}
Util.inherit(TextAnnotation, Annotation, {});

Loading…
Cancel
Save