Class: HexaPDF::Content::Operator::ShowText
- Inherits:
-
BaseOperator
- Object
- BaseOperator
- HexaPDF::Content::Operator::ShowText
- 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
Instance Method Summary collapse
-
#initialize ⇒ ShowText
constructor
Creates the operator.
-
#serialize(serializer, text) ⇒ Object
:nodoc:.
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ ShowText
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 |