mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Merge pull request #12922 from Snuffleupagus/getTextContent-globalImageCache
Ignore globally cached images in `PartialEvaluator.getTextContent` (PR 11930 follow-up)
This commit is contained in:
commit
e4e92d10e8
2 changed files with 12 additions and 2 deletions
|
@ -2515,6 +2515,15 @@ class PartialEvaluator {
|
|||
return;
|
||||
}
|
||||
|
||||
const globalImage = self.globalImageCache.getData(
|
||||
xobj,
|
||||
self.pageIndex
|
||||
);
|
||||
if (globalImage) {
|
||||
resolveXObject();
|
||||
return;
|
||||
}
|
||||
|
||||
xobj = xref.fetch(xobj);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue