From: notmasteryet Date: Wed, 14 Sep 2011 03:03:46 +0000 (-0500) Subject: Fixing truncated streams with multiple filters X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=361d53e1a9528d3658196733eaada25bad119d3e;p=pdf.js.git Fixing truncated streams with multiple filters --- diff --git a/pdf.js b/pdf.js index f4cbcbf..1effd18 100644 --- a/pdf.js +++ b/pdf.js @@ -2892,6 +2892,8 @@ var Parser = (function() { if (IsArray(paramsArray) && (i in paramsArray)) params = paramsArray[i]; stream = this.makeFilter(stream, filter.name, length, params); + // after the first stream the length variable is invalid + length = null; } } }