Class: Pdfrb::Action::GoTo

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

Overview

GoTo — jump to a destination in the current document. §12.6.4.2

Class Method Summary collapse

Methods inherited from Base

register_as

Class Method Details

.action_typeObject



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

def action_type; :GoTo; end

.to_pdf(dest:) ⇒ Object



13
14
15
# File 'lib/pdfrb/action/types.rb', line 13

def to_pdf(dest:)
  { S: :GoTo, D: dest }
end