1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Add another way to detect cmyk images.

This commit is contained in:
Brendan Dahl 2011-11-08 13:53:56 -08:00
parent 1869888838
commit 8d52a1e92a
3 changed files with 27 additions and 6 deletions

View file

@ -236,7 +236,7 @@ var Parser = (function parserParser() {
return new LZWStream(stream, earlyChange);
} else if (name == 'DCTDecode' || name == 'DCT') {
var bytes = stream.getBytes(length);
return new JpegStream(bytes, stream.dict);
return new JpegStream(bytes, stream.dict, this.xref);
} else if (name == 'ASCII85Decode' || name == 'A85') {
return new Ascii85Stream(stream);
} else if (name == 'ASCIIHexDecode' || name == 'AHx') {