Merge pull request #342 from sbarman/annotation
Added default value for no annotations
This commit is contained in:
commit
455ff74c19
2
pdf.js
2
pdf.js
@ -3342,7 +3342,7 @@ var Page = (function() {
|
|||||||
},
|
},
|
||||||
getLinks: function() {
|
getLinks: function() {
|
||||||
var xref = this.xref;
|
var xref = this.xref;
|
||||||
var annotations = xref.fetchIfRef(this.annotations);
|
var annotations = xref.fetchIfRef(this.annotations) || [];
|
||||||
var i, n = annotations.length;
|
var i, n = annotations.length;
|
||||||
var links = [];
|
var links = [];
|
||||||
for (i = 0; i < n; ++i) {
|
for (i = 0; i < n; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user