From c4310b9886f71d4e36cc748f6f0ee9c24c76e506 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Tue, 14 Jul 2015 21:04:11 +0100 Subject: [PATCH] PDF.js version 1.1.299 --- bower.json | 2 +- build/pdf.combined.js | 14 +++++++------- build/pdf.js | 4 ++-- build/pdf.worker.js | 14 +++++++------- package.json | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/bower.json b/bower.json index a49edabd3..c97d4a749 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.297", + "version": "1.1.299", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 5d3bcc71b..a00613659 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.297'; -PDFJS.build = '76d225d'; +PDFJS.version = '1.1.299'; +PDFJS.build = '2817f00'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -10915,7 +10915,7 @@ var NameTree = (function NameTreeClosure() { var names = obj.get('Names'); if (names) { for (i = 0, n = names.length; i < n; i += 2) { - dict[names[i]] = xref.fetchIfRef(names[i + 1]); + dict[xref.fetchIfRef(names[i])] = xref.fetchIfRef(names[i + 1]); } } } @@ -10954,9 +10954,9 @@ var NameTree = (function NameTreeClosure() { var kid = xref.fetchIfRef(kids[m]); var limits = kid.get('Limits'); - if (destinationId < limits[0]) { + if (destinationId < xref.fetchIfRef(limits[0])) { r = m - 1; - } else if (destinationId > limits[1]) { + } else if (destinationId > xref.fetchIfRef(limits[1])) { l = m + 1; } else { kidsOrNames = xref.fetchIfRef(kids[m]); @@ -10980,9 +10980,9 @@ var NameTree = (function NameTreeClosure() { // Check only even indices (0, 2, 4, ...) because the // odd indices contain the actual D array. m = (l + r) & ~1; - if (destinationId < names[m]) { + if (destinationId < xref.fetchIfRef(names[m])) { r = m - 2; - } else if (destinationId > names[m]) { + } else if (destinationId > xref.fetchIfRef(names[m])) { l = m + 2; } else { return xref.fetchIfRef(names[m + 1]); diff --git a/build/pdf.js b/build/pdf.js index 77e87fc66..7e5bf7a66 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.297'; -PDFJS.build = '76d225d'; +PDFJS.version = '1.1.299'; +PDFJS.build = '2817f00'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index fe97371fa..ff39ee562 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.297'; -PDFJS.build = '76d225d'; +PDFJS.version = '1.1.299'; +PDFJS.build = '2817f00'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -4509,7 +4509,7 @@ var NameTree = (function NameTreeClosure() { var names = obj.get('Names'); if (names) { for (i = 0, n = names.length; i < n; i += 2) { - dict[names[i]] = xref.fetchIfRef(names[i + 1]); + dict[xref.fetchIfRef(names[i])] = xref.fetchIfRef(names[i + 1]); } } } @@ -4548,9 +4548,9 @@ var NameTree = (function NameTreeClosure() { var kid = xref.fetchIfRef(kids[m]); var limits = kid.get('Limits'); - if (destinationId < limits[0]) { + if (destinationId < xref.fetchIfRef(limits[0])) { r = m - 1; - } else if (destinationId > limits[1]) { + } else if (destinationId > xref.fetchIfRef(limits[1])) { l = m + 1; } else { kidsOrNames = xref.fetchIfRef(kids[m]); @@ -4574,9 +4574,9 @@ var NameTree = (function NameTreeClosure() { // Check only even indices (0, 2, 4, ...) because the // odd indices contain the actual D array. m = (l + r) & ~1; - if (destinationId < names[m]) { + if (destinationId < xref.fetchIfRef(names[m])) { r = m - 2; - } else if (destinationId > names[m]) { + } else if (destinationId > xref.fetchIfRef(names[m])) { l = m + 2; } else { return xref.fetchIfRef(names[m + 1]); diff --git a/package.json b/package.json index 71364b61f..599920126 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.297", + "version": "1.1.299", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",