Class: EideticPDF::PdfObjects::PdfTextAnnot

Inherits:
PdfAnnot show all
Defined in:
lib/epdfo.rb

Instance Attribute Summary

Attributes inherited from IndirectObject

#gen, #seq

Instance Method Summary collapse

Methods inherited from PdfAnnot

#appearance_dictionary=, #appearance_state=, #border=, #border_style=, #color=, #flags=, #highlight=, #mod_date=, #title=

Methods inherited from PdfDictionaryObject

#body, #dictionary

Methods inherited from IndirectObject

#body, #footer, #header, #reference_object, #reference_string, #to_s

Constructor Details

#initialize(seq, gen, rect, contents) ⇒ PdfTextAnnot

Returns a new instance of PdfTextAnnot.



631
632
633
634
# File 'lib/epdfo.rb', line 631

def initialize(seq, gen, rect, contents)
  super(seq, gen, 'Text', rect)
  dictionary['Contents'] = PdfString.new(contents)
end

Instance Method Details

#open=(open) ⇒ Object



636
637
638
# File 'lib/epdfo.rb', line 636

def open=(open)
  dictionary['Open'] = PdfBoolean.new(open)
end