diff --git a/bower.json b/bower.json index 55c2e298b..70011feae 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.2.87", + "version": "1.2.89", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index e3b48dd02..7f934f5e3 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.2.87'; -PDFJS.build = '3c6df26'; +PDFJS.version = '1.2.89'; +PDFJS.build = '3c94ba8'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.js b/build/pdf.js index 00289db32..7c3023139 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.2.87'; -PDFJS.build = '3c6df26'; +PDFJS.version = '1.2.89'; +PDFJS.build = '3c94ba8'; (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 a3db13d88..994a9f8a9 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.2.87'; -PDFJS.build = '3c6df26'; +PDFJS.version = '1.2.89'; +PDFJS.build = '3c94ba8'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 91ff227fa..6dc3b9f70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.2.87", + "version": "1.2.89", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla", diff --git a/web/pdf_viewer.js b/web/pdf_viewer.js index eeebd41ad..32c146238 100644 --- a/web/pdf_viewer.js +++ b/web/pdf_viewer.js @@ -2555,6 +2555,12 @@ var PDFViewer = (function pdfViewer() { case 'FitBH': y = dest[2]; scale = 'page-width'; + // According to the PDF spec, section 12.3.2.2, a `null` value in the + // parameter should maintain the position relative to the new page. + if (y === null && this._location) { + x = this._location.left; + y = this._location.top; + } break; case 'FitV': case 'FitBV':