Class: Pdfrb::Action::GoToR
Overview
GoToR — go to a destination in a remote document. §12.6.4.3
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.action_type ⇒ Object
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 |