From 4efab13c589516900a6436e4c8d9a351b14596a9 Mon Sep 17 00:00:00 2001 From: Jakob Miland Date: Sat, 15 Dec 2012 00:36:53 +0100 Subject: [PATCH] Support Filespec dictionary in annotations --- src/core.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core.js b/src/core.js index c2a829953..2e6991caa 100644 --- a/src/core.js +++ b/src/core.js @@ -286,6 +286,12 @@ var Page = (function PageClosure() { break; case 'GoToR': 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 // can also have 'NewWindow' attribute if (!isValidUrl(url))