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: PDF1.7 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.
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 |