From d26d10111fa636734971dd2d7c10df7bdc3d0960 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Wed, 27 Jan 2016 15:33:27 +0000 Subject: [PATCH] PDF.js version 1.4.20 - See mozilla/pdf.js@b15f335380749f61bf1dc95a94278410de10864f --- bower.json | 2 +- build/pdf.combined.js | 21 ++++++--------------- build/pdf.js | 12 +++++------- build/pdf.worker.js | 13 +++---------- package.json | 2 +- 5 files changed, 16 insertions(+), 34 deletions(-) diff --git a/bower.json b/bower.json index 082aa6a39..7c557636a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.18", + "version": "1.4.20", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 531239bc3..6236a953a 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.18'; -var pdfjsBuild = '1f2910b'; +var pdfjsVersion = '1.4.20'; +var pdfjsBuild = 'b15f335'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -29675,14 +29675,7 @@ var Catalog = (function CatalogClosure() { currentLabel = ''; currentIndex++; } - - // Ignore PageLabels if they correspond to standard page numbering. - for (i = 0, ii = this.numPages; i < ii; i++) { - if (pageLabels[i] !== (i + 1).toString()) { - break; - } - } - return (i === ii ? [] : pageLabels); + return pageLabels; }, get attachments() { @@ -31821,11 +31814,9 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() { return this.transport.getDestination(id); }, /** - * @return {Promise} A promise that is resolved with: an Array containing - * the pageLabels that correspond to the pageIndexes; or null, when no - * pageLabels are present in the PDF file. - * NOTE: If the pageLabels are all identical to standard page numbering, - * i.e. [1, 2, 3, ...], the promise is resolved with an empty Array. + * @return {Promise} A promise that is resolved with: + * an Array containing the pageLabels that correspond to the pageIndexes, + * or `null` when no pageLabels are present in the PDF file. */ getPageLabels: function PDFDocumentProxy_getPageLabels() { return this.transport.getPageLabels(); diff --git a/build/pdf.js b/build/pdf.js index 547fd3a12..c8877d510 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.18'; -var pdfjsBuild = '1f2910b'; +var pdfjsVersion = '1.4.20'; +var pdfjsBuild = 'b15f335'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -8909,11 +8909,9 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() { return this.transport.getDestination(id); }, /** - * @return {Promise} A promise that is resolved with: an Array containing - * the pageLabels that correspond to the pageIndexes; or null, when no - * pageLabels are present in the PDF file. - * NOTE: If the pageLabels are all identical to standard page numbering, - * i.e. [1, 2, 3, ...], the promise is resolved with an empty Array. + * @return {Promise} A promise that is resolved with: + * an Array containing the pageLabels that correspond to the pageIndexes, + * or `null` when no pageLabels are present in the PDF file. */ getPageLabels: function PDFDocumentProxy_getPageLabels() { return this.transport.getPageLabels(); diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 8a14f9d51..821ceac93 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.18'; -var pdfjsBuild = '1f2910b'; +var pdfjsVersion = '1.4.20'; +var pdfjsBuild = 'b15f335'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -23866,14 +23866,7 @@ var Catalog = (function CatalogClosure() { currentLabel = ''; currentIndex++; } - - // Ignore PageLabels if they correspond to standard page numbering. - for (i = 0, ii = this.numPages; i < ii; i++) { - if (pageLabels[i] !== (i + 1).toString()) { - break; - } - } - return (i === ii ? [] : pageLabels); + return pageLabels; }, get attachments() { diff --git a/package.json b/package.json index 6922d7309..e22d34557 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.18", + "version": "1.4.20", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [