Browse Source

PDF.js version 1.6.338 - See mozilla/pdf.js@9ff19985c0a43e186fe2fae7f1d87bb310c89780

master v1.6.338
Pdf Bot 8 years ago
parent
commit
eeb69c3472
  1. 2
      bower.json
  2. 21
      build/pdf.combined.js
  3. 7
      build/pdf.js
  4. 18
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

21
build/pdf.combined.js

@ -23,8 +23,8 @@ @@ -23,8 +23,8 @@
}
}(this, function (exports) {
'use strict';
var pdfjsVersion = '1.6.336';
var pdfjsBuild = '9d8fb02';
var pdfjsVersion = '1.6.338';
var pdfjsBuild = '9ff1998';
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
var pdfjsLibs = {};
(function pdfjsWrapper() {
@ -46677,6 +46677,9 @@ @@ -46677,6 +46677,9 @@
get ref() {
return this.pageInfo.ref;
},
get userUnit() {
return this.pageInfo.userUnit;
},
get view() {
return this.pageInfo.view;
},
@ -55081,6 +55084,7 @@ @@ -55081,6 +55084,7 @@
var info = sharedUtil.info;
var isArray = sharedUtil.isArray;
var isArrayBuffer = sharedUtil.isArrayBuffer;
var isNum = sharedUtil.isNum;
var isString = sharedUtil.isString;
var shadow = sharedUtil.shadow;
var stringToBytes = sharedUtil.stringToBytes;
@ -55104,6 +55108,7 @@ @@ -55104,6 +55108,7 @@
var Annotation = coreAnnotation.Annotation;
var AnnotationFactory = coreAnnotation.AnnotationFactory;
var Page = function PageClosure() {
var DEFAULT_USER_UNIT = 1.0;
var LETTER_SIZE_MEDIABOX = [
0,
0,
@ -55164,6 +55169,13 @@ @@ -55164,6 +55169,13 @@
}
return shadow(this, 'mediaBox', obj);
},
get userUnit() {
var obj = this.getPageProp('UserUnit');
if (!isNum(obj) || obj <= 0) {
obj = DEFAULT_USER_UNIT;
}
return shadow(this, 'userUnit', obj);
},
get view() {
var mediaBox = this.mediaBox;
var cropBox = this.getInheritedPageProp('CropBox');
@ -56247,16 +56259,19 @@ @@ -56247,16 +56259,19 @@
return pdfManager.getPage(data.pageIndex).then(function (page) {
var rotatePromise = pdfManager.ensure(page, 'rotate');
var refPromise = pdfManager.ensure(page, 'ref');
var userUnitPromise = pdfManager.ensure(page, 'userUnit');
var viewPromise = pdfManager.ensure(page, 'view');
return Promise.all([
rotatePromise,
refPromise,
userUnitPromise,
viewPromise
]).then(function (results) {
return {
rotate: results[0],
ref: results[1],
view: results[2]
userUnit: results[2],
view: results[3]
};
});
});

7
build/pdf.js

@ -23,8 +23,8 @@ @@ -23,8 +23,8 @@
}
}(this, function (exports) {
'use strict';
var pdfjsVersion = '1.6.336';
var pdfjsBuild = '9d8fb02';
var pdfjsVersion = '1.6.338';
var pdfjsBuild = '9ff1998';
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
var pdfjsLibs = {};
(function pdfjsWrapper() {
@ -7859,6 +7859,9 @@ @@ -7859,6 +7859,9 @@
get ref() {
return this.pageInfo.ref;
},
get userUnit() {
return this.pageInfo.userUnit;
},
get view() {
return this.pageInfo.view;
},

18
build/pdf.worker.js vendored

@ -23,8 +23,8 @@ @@ -23,8 +23,8 @@
}
}(this, function (exports) {
'use strict';
var pdfjsVersion = '1.6.336';
var pdfjsBuild = '9d8fb02';
var pdfjsVersion = '1.6.338';
var pdfjsBuild = '9ff1998';
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
var pdfjsLibs = {};
(function pdfjsWrapper() {
@ -48467,6 +48467,7 @@ @@ -48467,6 +48467,7 @@
var info = sharedUtil.info;
var isArray = sharedUtil.isArray;
var isArrayBuffer = sharedUtil.isArrayBuffer;
var isNum = sharedUtil.isNum;
var isString = sharedUtil.isString;
var shadow = sharedUtil.shadow;
var stringToBytes = sharedUtil.stringToBytes;
@ -48490,6 +48491,7 @@ @@ -48490,6 +48491,7 @@
var Annotation = coreAnnotation.Annotation;
var AnnotationFactory = coreAnnotation.AnnotationFactory;
var Page = function PageClosure() {
var DEFAULT_USER_UNIT = 1.0;
var LETTER_SIZE_MEDIABOX = [
0,
0,
@ -48550,6 +48552,13 @@ @@ -48550,6 +48552,13 @@
}
return shadow(this, 'mediaBox', obj);
},
get userUnit() {
var obj = this.getPageProp('UserUnit');
if (!isNum(obj) || obj <= 0) {
obj = DEFAULT_USER_UNIT;
}
return shadow(this, 'userUnit', obj);
},
get view() {
var mediaBox = this.mediaBox;
var cropBox = this.getInheritedPageProp('CropBox');
@ -49633,16 +49642,19 @@ @@ -49633,16 +49642,19 @@
return pdfManager.getPage(data.pageIndex).then(function (page) {
var rotatePromise = pdfManager.ensure(page, 'rotate');
var refPromise = pdfManager.ensure(page, 'ref');
var userUnitPromise = pdfManager.ensure(page, 'userUnit');
var viewPromise = pdfManager.ensure(page, 'view');
return Promise.all([
rotatePromise,
refPromise,
userUnitPromise,
viewPromise
]).then(function (results) {
return {
rotate: results[0],
ref: results[1],
view: results[2]
userUnit: results[2],
view: results[3]
};
});
});

2
package.json

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

Loading…
Cancel
Save