Class: HexaPDF::Content::Operator::SetRenderingIntent

Inherits:
BaseOperator
  • Object
show all
Defined in:
lib/hexapdf/content/operator.rb

Overview

Implementation of the ‘ri’ operator.

See: PDF2.0 s8.4.4

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Constructor Details

#initializeSetRenderingIntent

Creates the operator.



292
293
294
# File 'lib/hexapdf/content/operator.rb', line 292

def initialize
  super('ri')
end

Instance Method Details

#invoke(processor, intent) ⇒ Object

:nodoc:



296
297
298
# File 'lib/hexapdf/content/operator.rb', line 296

def invoke(processor, intent) #:nodoc:
  processor.graphics_state.rendering_intent = intent
end

#serialize(serializer, intent) ⇒ Object

:nodoc:



300
301
302
# File 'lib/hexapdf/content/operator.rb', line 300

def serialize(serializer, intent) #:nodoc:
  "#{serializer.serialize_symbol(intent)} ri\n"
end