Browse Source

PDF.js version 1.7.314 - See mozilla/pdf.js@912c952df7a643771df7157152833b208be48f75

master v1.7.314
pdfjsbot 8 years ago
parent
commit
dcafe8e5fb
  1. 2
      bower.json
  2. 26
      build/pdf.combined.js
  3. 12
      build/pdf.js
  4. 4
      build/pdf.min.js
  5. 18
      build/pdf.worker.js
  6. 16
      build/pdf.worker.min.js
  7. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.7.312", "version": "1.7.314",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

26
build/pdf.combined.js

@ -20840,8 +20840,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
} }
}; };
}(); }();
exports.version = '1.7.312'; exports.version = '1.7.314';
exports.build = 'cada411a'; exports.build = '912c952d';
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker; exports.PDFWorker = PDFWorker;
@ -34718,7 +34718,6 @@ var Catalog = function CatalogClosure() {
var nodesToVisit = [this.catDict.getRaw('Pages')]; var nodesToVisit = [this.catDict.getRaw('Pages')];
var currentPageIndex = 0; var currentPageIndex = 0;
var xref = this.xref; var xref = this.xref;
var checkAllKids = false;
function next() { function next() {
while (nodesToVisit.length) { while (nodesToVisit.length) {
var currentNode = nodesToVisit.pop(); var currentNode = nodesToVisit.pop();
@ -34743,23 +34742,14 @@ var Catalog = function CatalogClosure() {
} }
assert(isDict(currentNode), 'page dictionary kid reference points to wrong type of object'); assert(isDict(currentNode), 'page dictionary kid reference points to wrong type of object');
var count = currentNode.get('Count'); var count = currentNode.get('Count');
if (count === 0) {
checkAllKids = true;
}
if (currentPageIndex + count <= pageIndex) { if (currentPageIndex + count <= pageIndex) {
currentPageIndex += count; currentPageIndex += count;
continue; continue;
} }
var kids = currentNode.get('Kids'); var kids = currentNode.get('Kids');
assert(isArray(kids), 'page dictionary kids object is not an array'); assert(isArray(kids), 'page dictionary kids object is not an array');
if (!checkAllKids && count === kids.length) { for (var last = kids.length - 1; last >= 0; last--) {
nodesToVisit = [kids[pageIndex - currentPageIndex]]; nodesToVisit.push(kids[last]);
currentPageIndex = pageIndex;
continue;
} else {
for (var last = kids.length - 1; last >= 0; last--) {
nodesToVisit.push(kids[last]);
}
} }
} }
capability.reject('Page index ' + pageIndex + ' not found.'); capability.reject('Page index ' + pageIndex + ' not found.');
@ -39618,8 +39608,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {}; globalScope.PDFJS = {};
} }
var PDFJS = globalScope.PDFJS; var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.312'; PDFJS.version = '1.7.314';
PDFJS.build = 'cada411a'; PDFJS.build = '912c952d';
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity); sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -57321,8 +57311,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.7.312'; var pdfjsVersion = '1.7.314';
var pdfjsBuild = 'cada411a'; var pdfjsBuild = '912c952d';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(25); var pdfjsDisplayGlobal = __w_pdfjs_require__(25);
var pdfjsDisplayAPI = __w_pdfjs_require__(10); var pdfjsDisplayAPI = __w_pdfjs_require__(10);

12
build/pdf.js

@ -4553,8 +4553,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
} }
}; };
}(); }();
exports.version = '1.7.312'; exports.version = '1.7.314';
exports.build = 'cada411a'; exports.build = '912c952d';
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker; exports.PDFWorker = PDFWorker;
@ -6570,8 +6570,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {}; globalScope.PDFJS = {};
} }
var PDFJS = globalScope.PDFJS; var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.312'; PDFJS.version = '1.7.314';
PDFJS.build = 'cada411a'; PDFJS.build = '912c952d';
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity); sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -9253,8 +9253,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.7.312'; var pdfjsVersion = '1.7.314';
var pdfjsBuild = 'cada411a'; var pdfjsBuild = '912c952d';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(8); var pdfjsDisplayGlobal = __w_pdfjs_require__(8);
var pdfjsDisplayAPI = __w_pdfjs_require__(3); var pdfjsDisplayAPI = __w_pdfjs_require__(3);

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

18
build/pdf.worker.js vendored

@ -31784,7 +31784,6 @@ var Catalog = function CatalogClosure() {
var nodesToVisit = [this.catDict.getRaw('Pages')]; var nodesToVisit = [this.catDict.getRaw('Pages')];
var currentPageIndex = 0; var currentPageIndex = 0;
var xref = this.xref; var xref = this.xref;
var checkAllKids = false;
function next() { function next() {
while (nodesToVisit.length) { while (nodesToVisit.length) {
var currentNode = nodesToVisit.pop(); var currentNode = nodesToVisit.pop();
@ -31809,23 +31808,14 @@ var Catalog = function CatalogClosure() {
} }
assert(isDict(currentNode), 'page dictionary kid reference points to wrong type of object'); assert(isDict(currentNode), 'page dictionary kid reference points to wrong type of object');
var count = currentNode.get('Count'); var count = currentNode.get('Count');
if (count === 0) {
checkAllKids = true;
}
if (currentPageIndex + count <= pageIndex) { if (currentPageIndex + count <= pageIndex) {
currentPageIndex += count; currentPageIndex += count;
continue; continue;
} }
var kids = currentNode.get('Kids'); var kids = currentNode.get('Kids');
assert(isArray(kids), 'page dictionary kids object is not an array'); assert(isArray(kids), 'page dictionary kids object is not an array');
if (!checkAllKids && count === kids.length) { for (var last = kids.length - 1; last >= 0; last--) {
nodesToVisit = [kids[pageIndex - currentPageIndex]]; nodesToVisit.push(kids[last]);
currentPageIndex = pageIndex;
continue;
} else {
for (var last = kids.length - 1; last >= 0; last--) {
nodesToVisit.push(kids[last]);
}
} }
} }
capability.reject('Page index ' + pageIndex + ' not found.'); capability.reject('Page index ' + pageIndex + ' not found.');
@ -50524,8 +50514,8 @@ exports.Type1Parser = Type1Parser;
"use strict"; "use strict";
var pdfjsVersion = '1.7.312'; var pdfjsVersion = '1.7.314';
var pdfjsBuild = 'cada411a'; var pdfjsBuild = '912c952d';
var pdfjsCoreWorker = __w_pdfjs_require__(8); var pdfjsCoreWorker = __w_pdfjs_require__(8);
{ {
__w_pdfjs_require__(18); __w_pdfjs_require__(18);

16
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.7.312", "version": "1.7.314",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

Loading…
Cancel
Save