mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Merge pull request #7009 from KamiHQ/annotations-fix
[api-minor] Always expose data.title and data.contents for TextAnnotation
This commit is contained in:
commit
c53581f4e5
1 changed files with 2 additions and 6 deletions
|
@ -673,13 +673,9 @@ var TextAnnotation = (function TextAnnotationClosure() {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.data.hasPopup = dict.has('Popup');
|
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.title = stringToPDFString(dict.get('T') || '');
|
||||||
this.data.contents = stringToPDFString(dict.get('Contents') || '');
|
this.data.contents = stringToPDFString(dict.get('Contents') || '');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Util.inherit(TextAnnotation, Annotation, {});
|
Util.inherit(TextAnnotation, Annotation, {});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue