Class: HexaPDF::Content::Operator::SetWordSpacing
- Inherits:
-
SingleNumericArgumentOperator
- Object
- BaseOperator
- SingleNumericArgumentOperator
- HexaPDF::Content::Operator::SetWordSpacing
- 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
Instance Method Summary collapse
-
#initialize ⇒ SetWordSpacing
constructor
Creates the operator.
-
#invoke(processor, word_space) ⇒ Object
:nodoc:.
Methods inherited from SingleNumericArgumentOperator
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ SetWordSpacing
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 |