|
|
@ -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] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|