1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 23:58:07 +02:00

Remove the special handling, used when creating Indexed ColorSpaces, for the case where the lookup-data is a Stream

This special-case was added in PR 1992, however it became unnecessary with the changes in PR 4824 since all of the ColorSpace parsing is now done on the worker-thread (with only RGB-data being sent to the main-thread).
This commit is contained in:
Jonas Jenwald 2020-07-10 16:12:20 +02:00
parent ea6a0e4435
commit d18cf47419
2 changed files with 13 additions and 19 deletions

View file

@ -679,11 +679,13 @@ describe("colorspace", function () {
describe("IndexedCS", function () {
it("should handle the case when cs is an array", function () {
// prettier-ignore
const lookup = new Uint8Array([
23, 155, 35,
147, 69, 93,
255, 109, 70
]);
const lookup = new Stream(
new Uint8Array([
23, 155, 35,
147, 69, 93,
255, 109, 70
])
);
const cs = [Name.get("Indexed"), Name.get("DeviceRGB"), 2, lookup];
const xref = new XRefMock([
{