From a2692bbb89ff61e0be610ee5a474f250f0f44b13 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Thu, 20 Oct 2011 18:52:04 +0200 Subject: [PATCH 1/2] Do not stop rendering on filter JPXdecode --- pdf.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdf.js b/pdf.js index 378c17580..1488cd954 100644 --- a/pdf.js +++ b/pdf.js @@ -2959,6 +2959,8 @@ var Parser = (function parserParser() { return new AsciiHexStream(stream); } else if (name == 'CCITTFaxDecode' || name == 'CCF') { return new CCITTFaxStream(stream, params); + } else if (name == 'JPXDecode') { + warn('filter "' + name + '" not supported yet'); } else { error('filter "' + name + '" not supported yet'); } From 440e3c263fae3201a22673fa02d5011c99735a01 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Mon, 24 Oct 2011 10:33:23 +0200 Subject: [PATCH 2/2] TODO's all unknown filters --- pdf.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pdf.js b/pdf.js index 1488cd954..864a18384 100644 --- a/pdf.js +++ b/pdf.js @@ -2959,10 +2959,8 @@ var Parser = (function parserParser() { return new AsciiHexStream(stream); } else if (name == 'CCITTFaxDecode' || name == 'CCF') { return new CCITTFaxStream(stream, params); - } else if (name == 'JPXDecode') { - warn('filter "' + name + '" not supported yet'); } else { - error('filter "' + name + '" not supported yet'); + TODO('filter "' + name + '" not supported yet'); } return stream; }