From 2113e0615e835862d800b88bacccbdbf21c72c01 Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Mon, 12 Dec 2011 14:33:26 -0500 Subject: [PATCH] Reverting error(); warn() instead of TODO() --- src/image.js | 8 -------- src/parser.js | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/image.js b/src/image.js index a691bcd8c..217e081c2 100644 --- a/src/image.js +++ b/src/image.js @@ -198,10 +198,6 @@ var PDFImage = (function pdfImage() { var opacityPos = 0; var length = width * height * 4; - // Is there a one-to-one correspondence between pixels in the loop below? - if (length !== 4 * comps.length / 3) - error('Number of image pixels mismatch (RGB)'); - for (var i = 0; i < length; i += 4) { buffer[i] = comps[compsPos++]; buffer[i + 1] = comps[compsPos++]; @@ -226,10 +222,6 @@ var PDFImage = (function pdfImage() { var comps = this.getComponents(imgArray); var length = width * height; - // Is there a one-to-one correspondence between pixels in the loop below? - if (length !== comps.length) - error('Number of image pixels mismatch (Gray)'); - for (var i = 0; i < length; ++i) buffer[i] = comps[i]; } diff --git a/src/parser.js b/src/parser.js index 036191677..c307c9276 100644 --- a/src/parser.js +++ b/src/parser.js @@ -249,7 +249,7 @@ var Parser = (function parserParser() { if (name == 'CCITTFaxDecode' || name == 'CCF') { return new CCITTFaxStream(stream, params); } - TODO('filter "' + name + '" not supported yet'); + warn('filter "' + name + '" not supported yet'); return stream; } };