]> git.parisson.com Git - pdf.js.git/commitdiff
Show error on JBIG2 images.
authorBrendan Dahl <brendan.dahl@gmail.com>
Mon, 16 Apr 2012 18:34:00 +0000 (11:34 -0700)
committerBrendan Dahl <brendan.dahl@gmail.com>
Mon, 16 Apr 2012 18:34:00 +0000 (11:34 -0700)
src/parser.js

index 1c50d0f5f95ac0bc06969644fb478a29e90c45c2..0697fc0d505a2653d7078837bd088a8eb8615fd7 100644 (file)
@@ -252,6 +252,9 @@ var Parser = (function ParserClosure() {
       if (name == 'RunLengthDecode') {
         return new RunLengthStream(stream);
       }
+      if (name == 'JBIG2Decode') {
+        error('JBIG2 image format is not currently supprted.');
+      }
       warn('filter "' + name + '" not supported yet');
       return stream;
     }