From 6c4f588568ab7395152d35edefb28b5be812f008 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Sat, 21 May 2016 13:10:35 +0100 Subject: [PATCH] PDF.js version 1.5.264 - See mozilla/pdf.js@db46829ef7c7954fb2ae3a726083e0156302e02d --- bower.json | 2 +- build/pdf.combined.js | 5 ++--- build/pdf.js | 5 ++--- build/pdf.worker.js | 4 ++-- package.json | 2 +- web/pdf_viewer.js | 8 +++----- 6 files changed, 11 insertions(+), 15 deletions(-) diff --git a/bower.json b/bower.json index bbb588377..7ad21ca7b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.5.262", + "version": "1.5.264", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 1ab460f50..ebb41d6a2 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.5.262'; -var pdfjsBuild = '7ac48ef'; +var pdfjsVersion = '1.5.264'; +var pdfjsBuild = 'db46829'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -24943,7 +24943,6 @@ var Util = sharedUtil.Util; var createPromiseCapability = sharedUtil.createPromiseCapability; var CustomStyle = displayDOMUtils.CustomStyle; var getDefaultSetting = displayDOMUtils.getDefaultSetting; -var PageViewport = sharedUtil.PageViewport; /** * Text layer render parameters. diff --git a/build/pdf.js b/build/pdf.js index c65d0bda6..c2e4446c6 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.5.262'; -var pdfjsBuild = '7ac48ef'; +var pdfjsVersion = '1.5.264'; +var pdfjsBuild = 'db46829'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -5161,7 +5161,6 @@ var Util = sharedUtil.Util; var createPromiseCapability = sharedUtil.createPromiseCapability; var CustomStyle = displayDOMUtils.CustomStyle; var getDefaultSetting = displayDOMUtils.getDefaultSetting; -var PageViewport = sharedUtil.PageViewport; /** * Text layer render parameters. diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 820d13904..86d5acf27 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.5.262'; -var pdfjsBuild = '7ac48ef'; +var pdfjsVersion = '1.5.264'; +var pdfjsBuild = 'db46829'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/package.json b/package.json index f7b66f024..307c9b31d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.5.262", + "version": "1.5.264", "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 a16b07bd7..a6121d7c9 100644 --- a/web/pdf_viewer.js +++ b/web/pdf_viewer.js @@ -945,7 +945,7 @@ exports.binarySearchFirstItem = binarySearchFirstItem; { factory((root.pdfjsWebPDFFindController = {}), root.pdfjsWebUIUtils); } -}(this, function (exports, uiUtils, firefoxCom) { +}(this, function (exports, uiUtils) { var scrollIntoView = uiUtils.scrollIntoView; @@ -1243,10 +1243,9 @@ var PDFFindController = (function PDFFindControllerClosure() { * @param {number} index - match index. * @param {Array} elements - text layer div elements array. * @param {number} beginIdx - start index of the div array for the match. - * @param {number} endIdx - end index of the div array for the match. */ updateMatchPosition: function PDFFindController_updateMatchPosition( - pageIndex, index, elements, beginIdx, endIdx) { + pageIndex, index, elements, beginIdx) { if (this.selected.matchIdx === index && this.selected.pageIdx === pageIndex) { var spot = { @@ -2245,7 +2244,6 @@ var PDFPageView = (function PDFPageViewClosure() { var isScalingRestricted = false; if (this.canvas && pdfjsLib.PDFJS.maxCanvasPixels > 0) { var outputScale = this.outputScale; - var pixelsInViewport = this.viewport.width * this.viewport.height; if (((Math.floor(this.viewport.width) * outputScale.sx) | 0) * ((Math.floor(this.viewport.height) * outputScale.sy) | 0) > pdfjsLib.PDFJS.maxCanvasPixels) { @@ -2860,7 +2858,7 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() { if (this.findController) { this.findController.updateMatchPosition(pageIdx, i, textDivs, - begin.divIdx, end.divIdx); + begin.divIdx); } // Match inside new div.