|
|
@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.0.594'; |
|
|
|
PDFJS.version = '1.0.596'; |
|
|
|
PDFJS.build = '223f34b'; |
|
|
|
PDFJS.build = '179bb2e'; |
|
|
|
|
|
|
|
|
|
|
|
(function pdfjsWrapper() { |
|
|
|
(function pdfjsWrapper() { |
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
@ -8447,7 +8447,7 @@ var Catalog = (function CatalogClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
nodesToVisit.push(obj); |
|
|
|
nodesToVisit.push(obj); |
|
|
|
next(); |
|
|
|
next(); |
|
|
|
}.bind(this), capability.reject.bind(capability)); |
|
|
|
}, capability.reject); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -9151,21 +9151,22 @@ var XRef = (function XRefClosure() { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) { |
|
|
|
fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) { |
|
|
|
return new Promise(function (resolve, reject) { |
|
|
|
var streamManager = this.stream.manager; |
|
|
|
var tryFetch = function () { |
|
|
|
var xref = this; |
|
|
|
try { |
|
|
|
return new Promise(function tryFetch(resolve, reject) { |
|
|
|
resolve(this.fetch(ref, suppressEncryption)); |
|
|
|
try { |
|
|
|
} catch (e) { |
|
|
|
resolve(xref.fetch(ref, suppressEncryption)); |
|
|
|
if (e instanceof MissingDataException) { |
|
|
|
} catch (e) { |
|
|
|
this.stream.manager.requestRange(e.begin, e.end, tryFetch); |
|
|
|
if (e instanceof MissingDataException) { |
|
|
|
return; |
|
|
|
streamManager.requestRange(e.begin, e.end, function () { |
|
|
|
} |
|
|
|
tryFetch(resolve, reject); |
|
|
|
reject(e); |
|
|
|
}); |
|
|
|
} |
|
|
|
return; |
|
|
|
}.bind(this); |
|
|
|
} |
|
|
|
tryFetch(); |
|
|
|
reject(e); |
|
|
|
}.bind(this)); |
|
|
|
} |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getCatalogObj: function XRef_getCatalogObj() { |
|
|
|
getCatalogObj: function XRef_getCatalogObj() { |
|
|
|
return this.root; |
|
|
|
return this.root; |
|
|
|