Class: Pdfrb::Action::GoToR

Inherits:
Base
  • Object
show all
Defined in:
lib/pdfrb/action/types.rb

Overview

GoToR — go to a destination in a remote document. §12.6.4.3

Class Method Summary collapse

Methods inherited from Base

register_as

Class Method Details

.action_typeObject



61
# File 'lib/pdfrb/action/types.rb', line 61

def action_type; :GoToR; end

.to_pdf(file_spec:, dest:, new_window: nil) ⇒ Object



63
64
65
66
67
# File 'lib/pdfrb/action/types.rb', line 63

def to_pdf(file_spec:, dest:, new_window: nil)
  payload = { S: :GoToR, F: file_spec, D: dest }
  payload[:NewWindow] = new_window unless new_window.nil?
  payload
end