]> git.parisson.com Git - pdf.js.git/commitdiff
Document outline item link (for an-open-web)
authornotmasteryet <async.processingjs@yahoo.com>
Mon, 22 Aug 2011 02:16:17 +0000 (21:16 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Mon, 22 Aug 2011 02:16:17 +0000 (21:16 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index 0d44822dd229f1f5c20b193bb8e8a1cf7c889c4c..185db1f5d41b5c7c98797b31e06a3a3eade7fc3c 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -3455,8 +3455,11 @@ var Catalog = (function() {
             var dest = outlineDict.get('A');
             if (dest)
               dest = this.xref.fetchIfRef(dest).get('D');
-            else if (outlineDict.has('Dest'))
-              dest = outlineDict.get('Dest').name;
+            else if (outlineDict.has('Dest')) {
+              dest = outlineDict.get('Dest');
+              if (IsName(dest))
+                dest = dest.name;
+            }
 
             var outlineItem = {
               dest: dest,