diff --git a/src/parser.js b/src/parser.js index a0f6c295e..72747e524 100644 --- a/src/parser.js +++ b/src/parser.js @@ -208,8 +208,9 @@ var Parser = (function ParserClosure() { stream.pos = pos + length; this.shift(); // '>>' this.shift(); // 'stream' - if (!isCmd(this.buf1, 'endstream')) - error('Missing endstream'); + if (!isCmd(this.buf1, 'endstream')) { + warn('Missing endstream'); + } this.shift(); stream = stream.makeSubStream(pos, length, dict);