Class: Pdfrb::Model::Type::StructureAttributes
Overview
Structure Attributes Dictionary (s14.7.5). Per-structure-element
attributes — owner + per-owner attribute fields (Layout, Table,
List, PrintField, etc.).
Instance Attribute Summary
Attributes inherited from Object
#document, #gen, #oid, #value
Instance Method Summary
collapse
#[], #[]=, 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
Instance Method Details
#artifact_owner? ⇒ Boolean
34
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 34
def artifact_owner?; owner == :Artifact; end
|
#background_color ⇒ Object
14
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 14
def background_color; self[:BackgroundColor]; end
|
#border_color ⇒ Object
15
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 15
def border_color; self[:BorderColor]; end
|
#border_style ⇒ Object
16
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 16
def border_style; self[:BorderStyle]; end
|
#border_thickness ⇒ Object
17
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 17
def border_thickness; self[:BorderThickness]; end
|
19
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 19
def color; self[:Color]; end
|
#end_indent ⇒ Object
26
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 26
def end_indent; self[:EndIndent]; end
|
#has_namespace? ⇒ Boolean
38
39
40
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 38
def has_namespace?
!!namespace
end
|
22
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 22
def height; self[:Height]; end
|
#layout_owner? ⇒ Boolean
30
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 30
def layout_owner?; owner == :Layout; end
|
#line_height ⇒ Object
28
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 28
def line_height; self[:LineHeight]; end
|
#list_owner? ⇒ Boolean
31
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 31
def list_owner?; owner == :List; end
|
#namespace ⇒ Object
11
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 11
def namespace; self[:NS]; end
|
10
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 10
def owner; self[:O]; end
|
18
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 18
def padding; self[:Padding]; end
|
#placement ⇒ Object
12
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 12
def placement; self[:Placement]&.to_sym; end
|
#print_field_owner? ⇒ Boolean
33
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 33
def print_field_owner?; owner == :PrintField; end
|
#space_after ⇒ Object
24
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 24
def space_after; self[:SpaceAfter]; end
|
#space_before ⇒ Object
23
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 23
def space_before; self[:SpaceBefore]; end
|
#start_indent ⇒ Object
25
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 25
def start_indent; self[:StartIndent]; end
|
#table_owner? ⇒ Boolean
32
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 32
def table_owner?; owner == :Table; end
|
#text_align ⇒ Object
20
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 20
def text_align; self[:TextAlign]&.to_sym; end
|
#text_indent ⇒ Object
27
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 27
def text_indent; self[:TextIndent]; end
|
#user_properties_owner? ⇒ Boolean
36
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 36
def user_properties_owner?; owner == :UserProperties; end
|
21
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 21
def width; self[:Width]; end
|
#writing_mode ⇒ Object
13
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 13
def writing_mode; (self[:WritingMode] || :LrTb).to_sym; end
|
#xml_owner? ⇒ Boolean
35
|
# File 'lib/pdfrb/model/type/structure_attributes.rb', line 35
def xml_owner?; owner.to_s.start_with?("XML", "HTML"); end
|