Class: HexaPDF::Content::Operator::SetLineCapStyle

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

Overview

Implementation of the ‘J’ operator.

See: PDF1.7 s8.4.4

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from SingleNumericArgumentOperator

#serialize

Methods inherited from BaseOperator

#serialize

Constructor Details

#initializeSetLineCapStyle

Creates the operator.



222
223
224
# File 'lib/hexapdf/content/operator.rb', line 222

def initialize
  super('J')
end

Instance Method Details

#invoke(processor, cap_style) ⇒ Object

:nodoc:



226
227
228
# File 'lib/hexapdf/content/operator.rb', line 226

def invoke(processor, cap_style) #:nodoc:
  processor.graphics_state.line_cap_style = LineCapStyle.normalize(cap_style)
end