Merge pull request #20379 from calixteman/fix_after_20373
Fix stream use when getting the text (follow-up of #20373)
This commit is contained in:
commit
b87c999815
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user