Class: Pdfrb::Model::Type::ActionGoToR
- Inherits:
-
Action
show all
- Defined in:
- lib/pdfrb/model/type/action_go_to_r.rb
Overview
Remote GoTo action (s12.6.4.3). Navigate to a destination in
another PDF file.
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
#destination ⇒ Object
12
|
# File 'lib/pdfrb/model/type/action_go_to_r.rb', line 12
def destination; self[:D]; end
|
#file_spec ⇒ Object
11
|
# File 'lib/pdfrb/model/type/action_go_to_r.rb', line 11
def file_spec; self[:F]; end
|
#named_destination? ⇒ Boolean
16
17
18
|
# File 'lib/pdfrb/model/type/action_go_to_r.rb', line 16
def named_destination?
destination.is_a?(String) || destination.is_a?(Symbol)
end
|
#new_window? ⇒ Boolean
13
|
# File 'lib/pdfrb/model/type/action_go_to_r.rb', line 13
def new_window?; self[:NewWindow] == true; end
|
#open_in_new_window? ⇒ Boolean
14
|
# File 'lib/pdfrb/model/type/action_go_to_r.rb', line 14
def open_in_new_window?; new_window?; end
|
#page_index_destination? ⇒ Boolean
20
21
22
|
# File 'lib/pdfrb/model/type/action_go_to_r.rb', line 20
def page_index_destination?
destination.is_a?(Array) && destination.first.is_a?(Integer)
end
|