Class: HexaPDF::Content::Operator::SetLeading

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

Overview

Implementation of the ‘TL’ 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

#initializeSetLeading

Creates the operator.



745
746
747
# File 'lib/hexapdf/content/operator.rb', line 745

def initialize
  super('TL')
end

Instance Method Details

#invoke(processor, leading) ⇒ Object

:nodoc:



749
750
751
# File 'lib/hexapdf/content/operator.rb', line 749

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