diff --git a/bower.json b/bower.json index 983b0daff..7d8f18f06 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.290", + "version": "1.1.293", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 7e5aeb1b3..ab86e0fa5 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.290'; -PDFJS.build = 'e498bbc'; +PDFJS.version = '1.1.293'; +PDFJS.build = '1416a1b'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -10006,7 +10006,7 @@ var Catalog = (function CatalogClosure() { } var xref = this.xref; - var dest, nameTreeRef, nameDictionaryRef; + var dest = null, nameTreeRef, nameDictionaryRef; var obj = this.catDict.get('Names'); if (obj && obj.has('Dests')) { nameTreeRef = obj.getRaw('Dests'); @@ -10014,17 +10014,11 @@ var Catalog = (function CatalogClosure() { nameDictionaryRef = this.catDict.get('Dests'); } - if (nameDictionaryRef) { - // reading simple destination dictionary - obj = nameDictionaryRef; - obj.forEach(function catalogForEach(key, value) { - if (!value) { - return; - } - if (key === destinationId) { - dest = fetchDestination(value); - } - }); + if (nameDictionaryRef) { // Simple destination dictionary. + var value = nameDictionaryRef.get(destinationId); + if (value) { + dest = fetchDestination(value); + } } if (nameTreeRef) { var nameTree = new NameTree(nameTreeRef, xref); diff --git a/build/pdf.js b/build/pdf.js index 7edec99fc..c285f13be 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.290'; -PDFJS.build = 'e498bbc'; +PDFJS.version = '1.1.293'; +PDFJS.build = '1416a1b'; (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 e9946aea0..d7c9d183d 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.290'; -PDFJS.build = 'e498bbc'; +PDFJS.version = '1.1.293'; +PDFJS.build = '1416a1b'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -3600,7 +3600,7 @@ var Catalog = (function CatalogClosure() { } var xref = this.xref; - var dest, nameTreeRef, nameDictionaryRef; + var dest = null, nameTreeRef, nameDictionaryRef; var obj = this.catDict.get('Names'); if (obj && obj.has('Dests')) { nameTreeRef = obj.getRaw('Dests'); @@ -3608,17 +3608,11 @@ var Catalog = (function CatalogClosure() { nameDictionaryRef = this.catDict.get('Dests'); } - if (nameDictionaryRef) { - // reading simple destination dictionary - obj = nameDictionaryRef; - obj.forEach(function catalogForEach(key, value) { - if (!value) { - return; - } - if (key === destinationId) { - dest = fetchDestination(value); - } - }); + if (nameDictionaryRef) { // Simple destination dictionary. + var value = nameDictionaryRef.get(destinationId); + if (value) { + dest = fetchDestination(value); + } } if (nameTreeRef) { var nameTree = new NameTree(nameTreeRef, xref); diff --git a/package.json b/package.json index d930babec..d1aec7a53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.290", + "version": "1.1.293", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",