Class: HexaPDF::Content::Operator::SetCharacterSpacing

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

Overview

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

#initializeSetCharacterSpacing

Creates the operator.



697
698
699
# File 'lib/hexapdf/content/operator.rb', line 697

def initialize
  super('Tc')
end

Instance Method Details

#invoke(processor, char_space) ⇒ Object

:nodoc:



701
702
703
# File 'lib/hexapdf/content/operator.rb', line 701

def invoke(processor, char_space) #:nodoc:
  processor.graphics_state.character_spacing = char_space
end