Class: Pdfrb::Model::Type::FreeTextAnnotation
Overview
Free-text annotation (s12.5.6.6). Text shown directly on the page.
Instance Attribute Summary
Attributes inherited from Object
#document, #gen, #oid, #value
Instance Method Summary
collapse
#creation_date, #external_data, #group_reply?, #in_reply_to, #intent, #interior_color, #opacity, #open?, #popup, #reply?, #reply_type, #rich_contents, #subject, #title
Methods inherited from Annotation
#action, #additional_actions, #appearance, #appearance_state, #border, #color, #contents, #create_appearance_stream, #flags, for_subtype, #hidden?, #locked?, #locked_contents?, #modified_date, #name, #no_rotate?, #no_view?, #no_zoom?, #normal_appearance, #page, #print?, #read_only?, #rect, register_subtype, #subtype, subtype_map, #toggle_no_view?
#[], #[]=, 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
14
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 14
def be; self[:BE]; end
|
#border_effect? ⇒ Boolean
31
32
33
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 31
def border_effect?
!!be
end
|
#callout? ⇒ Boolean
27
28
29
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 27
def callout?
!!cl
end
|
12
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 12
def cl; self[:CL]; end
|
#default_appearance ⇒ Object
8
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 8
def default_appearance; self[:DA]; end
|
11
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 11
def ds; self[:DS]; end
|
13
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 13
def it; self[:IT]; end
|
9
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 9
def q; self[:Q]; end
|
10
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 10
def rc; self[:RC]; end
|
15
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 15
def rd; self[:RD]; end
|
#style_string ⇒ Object
16
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 16
def style_string; default_appearance; end
|
#text_alignment ⇒ Object
18
19
20
21
22
23
24
25
|
# File 'lib/pdfrb/model/type/free_text_annotation.rb', line 18
def text_alignment
case q
when 1 then :center
when 2 then :right
when 3 then :justify
else :left
end
end
|