Skip to content

Commit 823cca4

Browse files
committed
Merge pull request mozilla#2466 from saebekassebil/filespec
Support filespec dictionary in annotations
2 parents 1097489 + 4efab13 commit 823cca4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,12 @@ var Page = (function PageClosure() {
286286
break;
287287
case 'GoToR':
288288
var url = a.get('F');
289+
if (isDict(url)) {
290+
// We assume that the 'url' is a Filspec dictionary
291+
// and fetch the url without checking any further
292+
url = url.get('F') || '';
293+
}
294+
289295
// TODO: pdf reference says that GoToR
290296
// can also have 'NewWindow' attribute
291297
if (!isValidUrl(url))

0 commit comments

Comments
 (0)