From ff4f7f1028e4dcae34dd3ae3e36606ac29cc14aa Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 27 Feb 2013 21:07:40 +0000 Subject: [PATCH] Use fetchIfRef to get annotation dictionaries. Fixes failure to display annotations in PDFs where the annotation dicts are inlined in the page objects rather than in subobjects. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 7a883195a..df9d13cfe 100644 --- a/src/core.js +++ b/src/core.js @@ -261,7 +261,7 @@ var Page = (function PageClosure() { var items = []; for (i = 0; i < n; ++i) { var annotationRef = annotations[i]; - var annotation = xref.fetch(annotationRef); + var annotation = xref.fetchIfRef(annotationRef); if (!isDict(annotation)) continue; var subtype = annotation.get('Subtype');