|
|
@ -562,7 +562,10 @@ var PDFImage = (function PDFImageClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
return imgData; |
|
|
|
return imgData; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.image instanceof JpegStream && !this.smask && !this.mask) { |
|
|
|
if (this.image instanceof JpegStream && !this.smask && !this.mask && |
|
|
|
|
|
|
|
(this.colorSpace.name === 'DeviceGray' || |
|
|
|
|
|
|
|
this.colorSpace.name === 'DeviceRGB' || |
|
|
|
|
|
|
|
this.colorSpace.name === 'DeviceCMYK')) { |
|
|
|
imgData.kind = ImageKind.RGB_24BPP; |
|
|
|
imgData.kind = ImageKind.RGB_24BPP; |
|
|
|
imgData.data = this.getImageBytes(originalHeight * rowBytes, |
|
|
|
imgData.data = this.getImageBytes(originalHeight * rowBytes, |
|
|
|
drawWidth, drawHeight, true); |
|
|
|
drawWidth, drawHeight, true); |
|
|
|