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

Inherits:
SingleNumericArgumentOperator show all
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

#name

Instance Method Summary collapse

Methods inherited from SingleNumericArgumentOperator

#serialize

Methods inherited from BaseOperator

#serialize

Constructor Details

#initializeSetCharacterSpacing

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