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

Initial JBIG2 code

This commit is contained in:
Yury Delendik 2012-06-16 15:15:42 -05:00
parent 2aae4fd001
commit 95bc99f698
5 changed files with 561 additions and 1 deletions

View file

@ -253,7 +253,8 @@ var Parser = (function ParserClosure() {
return new RunLengthStream(stream);
}
if (name == 'JBIG2Decode') {
error('JBIG2 image format is not currently supprted.');
var bytes = stream.getBytes(length);
return new Jbig2Stream(bytes, stream.dict);
}
warn('filter "' + name + '" not supported yet');
return stream;