Support Filespec dictionary in annotations
This commit is contained in:
parent
109748993d
commit
4efab13c58
1 changed files with 6 additions and 0 deletions
|
@ -286,6 +286,12 @@ var Page = (function PageClosure() {
|
||||||
break;
|
break;
|
||||||
case 'GoToR':
|
case 'GoToR':
|
||||||
var url = a.get('F');
|
var url = a.get('F');
|
||||||
|
if (isDict(url)) {
|
||||||
|
// We assume that the 'url' is a Filspec dictionary
|
||||||
|
// and fetch the url without checking any further
|
||||||
|
url = url.get('F') || '';
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: pdf reference says that GoToR
|
// TODO: pdf reference says that GoToR
|
||||||
// can also have 'NewWindow' attribute
|
// can also have 'NewWindow' attribute
|
||||||
if (!isValidUrl(url))
|
if (!isValidUrl(url))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue