]> git.parisson.com Git - pdf.js.git/commitdiff
bookmark fix for intelasa.pdf
authornotmasteryet <async.processingjs@yahoo.com>
Thu, 25 Aug 2011 23:54:28 +0000 (18:54 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Thu, 25 Aug 2011 23:54:28 +0000 (18:54 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index a62973ac3cbeaf4b346b53a5da69c6afe315e482..931b2cd029aed91e82a9b6a03ec8afd851d92b0f 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -3418,7 +3418,8 @@ var Page = (function() {
           }
         } else if (annotation.has('Dest')) {
           // simple destination link
-          link.dest = annotation.get('Dest').name;
+          var dest = annotation.get('Dest');
+          link.dest = IsName(dest) ? dest.name : dest;
         }
         links.push(link);
       }