Class: Pdfrb::Model::Type::GroupAttributes

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

Overview

Transparency group /Group dictionary (s11.2.4.5): isolation and knockout flags, blending color space.

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

Instance Method Summary collapse

Methods inherited from Cos::Dictionary

#[], #[]=, apply_arlington_definition, arlington_default, arlington_key_to_symbol, arlington_one_type_to_ruby, arlington_required?, arlington_scalar, 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, merged_field, own_fields, #pdf_type, register_type, type_map, #validate

Methods included from Cos::ArlingtonBacked

#arlington_object

Methods inherited from Object

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

Constructor Details

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

Instance Method Details

#color_spaceObject



51
# File 'lib/pdfrb/model/type/soft_mask.rb', line 51

def color_space; self[:CS]; end

#isolated?Boolean

Returns:

  • (Boolean)


52
# File 'lib/pdfrb/model/type/soft_mask.rb', line 52

def isolated?; self[:I] == true; end

#knockout?Boolean

Returns:

  • (Boolean)


53
# File 'lib/pdfrb/model/type/soft_mask.rb', line 53

def knockout?; self[:K] == true; end

#subtypeObject



50
# File 'lib/pdfrb/model/type/soft_mask.rb', line 50

def subtype; self[:S]; end

#transparency_group?Boolean

Returns:

  • (Boolean)


55
56
57
# File 'lib/pdfrb/model/type/soft_mask.rb', line 55

def transparency_group?
  subtype == :Transparency
end

#typeObject



49
# File 'lib/pdfrb/model/type/soft_mask.rb', line 49

def type; self[:Type]; end