Reverting error(); warn() instead of TODO()
This commit is contained in:
parent
de33e44b09
commit
2113e0615e
@ -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];
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user