|
|
|
@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
|
|
|
|
|
typeof global !== 'undefined' ? global : this).PDFJS = {}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.3.152'; |
|
|
|
|
PDFJS.build = '96d8b8f'; |
|
|
|
|
PDFJS.version = '1.3.154'; |
|
|
|
|
PDFJS.build = '4399d01'; |
|
|
|
|
|
|
|
|
|
(function pdfjsWrapper() { |
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
@ -9972,6 +9972,16 @@ var XRefParseException = (function XRefParseExceptionClosure() {
@@ -9972,6 +9972,16 @@ var XRefParseException = (function XRefParseExceptionClosure() {
|
|
|
|
|
return XRefParseException; |
|
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
var NullCharactersRegExp = /\x00/g; |
|
|
|
|
|
|
|
|
|
function removeNullCharacters(str) { |
|
|
|
|
if (typeof str !== 'string') { |
|
|
|
|
warn('The argument for removeNullCharacters must be a string.'); |
|
|
|
|
return str; |
|
|
|
|
} |
|
|
|
|
return str.replace(NullCharactersRegExp, ''); |
|
|
|
|
} |
|
|
|
|
PDFJS.removeNullCharacters = removeNullCharacters; |
|
|
|
|
|
|
|
|
|
function bytesToString(bytes) { |
|
|
|
|
assert(bytes !== null && typeof bytes === 'object' && |
|
|
|
@ -11150,6 +11160,7 @@ exports.log2 = log2;
@@ -11150,6 +11160,7 @@ exports.log2 = log2;
|
|
|
|
|
exports.readInt8 = readInt8; |
|
|
|
|
exports.readUint16 = readUint16; |
|
|
|
|
exports.readUint32 = readUint32; |
|
|
|
|
exports.removeNullCharacters = removeNullCharacters; |
|
|
|
|
exports.shadow = shadow; |
|
|
|
|
exports.string32 = string32; |
|
|
|
|
exports.stringToBytes = stringToBytes; |
|
|
|
@ -15527,6 +15538,7 @@ var AnnotationType = sharedUtil.AnnotationType;
@@ -15527,6 +15538,7 @@ var AnnotationType = sharedUtil.AnnotationType;
|
|
|
|
|
var Util = sharedUtil.Util; |
|
|
|
|
var isExternalLinkTargetSet = sharedUtil.isExternalLinkTargetSet; |
|
|
|
|
var LinkTargetStringMap = sharedUtil.LinkTargetStringMap; |
|
|
|
|
var removeNullCharacters = sharedUtil.removeNullCharacters; |
|
|
|
|
var warn = sharedUtil.warn; |
|
|
|
|
var CustomStyle = displayDOMUtils.CustomStyle; |
|
|
|
|
|
|
|
|
@ -15726,7 +15738,8 @@ var LinkAnnotationElement = (function LinkAnnotationElementClosure() {
@@ -15726,7 +15738,8 @@ var LinkAnnotationElement = (function LinkAnnotationElementClosure() {
|
|
|
|
|
this.container.className = 'linkAnnotation'; |
|
|
|
|
|
|
|
|
|
var link = document.createElement('a'); |
|
|
|
|
link.href = link.title = this.data.url || ''; |
|
|
|
|
link.href = link.title = (this.data.url ? |
|
|
|
|
removeNullCharacters(this.data.url) : ''); |
|
|
|
|
|
|
|
|
|
if (this.data.url && isExternalLinkTargetSet()) { |
|
|
|
|
link.target = LinkTargetStringMap[PDFJS.externalLinkTarget]; |
|
|
|
|