1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Implement NullStream, fix #1832

This commit is contained in:
Saebekassebil 2012-10-22 17:53:15 +02:00
parent ece9cd15d2
commit 58d6974bf5
2 changed files with 12 additions and 0 deletions

View file

@ -230,6 +230,9 @@ var Parser = (function ParserClosure() {
return stream;
},
makeFilter: function Parser_makeFilter(stream, name, length, params) {
if (stream.dict.get('Length') === 0) {
return new NullStream(stream);
}
if (name == 'FlateDecode' || name == 'Fl') {
if (params) {
return new PredictorStream(new FlateStream(stream), params);