1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Implement Decode entry in Indexed images

This commit is contained in:
Jani Pehkonen 2019-01-22 19:59:36 +02:00
parent f26129de26
commit 26121177ab
7 changed files with 37 additions and 14 deletions

View file

@ -251,6 +251,7 @@
!bug878026.pdf
!issue1045.pdf
!issue5010.pdf
!issue10339_reduced.pdf
!issue4934.pdf
!issue4650.pdf
!issue6721_reduced.pdf

Binary file not shown.

View file

@ -2643,6 +2643,12 @@
"link": false,
"type": "eq"
},
{ "id": "issue10339",
"file": "pdfs/issue10339_reduced.pdf",
"md5": "e34ef74f188080f8194c7d8e8b68c562",
"rounds": 1,
"type": "eq"
},
{ "id": "issue1721",
"file": "pdfs/issue1721.pdf",
"md5": "b47177f9e5197a76ec498733ecab60e6",

View file

@ -496,7 +496,7 @@ describe('colorspace', function () {
expect(colorSpace.getRgb([2], 0)).toEqual(
new Uint8ClampedArray([255, 109, 70]));
expect(colorSpace.isPassthrough(8)).toBeFalsy();
expect(colorSpace.isDefaultDecode([0, 1])).toBeTruthy();
expect(colorSpace.isDefaultDecode([0, 1], 1)).toBeTruthy();
expect(testDest).toEqual(expectedDest);
});
});