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