Reverting error(); warn() instead of TODO()

This commit is contained in:
Artur Adib 2011-12-12 14:33:26 -05:00
parent de33e44b09
commit 2113e0615e
2 changed files with 1 additions and 9 deletions

View File

@ -198,10 +198,6 @@ var PDFImage = (function pdfImage() {
var opacityPos = 0; var opacityPos = 0;
var length = width * height * 4; 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) { for (var i = 0; i < length; i += 4) {
buffer[i] = comps[compsPos++]; buffer[i] = comps[compsPos++];
buffer[i + 1] = comps[compsPos++]; buffer[i + 1] = comps[compsPos++];
@ -226,10 +222,6 @@ var PDFImage = (function pdfImage() {
var comps = this.getComponents(imgArray); var comps = this.getComponents(imgArray);
var length = width * height; 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) for (var i = 0; i < length; ++i)
buffer[i] = comps[i]; buffer[i] = comps[i];
} }

View File

@ -249,7 +249,7 @@ var Parser = (function parserParser() {
if (name == 'CCITTFaxDecode' || name == 'CCF') { if (name == 'CCITTFaxDecode' || name == 'CCF') {
return new CCITTFaxStream(stream, params); return new CCITTFaxStream(stream, params);
} }
TODO('filter "' + name + '" not supported yet'); warn('filter "' + name + '" not supported yet');
return stream; return stream;
} }
}; };