Class: Pdfrb::Model::Type::ActionNamed
- Inherits:
-
Action
show all
- Defined in:
- lib/pdfrb/model/type/action_named.rb
Overview
Named action (s12.6.4.19). Pre-defined action by name (NextPage,
PrevPage, FirstPage, LastPage, Print, etc.).
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
#action_name ⇒ Object
11
|
# File 'lib/pdfrb/model/type/action_named.rb', line 11
def action_name; self[:N]; end
|
#find? ⇒ Boolean
19
|
# File 'lib/pdfrb/model/type/action_named.rb', line 19
def find?; action_name&.to_sym == :Find; end
|
#first_page? ⇒ Boolean
15
|
# File 'lib/pdfrb/model/type/action_named.rb', line 15
def first_page?; action_name&.to_sym == :FirstPage; end
|
#last_page? ⇒ Boolean
16
|
# File 'lib/pdfrb/model/type/action_named.rb', line 16
def last_page?; action_name&.to_sym == :LastPage; end
|
#next_page? ⇒ Boolean
13
|
# File 'lib/pdfrb/model/type/action_named.rb', line 13
def next_page?; action_name&.to_sym == :NextPage; end
|
#prev_page? ⇒ Boolean
14
|
# File 'lib/pdfrb/model/type/action_named.rb', line 14
def prev_page?; action_name&.to_sym == :PrevPage; end
|
#print? ⇒ Boolean
17
|
# File 'lib/pdfrb/model/type/action_named.rb', line 17
def print?; action_name&.to_sym == :Print; end
|
#save? ⇒ Boolean
18
|
# File 'lib/pdfrb/model/type/action_named.rb', line 18
def save?; action_name&.to_sym == :Save; end
|