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:
parent
1869888838
commit
8d52a1e92a
3 changed files with 27 additions and 6 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue