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

Constructor Details

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

Instance Method Details

#color_spaceObject



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

def color_space; self[:CS]; end

#isolated?Boolean

Returns:

  • (Boolean)


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

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

#knockout?Boolean

Returns:

  • (Boolean)


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

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

#subtypeObject



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

def subtype; self[:S]; end

#transparency_group?Boolean

Returns:

  • (Boolean)


67
68
69
# File 'lib/pdfrb/model/type/soft_mask.rb', line 67

def transparency_group?
  subtype == :Transparency
end

#typeObject



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

def type; self[:Type]; end