Skip to content

Commit af815e4

Browse files
committed
Ensure that that we don't attempt to cache *inline* images in the GlobalImageCache (PR 11912 follow-up)
Since *inline* images, i.e. those defined inside of `/Contents` streams, are by their very definition page-specific it thus seem like a good idea to actually enforce that they won't accidentally end up in the `GlobalImageCache`.
1 parent 5879710 commit af815e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/evaluator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
605605
});
606606

607607
if (imageRef) {
608+
assert(!isInline, "Cannot cache an inline image globally.");
608609
this.globalImageCache.addPageIndex(imageRef, this.pageIndex);
609610

610611
if (cacheGlobally) {

0 commit comments

Comments
 (0)