Class: HexaPDF::Content::Operator::MoveTextNextLineAndShowText

Inherits:
BaseOperator
  • Object
show all
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

#name

Instance Method Summary collapse

Constructor Details

#initializeMoveTextNextLineAndShowText

: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