Class: HexaPDF::Content::Operator::RestoreGraphicsState

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

#initializeRestoreGraphicsState

Creates the operator.



169
170
171
# File 'lib/hexapdf/content/operator.rb', line 169

def initialize
  super('Q')
end

Instance Method Details

#invoke(processor) ⇒ Object

:nodoc:



173
174
175
# File 'lib/hexapdf/content/operator.rb', line 173

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