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

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

Overview

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

#initializeSetWordSpacing

Creates the operator.



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

def initialize
  super('Tw')
end

Instance Method Details

#invoke(processor, word_space) ⇒ Object

:nodoc:



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

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