Class: Pdfrb::Model::Type::ActionGoToE

Inherits:
Action show all
Defined in:
lib/pdfrb/model/type/action_go_to_e.rb

Overview

GoToE action (s12.6.4.4, PDF 1.6). Navigate to a destination in an embedded 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?

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

#arlington_object

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

#destinationObject



13
# File 'lib/pdfrb/model/type/action_go_to_e.rb', line 13

def destination; self[:D]; end

#named_destination?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/pdfrb/model/type/action_go_to_e.rb', line 25

def named_destination?
  destination.is_a?(Symbol) || destination.is_a?(String)
end

#new_windowObject



14
# File 'lib/pdfrb/model/type/action_go_to_e.rb', line 14

def new_window; self[:NewWindow]; end

#new_window?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/pdfrb/model/type/action_go_to_e.rb', line 17

def new_window?
  new_window == true
end

#targetObject



15
# File 'lib/pdfrb/model/type/action_go_to_e.rb', line 15

def target; self[:T]; end

#target_fileObject



12
# File 'lib/pdfrb/model/type/action_go_to_e.rb', line 12

def target_file; self[:F]; end

#targets_embedded_file?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/pdfrb/model/type/action_go_to_e.rb', line 21

def targets_embedded_file?
  !target_file.nil?
end