|
|
|
@ -24,8 +24,8 @@
@@ -24,8 +24,8 @@
|
|
|
|
|
}(this, function (exports) { |
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
|
'use strict'; |
|
|
|
|
var pdfjsVersion = '1.6.311'; |
|
|
|
|
var pdfjsBuild = '2f5170f'; |
|
|
|
|
var pdfjsVersion = '1.6.313'; |
|
|
|
|
var pdfjsBuild = 'c23f124'; |
|
|
|
|
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; |
|
|
|
|
var pdfjsLibs = {}; |
|
|
|
|
(function pdfjsWrapper() { |
|
|
|
@ -53891,6 +53891,29 @@
@@ -53891,6 +53891,29 @@
|
|
|
|
|
resultObj.action = namedAction.name; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case 'JavaScript': |
|
|
|
|
var jsAction = action.get('JS'), js; |
|
|
|
|
if (isStream(jsAction)) { |
|
|
|
|
js = bytesToString(jsAction.getBytes()); |
|
|
|
|
} else if (isString(jsAction)) { |
|
|
|
|
js = jsAction; |
|
|
|
|
} |
|
|
|
|
if (js) { |
|
|
|
|
// Attempt to recover valid URLs from 'JS' entries with certain
|
|
|
|
|
// white-listed formats, e.g.
|
|
|
|
|
// - window.open('http://example.com')
|
|
|
|
|
// - app.launchURL('http://example.com', true)
|
|
|
|
|
var URL_OPEN_METHODS = [ |
|
|
|
|
'app.launchURL', |
|
|
|
|
'window.open' |
|
|
|
|
]; |
|
|
|
|
var regex = new RegExp('^(?:' + URL_OPEN_METHODS.join('|') + ')' + '\\((?:\'|\")(\\S+)(?:\'|\")(?:,|\\))'); |
|
|
|
|
var jsUrl = regex.exec(stringToPDFString(js), 'i'); |
|
|
|
|
if (jsUrl && jsUrl[1]) { |
|
|
|
|
url = jsUrl[1]; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
default: |
|
|
|
|
warn('Catalog_parseDestDictionary: Unrecognized link type "' + linkType + '".'); |
|
|
|
|
break; |
|
|
|
|