Class: Pdfrb::Action::URI

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

Overview

URI — open a Uniform Resource Identifier. §12.6.4.7

Class Method Summary collapse

Methods inherited from Base

register_as

Class Method Details

.action_typeObject



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

def action_type; :URI; end

.to_pdf(uri:, is_map: false) ⇒ Object



25
26
27
# File 'lib/pdfrb/action/types.rb', line 25

def to_pdf(uri:, is_map: false)
  { S: :URI, URI: uri, IsMap: is_map }.compact
end