From 199b3d04dfd12a863bafb132572c915d11e5eb46 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Sat, 18 Oct 2025 22:58:27 +0200 Subject: [PATCH] Fix stream use when getting the text (follow-up of #20373) --- src/core/evaluator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/evaluator.js b/src/core/evaluator.js index d38fab6b0..6df2aaf28 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -4284,7 +4284,7 @@ class PartialEvaluator { hash.update(`${firstChar}-${lastChar}`); // Fixes issue10665_reduced.pdf if (toUnicode instanceof BaseStream) { - const stream = toUnicode.str || toUnicode; + const stream = toUnicode.stream || toUnicode; const uint8array = stream.buffer ? new Uint8Array(stream.buffer.buffer, 0, stream.bufferLength) : new Uint8Array(