Class: HexaPDF::Content::Operator::ShowText

Inherits:
BaseOperator show all
Defined in:
lib/hexapdf/content/operator.rb

Overview

Implementation of the ‘Tj’ operator.

See: PDF2.0 s9.4.3

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from BaseOperator

#invoke

Constructor Details

#initializeShowText

Creates the operator.



932
933
934
# File 'lib/hexapdf/content/operator.rb', line 932

def initialize
  super('Tj')
end

Instance Method Details

#serialize(serializer, text) ⇒ Object

:nodoc:



936
937
938
# File 'lib/hexapdf/content/operator.rb', line 936

def serialize(serializer, text) #:nodoc:
  "#{serializer.serialize_string(text)}Tj\n"
end