]> git.parisson.com Git - pdf.js.git/commitdiff
Fixing truncated streams with multiple filters
authornotmasteryet <async.processingjs@yahoo.com>
Wed, 14 Sep 2011 03:03:46 +0000 (22:03 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Wed, 14 Sep 2011 03:03:46 +0000 (22:03 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index f4cbcbfec37a8e0d8d79592d97cfb56b80049d01..1effd18267d548a81f0ee7061e5bd6923d3abf42 100644 (file)
--- 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;
           }
         }
       }