Class: Pdfrb::Model::Type::ActionMovie
- Inherits:
-
Action
show all
- Defined in:
- lib/pdfrb/model/type/action_movie.rb
Overview
Movie action (s12.6.4.8). Deprecated in PDF 2.0 but still
appears in legacy PDFs. Plays/stops a Movie annotation.
Instance Attribute Summary
Attributes inherited from Object
#document, #gen, #oid, #value
Instance Method Summary
collapse
Methods inherited from Action
#d, for_subtype, #goto?, #javascript?, #launch?, #named?, #next_action, #next_actions, register_subtype, #subtype, subtype_map, #uri, #uri?
#[], #[]=, 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
#annotation ⇒ Object
11
|
# File 'lib/pdfrb/model/type/action_movie.rb', line 11
def annotation; self[:Annotation]; end
|
#operation ⇒ Object
13
|
# File 'lib/pdfrb/model/type/action_movie.rb', line 13
def operation; self[:Operation]&.to_sym || :Play; end
|
#pause? ⇒ Boolean
17
|
# File 'lib/pdfrb/model/type/action_movie.rb', line 17
def pause?; operation == :Pause; end
|
#play? ⇒ Boolean
15
|
# File 'lib/pdfrb/model/type/action_movie.rb', line 15
def play?; operation == :Play; end
|
#resume? ⇒ Boolean
18
|
# File 'lib/pdfrb/model/type/action_movie.rb', line 18
def resume?; operation == :Resume; end
|
#stop? ⇒ Boolean
16
|
# File 'lib/pdfrb/model/type/action_movie.rb', line 16
def stop?; operation == :Stop; end
|
12
|
# File 'lib/pdfrb/model/type/action_movie.rb', line 12
def title; self[:T]; end
|