Class: EideticPDF::PdfObjects::PdfMovieAnnot

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, movie) ⇒ PdfMovieAnnot

Returns a new instance of PdfMovieAnnot.



663
664
665
666
667
# File 'lib/epdfo.rb', line 663

def initialize(seq, gen, rect, movie)
  # movie: Hash
  super(seq, gen, 'Movie', rect)
  dictionary['Movie'] = PdfDictionary.new(movie)
end

Instance Method Details

#activation=(activation) ⇒ Object



669
670
671
672
# File 'lib/epdfo.rb', line 669

def activation=(activation)
  # activation: Hash or boolean
  dictionary['A'] = activation.is_a?(Hash) ? PdfDictionary.new(activation) : PdfBoolean.new(activation)
end