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: PDF1.7 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:
946 947 948 |
# File 'lib/hexapdf/content/operator.rb', line 946 def initialize #:nodoc: super("'") end |
Instance Method Details
#invoke(processor, text) ⇒ Object
:nodoc:
950 951 952 953 |
# File 'lib/hexapdf/content/operator.rb', line 950 def invoke(processor, text) #:nodoc: processor.operators[:'T*'].invoke(processor) processor.operators[:Tj].invoke(processor, text) end |
#serialize(serializer, text) ⇒ Object
955 956 957 |
# File 'lib/hexapdf/content/operator.rb', line 955 def serialize(serializer, text) "#{serializer.serialize_string(text)} '\n".freeze end |