Class: HexaPDF::Content::Operator::BeginText

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

Overview

Implementation of the ‘BT’ operator.

See: PDF1.7 s9.4.1

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from NoArgumentOperator

#serialize

Methods inherited from BaseOperator

#serialize

Constructor Details

#initializeBeginText

:nodoc:



813
814
815
# File 'lib/hexapdf/content/operator.rb', line 813

def initialize #:nodoc:
  super('BT')
end

Instance Method Details

#invoke(processor) ⇒ Object

:nodoc:



817
818
819
820
821
# File 'lib/hexapdf/content/operator.rb', line 817

def invoke(processor) #:nodoc:
  processor.graphics_object = :text
  processor.graphics_state.tm = TransformationMatrix.new
  processor.graphics_state.tlm = TransformationMatrix.new
end