Class: HexaPDF::Content::Operator::SetSpacingMoveTextNextLineAndShowText
- Inherits:
-
BaseOperator
- Object
- BaseOperator
- HexaPDF::Content::Operator::SetSpacingMoveTextNextLineAndShowText
- Defined in:
- lib/hexapdf/content/operator.rb
Overview
Implementation of the “ operator.
See: PDF1.7 s9.4.3
Instance Attribute Summary
Attributes inherited from BaseOperator
Instance Method Summary collapse
-
#initialize ⇒ SetSpacingMoveTextNextLineAndShowText
constructor
Creates the operator.
-
#invoke(processor, word_space, char_space, text) ⇒ Object
:nodoc:.
-
#serialize(serializer, word_space, char_space, text) ⇒ Object
:nodoc:.
Constructor Details
#initialize ⇒ SetSpacingMoveTextNextLineAndShowText
Creates the operator.
967 968 969 |
# File 'lib/hexapdf/content/operator.rb', line 967 def initialize super('"') end |
Instance Method Details
#invoke(processor, word_space, char_space, text) ⇒ Object
:nodoc:
971 972 973 974 975 |
# File 'lib/hexapdf/content/operator.rb', line 971 def invoke(processor, word_space, char_space, text) #:nodoc: processor.operators[:Tw].invoke(processor, word_space) processor.operators[:Tc].invoke(processor, char_space) processor.operators[:"'"].invoke(processor, text) end |
#serialize(serializer, word_space, char_space, text) ⇒ Object
:nodoc:
977 978 979 980 981 |
# File 'lib/hexapdf/content/operator.rb', line 977 def serialize(serializer, word_space, char_space, text) #:nodoc: "#{serializer.serialize_numeric(word_space)} " \ "#{serializer.serialize_numeric(char_space)} " \ "#{serializer.serialize_string(text)} \"\n".freeze end |