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

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

Overview

Implementation of the ‘Tr’ operator.

See: PDF1.7 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.



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

def initialize
  super('Tr')
end

Instance Method Details

#invoke(processor, rendering_mode) ⇒ Object

:nodoc:



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

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