Class: Pdfrb::Action::Named

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

Overview

Named — execute a named action predefined by the viewer. §12.6.4.11

Class Method Summary collapse

Methods inherited from Base

register_as

Class Method Details

.action_typeObject



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

def action_type; :Named; end

.to_pdf(name:) ⇒ Object



51
52
53
# File 'lib/pdfrb/action/types.rb', line 51

def to_pdf(name:)
  { S: :Named, N: name }
end