From 361d53e1a9528d3658196733eaada25bad119d3e Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Tue, 13 Sep 2011 22:03:46 -0500 Subject: [PATCH] Fixing truncated streams with multiple filters --- pdf.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdf.js b/pdf.js index f4cbcbfec..1effd1826 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; } } }