Class: HexaPDF::Content::Operator::SetLineWidth

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

Overview

Implementation of the ‘w’ operator.

See: PDF2.0 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

#initializeSetLineWidth

Creates the operator.



207
208
209
# File 'lib/hexapdf/content/operator.rb', line 207

def initialize
  super('w')
end

Instance Method Details

#invoke(processor, width) ⇒ Object

:nodoc:



211
212
213
# File 'lib/hexapdf/content/operator.rb', line 211

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