1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #2262 from waddlesplash/master

Support 'GoToR'-type links
This commit is contained in:
Yury Delendik 2012-10-16 07:16:29 -07:00
commit 0bc5216601

View file

@ -306,6 +306,15 @@ var Page = (function PageClosure() {
case 'GoTo':
item.dest = a.get('D');
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:
TODO('unrecognized link type: ' + a.get('S').name);
}