Class: Pdfrb::Model::Type::BoxStyle
- Inherits:
-
Cos::Dictionary
show all
- Defined in:
- lib/pdfrb/model/type/box_style.rb,
lib/pdfrb/model/type/color_space.rb
Overview
Box style dictionary (s7.11.4, BoxColorInfo entries). Guides
for the viewer's page-box display.
Instance Attribute Summary
Attributes inherited from Object
#document, #gen, #oid, #value
Instance Method Summary
collapse
#[], #[]=, 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
#arlington_object
Methods inherited from Object
#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type
Instance Method Details
9
|
# File 'lib/pdfrb/model/type/box_style.rb', line 9
def color; self[:C]; end
|
224
|
# File 'lib/pdfrb/model/type/color_space.rb', line 224
def dash; self[:D]; end
|
#dash_count ⇒ Object
12
|
# File 'lib/pdfrb/model/type/box_style.rb', line 12
def dash_count; self[:D]; end
|
#dash_pattern ⇒ Object
10
|
# File 'lib/pdfrb/model/type/box_style.rb', line 10
def dash_pattern; self[:W]; end
|
#dash_style ⇒ Object
11
|
# File 'lib/pdfrb/model/type/box_style.rb', line 11
def dash_style; self[:S]&.to_sym; end
|
#dashed? ⇒ Boolean
15
|
# File 'lib/pdfrb/model/type/box_style.rb', line 15
def dashed?; dash_style == :D; end
|
#solid? ⇒ Boolean
14
|
# File 'lib/pdfrb/model/type/box_style.rb', line 14
def solid?; dash_style.nil? || dash_style == :S; end
|
223
|
# File 'lib/pdfrb/model/type/color_space.rb', line 223
def style; self[:S]&.to_sym || :S; end
|
222
|
# File 'lib/pdfrb/model/type/color_space.rb', line 222
def width; self[:W] || 1; end
|