Class: Pdfrb::Model::Type::Resources

Inherits:
Cos::Dictionary show all
Defined in:
lib/pdfrb/model/type/resources.rb

Overview

Page-resources dict (s7.8). Named lookups for fonts, xobjects, colors, patterns, shadings, extgstate, properties.

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

Instance Method Summary collapse

Methods inherited from Cos::Dictionary

#[], #[]=, arlington_available?, arlington_default, arlington_key_to_symbol, arlington_loaded_for?, arlington_mark_loaded, arlington_object, arlington_one_type_to_ruby, arlington_required?, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, own_fields, #pdf_type, register_type, type_map, #validate

Methods inherited from Object

#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type

Constructor Details

This class inherits a constructor from Pdfrb::Model::Cos::Dictionary

Instance Method Details

#color_space(name) ⇒ Object



23
24
25
# File 'lib/pdfrb/model/type/resources.rb', line 23

def color_space(name)
  lookup_named(:ColorSpace, name)
end

#ext_gstate(name) ⇒ Object



19
20
21
# File 'lib/pdfrb/model/type/resources.rb', line 19

def ext_gstate(name)
  lookup_named(:ExtGState, name)
end

#font(name) ⇒ Object



11
12
13
# File 'lib/pdfrb/model/type/resources.rb', line 11

def font(name)
  lookup_named(:Font, name)
end

#pattern(name) ⇒ Object



27
28
29
# File 'lib/pdfrb/model/type/resources.rb', line 27

def pattern(name)
  lookup_named(:Pattern, name)
end

#properties(name) ⇒ Object



35
36
37
# File 'lib/pdfrb/model/type/resources.rb', line 35

def properties(name)
  lookup_named(:Properties, name)
end

#shading(name) ⇒ Object



31
32
33
# File 'lib/pdfrb/model/type/resources.rb', line 31

def shading(name)
  lookup_named(:Shading, name)
end

#xobject(name) ⇒ Object



15
16
17
# File 'lib/pdfrb/model/type/resources.rb', line 15

def xobject(name)
  lookup_named(:XObject, name)
end