Class: HexaPDF::Content::Operator::SetCharacterSpacing
- Inherits:
-
SingleNumericArgumentOperator
- Object
- BaseOperator
- SingleNumericArgumentOperator
- HexaPDF::Content::Operator::SetCharacterSpacing
- Defined in:
- lib/hexapdf/content/operator.rb
Overview
Implementation of the ‘Tc’ operator.
See: PDF2.0 s9.3.1
Instance Attribute Summary
Attributes inherited from BaseOperator
Instance Method Summary collapse
-
#initialize ⇒ SetCharacterSpacing
constructor
Creates the operator.
-
#invoke(processor, char_space) ⇒ Object
:nodoc:.
Methods inherited from SingleNumericArgumentOperator
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ SetCharacterSpacing
Creates the operator.
698 699 700 |
# File 'lib/hexapdf/content/operator.rb', line 698 def initialize super('Tc') end |
Instance Method Details
#invoke(processor, char_space) ⇒ Object
:nodoc:
702 703 704 |
# File 'lib/hexapdf/content/operator.rb', line 702 def invoke(processor, char_space) #:nodoc: processor.graphics_state.character_spacing = char_space end |