Skip to content

Commit

Permalink
Added support for missing colour spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
josemirm authored and jrmuizel committed Jan 17, 2024
1 parent 1a024f0 commit 0caf721
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0caf721

Please sign in to comment.