1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fetches params in makeFilter

This commit is contained in:
Yury Delendik 2014-09-09 08:29:31 -05:00
parent b3be74d81c
commit aa8d3d98f8
4 changed files with 12 additions and 1 deletions

View file

@ -346,6 +346,9 @@ var Parser = (function ParserClosure() {
return new NullStream(stream);
}
try {
if (params) {
params = this.fetchIfRef(params);
}
var xrefStreamStats = this.xref.stats.streamTypes;
if (name === 'FlateDecode' || name === 'Fl') {
xrefStreamStats[StreamType.FLATE] = true;
@ -386,7 +389,6 @@ var Parser = (function ParserClosure() {
}
if (name === 'CCITTFaxDecode' || name === 'CCF') {
xrefStreamStats[StreamType.CCF] = true;
params = this.fetchIfRef(params);
return new CCITTFaxStream(stream, maybeLength, params);
}
if (name === 'RunLengthDecode' || name === 'RL') {