Merge pull request #2262 from waddlesplash/master
Support 'GoToR'-type links
This commit is contained in:
commit
0bc5216601
@ -306,6 +306,15 @@ var Page = (function PageClosure() {
|
|||||||
case 'GoTo':
|
case 'GoTo':
|
||||||
item.dest = a.get('D');
|
item.dest = a.get('D');
|
||||||
break;
|
break;
|
||||||
|
case 'GoToR':
|
||||||
|
var url = a.get('F');
|
||||||
|
// TODO: pdf reference says that GoToR
|
||||||
|
// can also have 'NewWindow' attribute
|
||||||
|
if (!isValidUrl(url))
|
||||||
|
url = '';
|
||||||
|
item.url = url;
|
||||||
|
item.dest = a.get('D');
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
TODO('unrecognized link type: ' + a.get('S').name);
|
TODO('unrecognized link type: ' + a.get('S').name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user