Class: Pdfrb::Action::Hide

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

Overview

Hide — show or hide an annotation. §12.6.4.9

Class Method Summary collapse

Methods inherited from Base

register_as

Class Method Details

.action_typeObject



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

def action_type; :Hide; end

.to_pdf(target:, hide: true) ⇒ Object



116
117
118
# File 'lib/pdfrb/action/types.rb', line 116

def to_pdf(target:, hide: true)
  { S: :Hide, T: target, H: hide }
end