From: notmasteryet Date: Wed, 15 Feb 2012 00:38:56 +0000 (-0600) Subject: Fixing getting of the "Filter" attribute X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8c727860ddf8d0684660a89bc8166e91918da9ac;p=pdf.js.git Fixing getting of the "Filter" attribute --- diff --git a/src/parser.js b/src/parser.js index 4a884e0..35ec637 100644 --- a/src/parser.js +++ b/src/parser.js @@ -196,8 +196,9 @@ var Parser = (function ParserClosure() { return stream; }, filter: function parserFilter(stream, dict, length) { - var filter = dict.get('Filter', 'F'); - var params = dict.get('DecodeParms', 'DP'); + var xref = this.xref; + var filter = xref.fetchIfRef(dict.get('Filter', 'F')); + var params = xref.fetchIfRef(dict.get('DecodeParms', 'DP')); if (isName(filter)) return this.makeFilter(stream, filter.name, length, params); if (isArray(filter)) {