Class: HexaPDF::Content::Operator::SetWordSpacing

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

Overview

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

#initializeSetWordSpacing

Creates the operator.



713
714
715
# File 'lib/hexapdf/content/operator.rb', line 713

def initialize
  super('Tw')
end

Instance Method Details

#invoke(processor, word_space) ⇒ Object

:nodoc:



717
718
719
# File 'lib/hexapdf/content/operator.rb', line 717

def invoke(processor, word_space) #:nodoc:
  processor.graphics_state.word_spacing = word_space
end