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; } } }