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

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

Overview

Implementation of the ‘Tj’ operator.

See: PDF1.7 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.



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

def initialize
  super('Tj')
end

Instance Method Details

#serialize(serializer, text) ⇒ Object

:nodoc:



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

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