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

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

Overview

Implementation of the ‘BT’ operator.

See: PDF2.0 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:



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

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

Instance Method Details

#invoke(processor) ⇒ Object

:nodoc:



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

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