diff --git a/src/core/evaluator.js b/src/core/evaluator.js index 00f6f6566f5c5..0c776882f301a 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -58,6 +58,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { } var page = image.bytes; + image.stream.reset(); var data; if (globals) { @@ -74,6 +75,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { var jpxImageRequest = function() { var ary = image.bytes; + image.stream.reset(); var cs = image.dict.get('ColorSpace', 'CS'); return { action: 'DecodeJpxStream',