Method: PDF::Reader::Resources#color_spaces
- Defined in:
- lib/pdf/reader/resources.rb
#color_spaces ⇒ Object
Returns a Hash of color spaces that are available to this page
NOTE: this method de-serialise objects from the underlying PDF
with no caching. You will want to cache the results instead
of calling it over and over.
: () -> Hash[Symbol, untyped]
25 26 27 |
# File 'lib/pdf/reader/resources.rb', line 25 def color_spaces @objects.deref_hash!(@resources[:ColorSpace]) || {} end |