Class: HexaPDF::Content::Operator::SetHorizontalScaling
- Inherits:
-
SingleNumericArgumentOperator
- Object
- BaseOperator
- SingleNumericArgumentOperator
- HexaPDF::Content::Operator::SetHorizontalScaling
- 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
Instance Method Summary collapse
-
#initialize ⇒ SetHorizontalScaling
constructor
Creates the operator.
-
#invoke(processor, scale) ⇒ Object
:nodoc:.
Methods inherited from SingleNumericArgumentOperator
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ SetHorizontalScaling
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 |