Support 'GoToR' links.

Fix tabs.

Make changes as per @yurydelendik's request.

Forgot to remove 'TODO' comment.

Support 'GoToR'-type links.
This commit is contained in:
waddlesplash 2012-10-16 09:54:08 -04:00
parent 755d047388
commit c111154979

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);
}