diff --git a/Userland/Libraries/LibPDF/ColorSpace.cpp b/Userland/Libraries/LibPDF/ColorSpace.cpp index b2ebefa6afc..6804e968ee7 100644 --- a/Userland/Libraries/LibPDF/ColorSpace.cpp +++ b/Userland/Libraries/LibPDF/ColorSpace.cpp @@ -39,8 +39,6 @@ PDFErrorOr> ColorSpace::create(DeprecatedFlyString con return DeviceRGBColorSpace::the(); if (name == CommonNames::DeviceCMYK) return DeviceCMYKColorSpace::the(); - if (name == CommonNames::Pattern) - return Error::rendering_unsupported_error("Pattern color spaces not yet implemented"); VERIFY_NOT_REACHED(); } @@ -59,6 +57,12 @@ PDFErrorOr> ColorSpace::create(Document* document, Non if (color_space_name == CommonNames::ICCBased) return TRY(ICCBasedColorSpace::create(document, move(parameters))); + if (color_space_name == CommonNames::Indexed) + return Error::rendering_unsupported_error("Indexed color spaces not yet implemented"); + + if (color_space_name == CommonNames::Pattern) + return Error::rendering_unsupported_error("Pattern color spaces not yet implemented"); + if (color_space_name == CommonNames::Separation) return TRY(SeparationColorSpace::create(document, move(parameters))); diff --git a/Userland/Libraries/LibPDF/CommonNames.h b/Userland/Libraries/LibPDF/CommonNames.h index f0f6730f99c..12530c549e3 100644 --- a/Userland/Libraries/LibPDF/CommonNames.h +++ b/Userland/Libraries/LibPDF/CommonNames.h @@ -84,6 +84,7 @@ A(Image) \ A(ImageMask) \ A(Index) \ + A(Indexed) \ A(Info) \ A(JBIG2Decode) \ A(JPXDecode) \