Browse Source

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.
Simon Tatham 12 years ago
parent
commit
ff4f7f1028
  1. 2
      src/core.js

2
src/core.js

@ -261,7 +261,7 @@ var Page = (function PageClosure() {
var items = []; var items = [];
for (i = 0; i < n; ++i) { for (i = 0; i < n; ++i) {
var annotationRef = annotations[i]; var annotationRef = annotations[i];
var annotation = xref.fetch(annotationRef); var annotation = xref.fetchIfRef(annotationRef);
if (!isDict(annotation)) if (!isDict(annotation))
continue; continue;
var subtype = annotation.get('Subtype'); var subtype = annotation.get('Subtype');

Loading…
Cancel
Save