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.
This commit is contained in:
parent
a9d84f1e03
commit
ff4f7f1028
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user