Added default value for no annotations
This commit is contained in:
parent
2634a72c53
commit
a67c63db13
2
pdf.js
2
pdf.js
@ -3342,7 +3342,7 @@ var Page = (function() {
|
||||
},
|
||||
getLinks: function() {
|
||||
var xref = this.xref;
|
||||
var annotations = xref.fetchIfRef(this.annotations);
|
||||
var annotations = xref.fetchIfRef(this.annotations) || [];
|
||||
var i, n = annotations.length;
|
||||
var links = [];
|
||||
for (i = 0; i < n; ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user