|
@@ -59,6 +59,9 @@ PDFErrorOr<NonnullRefPtr<ColorSpace>> ColorSpace::create(Document* document, Non
|
|
|
if (color_space_name == CommonNames::ICCBased)
|
|
|
return TRY(ICCBasedColorSpace::create(document, move(parameters)));
|
|
|
|
|
|
+ if (color_space_name == CommonNames::Separation)
|
|
|
+ return TRY(SeparationColorSpace::create(document, move(parameters)));
|
|
|
+
|
|
|
dbgln("Unknown color space: {}", color_space_name);
|
|
|
return Error::rendering_unsupported_error("unknown color space");
|
|
|
}
|
|
@@ -368,4 +371,22 @@ Vector<float> ICCBasedColorSpace::default_decode() const
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+PDFErrorOr<NonnullRefPtr<SeparationColorSpace>> SeparationColorSpace::create(Document*, Vector<Value>&&)
|
|
|
+{
|
|
|
+ auto color_space = adopt_ref(*new SeparationColorSpace());
|
|
|
+ // FIXME: Implement.
|
|
|
+ return color_space;
|
|
|
+}
|
|
|
+
|
|
|
+PDFErrorOr<Color> SeparationColorSpace::color(Vector<Value> const&) const
|
|
|
+{
|
|
|
+ return Error::rendering_unsupported_error("Separation color spaces not yet implemented");
|
|
|
+}
|
|
|
+
|
|
|
+Vector<float> SeparationColorSpace::default_decode() const
|
|
|
+{
|
|
|
+ warnln("PDF: TODO implement SeparationColorSpace::default_decode()");
|
|
|
+ return {};
|
|
|
+}
|
|
|
+
|
|
|
}
|