mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Fixing getting of the "Filter" attribute
This commit is contained in:
parent
612151d1bc
commit
8c727860dd
1 changed files with 3 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue