From 2fbd6859f22fd84c7708eebc9f18c26f3489bfd7 Mon Sep 17 00:00:00 2001 From: sbarman Date: Mon, 20 Jun 2011 20:19:13 -0700 Subject: [PATCH] Bug fix when an array of filters is passed in --- pdf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index 40044300c..00e504a6c 100644 --- a/pdf.js +++ b/pdf.js @@ -1229,7 +1229,8 @@ var Parser = (function() { if (IsArray(filter)) { var filterArray = filter; var paramsArray = params; - for (filter in filterArray) { + for (var i = 0, ii = filter.length; i < ii; ++i) { + filter = filter[i]; if (!IsName(filter)) error("Bad filter name"); else {