Class: Pdfrb::Action::JavaScript

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

Overview

JavaScript — execute JavaScript. §12.6.4.16 NOTE: PDF/A prohibits this; included for completeness.

Class Method Summary collapse

Methods inherited from Base

register_as

Class Method Details

.action_typeObject



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

def action_type; :JavaScript; end

.to_pdf(script:) ⇒ Object



104
105
106
# File 'lib/pdfrb/action/types.rb', line 104

def to_pdf(script:)
  { S: :JavaScript, JS: script }
end