From 655564c2d9c53031f34a31f8b850888a168f0f9b Mon Sep 17 00:00:00 2001 From: notmasteryet <async.processingjs@yahoo.com> Date: Thu, 25 Aug 2011 18:54:28 -0500 Subject: [PATCH] bookmark fix for intelasa.pdf --- pdf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index a62973ac3..931b2cd02 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); }