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 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.6.336", "version": "1.6.338",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

21
build/pdf.combined.js

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

7
build/pdf.js

@ -23,8 +23,8 @@
} }
}(this, function (exports) { }(this, function (exports) {
'use strict'; 'use strict';
var pdfjsVersion = '1.6.336'; var pdfjsVersion = '1.6.338';
var pdfjsBuild = '9d8fb02'; var pdfjsBuild = '9ff1998';
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() {
@ -7859,6 +7859,9 @@
get ref() { get ref() {
return this.pageInfo.ref; return this.pageInfo.ref;
}, },
get userUnit() {
return this.pageInfo.userUnit;
},
get view() { get view() {
return this.pageInfo.view; return this.pageInfo.view;
}, },

18
build/pdf.worker.js vendored

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

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.6.336", "version": "1.6.338",
"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