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

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

Overview

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

#initializeSetLeading

Creates the operator.



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

def initialize
  super('TL')
end

Instance Method Details

#invoke(processor, leading) ⇒ Object

:nodoc:



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

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