1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:47:45 +00:00

LibPDF: Split ColorSpace into a different class for each color space

While unnecessary at the moment, this will allow for more fine-grained
control when complex color spaces get added.
This commit is contained in:
Matthew Olsson 2021-05-27 14:01:37 -07:00 committed by Ali Mohammad Pur
parent ea3abb14fe
commit 7b4e36bf88
7 changed files with 174 additions and 106 deletions

View file

@ -89,6 +89,11 @@ Page Document::get_page(u32 index)
auto page_object_index = m_page_object_indices[index];
auto raw_page_object = resolve_to<DictObject>(get_or_load_value(page_object_index));
if (!raw_page_object->contains(CommonNames::Resources)) {
// This page inherits its resource dictionary
TODO();
}
auto resources = raw_page_object->get_dict(this, CommonNames::Resources);
auto contents = raw_page_object->get_object(this, CommonNames::Contents);