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: PDF2.0 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.
968 969 970 |
# File 'lib/hexapdf/content/operator.rb', line 968 def initialize super('"') end |
Instance Method Details
#invoke(processor, word_space, char_space, text) ⇒ Object
:nodoc:
972 973 974 975 976 |
# File 'lib/hexapdf/content/operator.rb', line 972 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:
978 979 980 981 982 |
# File 'lib/hexapdf/content/operator.rb', line 978 def serialize(serializer, word_space, char_space, text) #:nodoc: "#{serializer.serialize_numeric(word_space)} " \ "#{serializer.serialize_numeric(char_space)} " \ "#{serializer.serialize_string(text)}\"\n" end |