Method: PDF::Reader::Resources#xobjects
- Defined in:
- lib/pdf/reader/resources.rb
#xobjects ⇒ Object
Returns a Hash of XObjects 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, PDF::Reader::Stream]
103 104 105 106 |
# File 'lib/pdf/reader/resources.rb', line 103 def xobjects dict = @objects.deref_hash!(@resources[:XObject]) || {} TypeCheck.cast_to_pdf_dict_with_stream_values!(dict) end |