Browse Source

PDF.js version 1.6.377 - See mozilla/pdf.js@47f03b619f0c6fec506235227a9a2df457d3ef93

master v1.6.377
Pdf Bot 8 years ago
parent
commit
94b3ed2d31
  1. 2
      bower.json
  2. 36
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 2
      build/pdf.min.js
  5. 36
      build/pdf.worker.js
  6. 26
      build/pdf.worker.min.js
  7. 2
      package.json

2
bower.json

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

36
build/pdf.combined.js

@ -23,8 +23,8 @@
} }
}(this, function (exports) { }(this, function (exports) {
'use strict'; 'use strict';
var pdfjsVersion = '1.6.374'; var pdfjsVersion = '1.6.377';
var pdfjsBuild = '407dee3'; var pdfjsBuild = '47f03b6';
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
var pdfjsLibs = {}; var pdfjsLibs = {};
(function pdfjsWrapper() { (function pdfjsWrapper() {
@ -55113,11 +55113,12 @@
getPageProp: function Page_getPageProp(key) { getPageProp: function Page_getPageProp(key) {
return this.pageDict.get(key); return this.pageDict.get(key);
}, },
getInheritedPageProp: function Page_getInheritedPageProp(key) { getInheritedPageProp: function Page_getInheritedPageProp(key, getArray) {
var dict = this.pageDict, valueArray = null, loopCount = 0; var dict = this.pageDict, valueArray = null, loopCount = 0;
var MAX_LOOP_COUNT = 100; var MAX_LOOP_COUNT = 100;
getArray = getArray || false;
while (dict) { while (dict) {
var value = dict.get(key); var value = getArray ? dict.getArray(key) : dict.get(key);
if (value) { if (value) {
if (!valueArray) { if (!valueArray) {
valueArray = []; valueArray = [];
@ -55145,11 +55146,18 @@
return shadow(this, 'resources', this.getInheritedPageProp('Resources')); return shadow(this, 'resources', this.getInheritedPageProp('Resources'));
}, },
get mediaBox() { get mediaBox() {
var obj = this.getInheritedPageProp('MediaBox'); var mediaBox = this.getInheritedPageProp('MediaBox', true);
if (!isArray(obj) || obj.length !== 4) { if (!isArray(mediaBox) || mediaBox.length !== 4) {
obj = LETTER_SIZE_MEDIABOX; return shadow(this, 'mediaBox', LETTER_SIZE_MEDIABOX);
} }
return shadow(this, 'mediaBox', obj); return shadow(this, 'mediaBox', mediaBox);
},
get cropBox() {
var cropBox = this.getInheritedPageProp('CropBox', true);
if (!isArray(cropBox) || cropBox.length !== 4) {
return shadow(this, 'cropBox', this.mediaBox);
}
return shadow(this, 'cropBox', cropBox);
}, },
get userUnit() { get userUnit() {
var obj = this.getPageProp('UserUnit'); var obj = this.getPageProp('UserUnit');
@ -55159,16 +55167,12 @@
return shadow(this, 'userUnit', obj); return shadow(this, 'userUnit', obj);
}, },
get view() { get view() {
var mediaBox = this.mediaBox; var mediaBox = this.mediaBox, cropBox = this.cropBox;
var cropBox = this.getInheritedPageProp('CropBox'); if (mediaBox === cropBox) {
if (!isArray(cropBox) || cropBox.length !== 4) {
return shadow(this, 'view', mediaBox);
}
cropBox = Util.intersect(cropBox, mediaBox);
if (!cropBox) {
return shadow(this, 'view', mediaBox); return shadow(this, 'view', mediaBox);
} }
return shadow(this, 'view', cropBox); var intersection = Util.intersect(cropBox, mediaBox);
return shadow(this, 'view', intersection || mediaBox);
}, },
get rotate() { get rotate() {
var rotate = this.getInheritedPageProp('Rotate') || 0; var rotate = this.getInheritedPageProp('Rotate') || 0;

4
build/pdf.js

@ -23,8 +23,8 @@
} }
}(this, function (exports) { }(this, function (exports) {
'use strict'; 'use strict';
var pdfjsVersion = '1.6.374'; var pdfjsVersion = '1.6.377';
var pdfjsBuild = '407dee3'; var pdfjsBuild = '47f03b6';
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
var pdfjsLibs = {}; var pdfjsLibs = {};
(function pdfjsWrapper() { (function pdfjsWrapper() {

2
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

36
build/pdf.worker.js vendored

@ -23,8 +23,8 @@
} }
}(this, function (exports) { }(this, function (exports) {
'use strict'; 'use strict';
var pdfjsVersion = '1.6.374'; var pdfjsVersion = '1.6.377';
var pdfjsBuild = '407dee3'; var pdfjsBuild = '47f03b6';
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
var pdfjsLibs = {}; var pdfjsLibs = {};
(function pdfjsWrapper() { (function pdfjsWrapper() {
@ -48496,11 +48496,12 @@
getPageProp: function Page_getPageProp(key) { getPageProp: function Page_getPageProp(key) {
return this.pageDict.get(key); return this.pageDict.get(key);
}, },
getInheritedPageProp: function Page_getInheritedPageProp(key) { getInheritedPageProp: function Page_getInheritedPageProp(key, getArray) {
var dict = this.pageDict, valueArray = null, loopCount = 0; var dict = this.pageDict, valueArray = null, loopCount = 0;
var MAX_LOOP_COUNT = 100; var MAX_LOOP_COUNT = 100;
getArray = getArray || false;
while (dict) { while (dict) {
var value = dict.get(key); var value = getArray ? dict.getArray(key) : dict.get(key);
if (value) { if (value) {
if (!valueArray) { if (!valueArray) {
valueArray = []; valueArray = [];
@ -48528,11 +48529,18 @@
return shadow(this, 'resources', this.getInheritedPageProp('Resources')); return shadow(this, 'resources', this.getInheritedPageProp('Resources'));
}, },
get mediaBox() { get mediaBox() {
var obj = this.getInheritedPageProp('MediaBox'); var mediaBox = this.getInheritedPageProp('MediaBox', true);
if (!isArray(obj) || obj.length !== 4) { if (!isArray(mediaBox) || mediaBox.length !== 4) {
obj = LETTER_SIZE_MEDIABOX; return shadow(this, 'mediaBox', LETTER_SIZE_MEDIABOX);
} }
return shadow(this, 'mediaBox', obj); return shadow(this, 'mediaBox', mediaBox);
},
get cropBox() {
var cropBox = this.getInheritedPageProp('CropBox', true);
if (!isArray(cropBox) || cropBox.length !== 4) {
return shadow(this, 'cropBox', this.mediaBox);
}
return shadow(this, 'cropBox', cropBox);
}, },
get userUnit() { get userUnit() {
var obj = this.getPageProp('UserUnit'); var obj = this.getPageProp('UserUnit');
@ -48542,16 +48550,12 @@
return shadow(this, 'userUnit', obj); return shadow(this, 'userUnit', obj);
}, },
get view() { get view() {
var mediaBox = this.mediaBox; var mediaBox = this.mediaBox, cropBox = this.cropBox;
var cropBox = this.getInheritedPageProp('CropBox'); if (mediaBox === cropBox) {
if (!isArray(cropBox) || cropBox.length !== 4) {
return shadow(this, 'view', mediaBox);
}
cropBox = Util.intersect(cropBox, mediaBox);
if (!cropBox) {
return shadow(this, 'view', mediaBox); return shadow(this, 'view', mediaBox);
} }
return shadow(this, 'view', cropBox); var intersection = Util.intersect(cropBox, mediaBox);
return shadow(this, 'view', intersection || mediaBox);
}, },
get rotate() { get rotate() {
var rotate = this.getInheritedPageProp('Rotate') || 0; var rotate = this.getInheritedPageProp('Rotate') || 0;

26
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.6.374", "version": "1.6.377",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

Loading…
Cancel
Save