From: notmasteryet Date: Thu, 25 Aug 2011 23:54:28 +0000 (-0500) Subject: bookmark fix for intelasa.pdf X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=655564c2d9c53031f34a31f8b850888a168f0f9b;p=pdf.js.git bookmark fix for intelasa.pdf --- diff --git a/pdf.js b/pdf.js index a62973a..931b2cd 100644 --- 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); }