class PDF::Reader::Resources

def color_spaces


of calling it over and over.
with no caching. You will want to cache the results instead
NOTE: this method de-serialise objects from the underlying PDF

Returns a Hash of color spaces that are available to this page
def color_spaces
  @objects.deref_hash!(@resources[:ColorSpace]) || {}
end