Class: HexaPDF::Content::Operator::MoveTextNextLine

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

Overview

Implementation of the ‘T*’ operator.

See: PDF2.0 s9.4.2

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from NoArgumentOperator

#serialize

Methods inherited from BaseOperator

#serialize

Constructor Details

#initializeMoveTextNextLine

Creates the operator.



915
916
917
# File 'lib/hexapdf/content/operator.rb', line 915

def initialize
  super('T*')
end

Instance Method Details

#invoke(processor) ⇒ Object

:nodoc:



919
920
921
922
# File 'lib/hexapdf/content/operator.rb', line 919

def invoke(processor) #:nodoc:
  leading = processor.graphics_state.leading
  processor.operators[:Td].invoke(processor, 0, -leading)
end