Merge pull request #12922 from Snuffleupagus/getTextContent-globalImageCache

Ignore globally cached images in `PartialEvaluator.getTextContent` (PR 11930 follow-up)
This commit is contained in:
Tim van der Meij 2021-01-28 23:44:10 +01:00 committed by GitHub
commit e4e92d10e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View file

@ -2515,6 +2515,15 @@ class PartialEvaluator {
return;
}
const globalImage = self.globalImageCache.getData(
xobj,
self.pageIndex
);
if (globalImage) {
resolveXObject();
return;
}
xobj = xref.fetch(xobj);
}