Class: HexaPDF::Content::Operator::SetTextRise

Inherits:
SingleNumericArgumentOperator show all
Defined in:
lib/hexapdf/content/operator.rb

Overview

Implementation of the ‘Ts’ operator.

See: PDF2.0 s9.3.1

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from SingleNumericArgumentOperator

#serialize

Methods inherited from BaseOperator

#serialize

Constructor Details

#initializeSetTextRise

Creates the operator.



799
800
801
# File 'lib/hexapdf/content/operator.rb', line 799

def initialize
  super('Ts')
end

Instance Method Details

#invoke(processor, rise) ⇒ Object

:nodoc:



803
804
805
# File 'lib/hexapdf/content/operator.rb', line 803

def invoke(processor, rise) #:nodoc:
  processor.graphics_state.text_rise = rise
end