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

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

Overview

Implementation of the ‘Tz’ operator.

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



730
731
732
# File 'lib/hexapdf/content/operator.rb', line 730

def initialize
  super('Tz')
end

Instance Method Details

#invoke(processor, scale) ⇒ Object

:nodoc:



734
735
736
# File 'lib/hexapdf/content/operator.rb', line 734

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