mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Make sure that an A entry in an annotation dictionary is also a dictionary itself
This commit is contained in:
parent
1b8e44e0d8
commit
06004d6a92
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ var LinkAnnotation = (function LinkAnnotationClosure() {
|
|||
data.annotationType = AnnotationType.LINK;
|
||||
|
||||
var action = dict.get('A');
|
||||
if (action) {
|
||||
if (action && isDict(action)) {
|
||||
var linkType = action.get('S').name;
|
||||
if (linkType === 'URI') {
|
||||
var url = action.get('URI');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue