From 0caf7211958647bf5570342e6c4007504c3db178 Mon Sep 17 00:00:00 2001 From: josemirm <–20019694+josemirm@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:40:51 +0100 Subject: [PATCH] Added support for missing colour spaces --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2db60c2..8232fd0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1449,7 +1449,10 @@ fn make_colorspace<'a>(doc: &'a Document, name: &[u8], resources: &'a Dictionary } "Pattern" => { ColorSpace::Pattern - } + }, + "DeviceGray" => ColorSpace::DeviceGray, + "DeviceRGB" => ColorSpace::DeviceRGB, + "DeviceCMYK" => ColorSpace::DeviceCMYK, _ => { panic!("color_space {:?} {:?} {:?}", name, cs_name, cs) }