Class: HexaPDF::Content::Operator::SetTextRenderingMode
- Inherits:
-
SingleNumericArgumentOperator
- Object
- BaseOperator
- SingleNumericArgumentOperator
- HexaPDF::Content::Operator::SetTextRenderingMode
- 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
Instance Method Summary collapse
-
#initialize ⇒ SetTextRenderingMode
constructor
Creates the operator.
-
#invoke(processor, rendering_mode) ⇒ Object
:nodoc:.
Methods inherited from SingleNumericArgumentOperator
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ SetTextRenderingMode
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 |