diff --git a/pdf.js b/pdf.js index 70d828fc3..3cd2d80ba 100644 --- a/pdf.js +++ b/pdf.js @@ -230,9 +230,8 @@ var DecodeStream = (function() { }, makeSubStream: function decodestream_makeSubstream(start, length, dict) { var end = start + length; - while (this.bufferLength <= end && !this.eof) { + while (this.bufferLength <= end && !this.eof) this.readBlock(); - } return new Stream(this.buffer, start, length, dict); }, skip: function decodestream_skip(n) {