mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
For /Filter entries containing Name
s, ignore the /DecodeParms entry if it contains an Array (issue 8895)
This commit is contained in:
parent
d0d7046129
commit
eece66fa3e
4 changed files with 14 additions and 3 deletions
|
@ -528,7 +528,8 @@ var Parser = (function ParserClosure() {
|
|||
var params = dict.get('DecodeParms', 'DP');
|
||||
if (isName(filter)) {
|
||||
if (Array.isArray(params)) {
|
||||
params = this.xref.fetchIfRef(params[0]);
|
||||
warn('/DecodeParms should not contain an Array, ' +
|
||||
'when /Filter contains a Name.');
|
||||
}
|
||||
return this.makeFilter(stream, filter.name, length, params);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue