1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Adds cmyk jpg support. Treats the cmyk jpg as a regular stream.

This commit is contained in:
Brendan Dahl 2011-11-08 08:48:10 -08:00
parent 234ec25351
commit 9bb2b881b0
8 changed files with 47 additions and 18 deletions

View file

@ -179,7 +179,7 @@ var PartialEvaluator = (function partialEvaluator() {
var w = dict.get('Width', 'W');
var h = dict.get('Height', 'H');
if (image instanceof JpegStream) {
if (image instanceof JpegStream && image.isNative) {
var objId = 'img_' + uniquePrefix + (++self.objIdCounter);
handler.send('obj', [objId, 'JpegStream', image.getIR()]);