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:
parent
ece9cd15d2
commit
58d6974bf5
2 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue