Class: HexaPDF::Content::Operator::SetHorizontalScaling

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

Overview

Implementation of the ‘Tz’ operator.

See: PDF1.7 s9.3.1

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from SingleNumericArgumentOperator

#serialize

Methods inherited from BaseOperator

#serialize

Constructor Details

#initializeSetHorizontalScaling

Creates the operator.



732
733
734
# File 'lib/hexapdf/content/operator.rb', line 732

def initialize
  super('Tz')
end

Instance Method Details

#invoke(processor, scale) ⇒ Object

:nodoc:



736
737
738
# File 'lib/hexapdf/content/operator.rb', line 736

def invoke(processor, scale) #:nodoc:
  processor.graphics_state.horizontal_scaling = scale
end