Class: HexaPDF::Content::Operator::MoveTextNextLineAndShowText
- Inherits:
-
BaseOperator
- Object
- BaseOperator
- HexaPDF::Content::Operator::MoveTextNextLineAndShowText
- 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 ⇒ MoveTextNextLineAndShowText
constructor
:nodoc:.
-
#invoke(processor, text) ⇒ Object
:nodoc:.
- #serialize(serializer, text) ⇒ Object
Constructor Details
#initialize ⇒ MoveTextNextLineAndShowText
:nodoc:
947 948 949 |
# File 'lib/hexapdf/content/operator.rb', line 947 def initialize #:nodoc: super("'") end |
Instance Method Details
#invoke(processor, text) ⇒ Object
:nodoc:
951 952 953 954 |
# File 'lib/hexapdf/content/operator.rb', line 951 def invoke(processor, text) #:nodoc: processor.operators[:'T*'].invoke(processor) processor.operators[:Tj].invoke(processor, text) end |
#serialize(serializer, text) ⇒ Object
956 957 958 |
# File 'lib/hexapdf/content/operator.rb', line 956 def serialize(serializer, text) "#{serializer.serialize_string(text)}'\n" end |