Browse Source

PDF.js version 1.0.596

master v1.0.596
Yury Delendik 10 years ago
parent
commit
9e377f3864
  1. 2
      bower.json
  2. 21
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 21
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.594", "version": "1.0.596",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",
"pdf", "pdf",

21
build/pdf.combined.js

@ -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,20 +9151,21 @@ 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;
return new Promise(function tryFetch(resolve, reject) {
try { try {
resolve(this.fetch(ref, suppressEncryption)); resolve(xref.fetch(ref, suppressEncryption));
} catch (e) { } catch (e) {
if (e instanceof MissingDataException) { if (e instanceof MissingDataException) {
this.stream.manager.requestRange(e.begin, e.end, tryFetch); streamManager.requestRange(e.begin, e.end, function () {
tryFetch(resolve, reject);
});
return; return;
} }
reject(e); reject(e);
} }
}.bind(this); });
tryFetch();
}.bind(this));
}, },
getCatalogObj: function XRef_getCatalogObj() { getCatalogObj: function XRef_getCatalogObj() {

4
build/pdf.js

@ -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

21
build/pdf.worker.js vendored

@ -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
@ -3590,7 +3590,7 @@ var Catalog = (function CatalogClosure() {
} }
nodesToVisit.push(obj); nodesToVisit.push(obj);
next(); next();
}.bind(this), capability.reject.bind(capability)); }, capability.reject);
return; return;
} }
@ -4294,20 +4294,21 @@ 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;
return new Promise(function tryFetch(resolve, reject) {
try { try {
resolve(this.fetch(ref, suppressEncryption)); resolve(xref.fetch(ref, suppressEncryption));
} catch (e) { } catch (e) {
if (e instanceof MissingDataException) { if (e instanceof MissingDataException) {
this.stream.manager.requestRange(e.begin, e.end, tryFetch); streamManager.requestRange(e.begin, e.end, function () {
tryFetch(resolve, reject);
});
return; return;
} }
reject(e); reject(e);
} }
}.bind(this); });
tryFetch();
}.bind(this));
}, },
getCatalogObj: function XRef_getCatalogObj() { getCatalogObj: function XRef_getCatalogObj() {

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.594", "version": "1.0.596",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

Loading…
Cancel
Save