diff --git a/bower.json b/bower.json index 78e552233..f68b44a7c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.6.272", + "version": "1.6.274", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index c050313ad..4591756ba 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -24,8 +24,8 @@ }(this, function (exports) { // Use strict in our context only - users might not want it 'use strict'; - var pdfjsVersion = '1.6.272'; - var pdfjsBuild = 'ab464df'; + var pdfjsVersion = '1.6.274'; + var pdfjsBuild = '1c3fb17'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; var pdfjsLibs = {}; (function pdfjsWrapper() { diff --git a/build/pdf.js b/build/pdf.js index 046dbd3e9..d4a0b4c4c 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -24,8 +24,8 @@ }(this, function (exports) { // Use strict in our context only - users might not want it 'use strict'; - var pdfjsVersion = '1.6.272'; - var pdfjsBuild = 'ab464df'; + var pdfjsVersion = '1.6.274'; + var pdfjsBuild = '1c3fb17'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; var pdfjsLibs = {}; (function pdfjsWrapper() { diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 3ff09c55e..f591b7598 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -24,8 +24,8 @@ }(this, function (exports) { // Use strict in our context only - users might not want it 'use strict'; - var pdfjsVersion = '1.6.272'; - var pdfjsBuild = 'ab464df'; + var pdfjsVersion = '1.6.274'; + var pdfjsBuild = '1c3fb17'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; var pdfjsLibs = {}; (function pdfjsWrapper() { diff --git a/package.json b/package.json index c48dcb768..0f32db59d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.6.272", + "version": "1.6.274", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ diff --git a/web/pdf_viewer.js b/web/pdf_viewer.js index 4c0edaffd..7281e5027 100644 --- a/web/pdf_viewer.js +++ b/web/pdf_viewer.js @@ -1861,11 +1861,12 @@ mode: params.pagemode }); } - } else if (isPageNumber(hash)) { - // Page number. - this.page = hash | 0; } else { // Named (or explicit) destination. + if (isPageNumber(hash) && hash <= this.pagesCount) { + console.warn('PDFLinkService_setHash: specifying a page number ' + 'directly after the hash symbol (#) is deprecated, ' + 'please use the "#page=' + hash + '" form instead.'); + this.page = hash | 0; + } dest = unescape(hash); try { dest = JSON.parse(dest);