Class: Pdfrb::Model::Type::MovieAnnotation
- Inherits:
-
Annotation
- Object
- Object
- Cos::Dictionary
- Annotation
- Pdfrb::Model::Type::MovieAnnotation
- Defined in:
- lib/pdfrb/model/type/movie_annotation.rb
Overview
Movie annotation (s12.5.6.14). /Subtype /Movie. Plays a Movie when activated.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
Methods inherited from Annotation
#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?
Methods inherited from Cos::Dictionary
#[], #[]=, apply_arlington_definition, arlington_default, arlington_key_to_symbol, 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, merged_field, own_fields, #pdf_type, register_type, type_map, #validate
Methods included from Cos::ArlingtonBacked
Methods inherited from Object
#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type
Constructor Details
This class inherits a constructor from Pdfrb::Model::Cos::Dictionary
Instance Method Details
#action ⇒ Object
12 |
# File 'lib/pdfrb/model/type/movie_annotation.rb', line 12 def action; self[:A]; end |
#has_movie? ⇒ Boolean
15 16 17 |
# File 'lib/pdfrb/model/type/movie_annotation.rb', line 15 def has_movie? !movie.nil? end |
#movie ⇒ Object
11 |
# File 'lib/pdfrb/model/type/movie_annotation.rb', line 11 def movie; self[:Movie]; end |
#title ⇒ Object
13 |
# File 'lib/pdfrb/model/type/movie_annotation.rb', line 13 def title; self[:T]; end |
#uses_action? ⇒ Boolean
19 20 21 |
# File 'lib/pdfrb/model/type/movie_annotation.rb', line 19 def uses_action? !action.nil? end |