Class: HexaPDF::Content::Operator::SetTextRenderingMode

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

Overview

Implementation of the ‘Tr’ 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

#initializeSetTextRenderingMode

Creates the operator.



783
784
785
# File 'lib/hexapdf/content/operator.rb', line 783

def initialize
  super('Tr')
end

Instance Method Details

#invoke(processor, rendering_mode) ⇒ Object

:nodoc:



787
788
789
# File 'lib/hexapdf/content/operator.rb', line 787

def invoke(processor, rendering_mode) #:nodoc:
  processor.graphics_state.text_rendering_mode = TextRenderingMode.normalize(rendering_mode)
end