Method: PDF::Reader::Resources#patterns

Defined in:
lib/pdf/reader/resources.rb

#patternsObject

Returns a Hash of patterns 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]



59
60
61
# File 'lib/pdf/reader/resources.rb', line 59

def patterns
  @objects.deref_hash!(@resources[:Pattern]) || {}
end