From: Brendan Dahl Date: Mon, 16 Apr 2012 18:34:00 +0000 (-0700) Subject: Show error on JBIG2 images. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4616ee0ee8f392c3bdd98eea8835fc5acc966c0d;p=pdf.js.git Show error on JBIG2 images. --- diff --git a/src/parser.js b/src/parser.js index 1c50d0f..0697fc0 100644 --- a/src/parser.js +++ b/src/parser.js @@ -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; }