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

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

#name

Instance Method Summary collapse

Constructor Details

#initializeMoveTextNextLineAndShowText

: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