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