Class: HexaPDF::Content::Operator::SaveGraphicsState

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

Overview

Implementation of the ‘q’ operator.

See: PDF2.0 s8.4.4

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from NoArgumentOperator

#serialize

Methods inherited from BaseOperator

#serialize

Constructor Details

#initializeSaveGraphicsState

Creates the operator.



153
154
155
# File 'lib/hexapdf/content/operator.rb', line 153

def initialize
  super('q')
end

Instance Method Details

#invoke(processor) ⇒ Object

:nodoc:



157
158
159
# File 'lib/hexapdf/content/operator.rb', line 157

def invoke(processor) #:nodoc:
  processor.graphics_state.save
end