Browse Source

PDF.js version 1.5.264 - See mozilla/pdf.js@db46829ef7c7954fb2ae3a726083e0156302e02d

master v1.5.264
Pdf Bot 9 years ago
parent
commit
6c4f588568
  1. 2
      bower.json
  2. 5
      build/pdf.combined.js
  3. 5
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json
  6. 8
      web/pdf_viewer.js

2
bower.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.5.262",
"version": "1.5.264",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

5
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); @@ -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; @@ -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.

5
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); @@ -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; @@ -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.

4
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); @@ -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 ?

2
package.json

@ -1,6 +1,6 @@ @@ -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": [

8
web/pdf_viewer.js

@ -945,7 +945,7 @@ exports.binarySearchFirstItem = binarySearchFirstItem; @@ -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() { @@ -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() { @@ -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() { @@ -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.

Loading…
Cancel
Save