Method: PDF::Core::Page#resources

Defined in:
lib/pdf/core/page.rb

#resourcesHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Page resources dictionary.

Returns:

  • (Hash)


198
199
200
201
202
203
204
# File 'lib/pdf/core/page.rb', line 198

def resources
  if dictionary.data[:Resources]
    document.deref(dictionary.data[:Resources])
  else
    dictionary.data[:Resources] = {}
  end
end